Linux vulnerabilities
11 real-world CVEs in Linux. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.
- CVE-2026-46300high 7.82026
Fragnesia: Linux shared-fragment marker loss
Socket-buffer coalescing can transfer page-backed fragment descriptors without their shared marker, causing later ESP processing to decrypt shared data in place.
- CVE-2024-1086high 7.82024
Linux nf_tables double-free via unvalidated verdict (CVE-2024-1086)
A packet-verdict validator checks only the masked action bits, so a DROP verdict carrying a positive error field slips through; the drop path then frees the packet and returns that positive value as an accept, freeing it a second time.
- CVE-2023-3269high 7.82023
StackRot: maple-tree VMA node freed under the read lock
During stack expansion the kernel replaces a node in the RCU-safe VMA tree and frees the old node, while holding only the shared read lock, so a concurrent read-lock-only lookup can dereference the freed node.
- CVE-2022-0847high 7.82022
Dirty Pipe: uninitialized pipe-buffer flag overwrites read-only pages
A newly populated pipe buffer never resets its flags field, so a stale merge flag lets a later write land directly in a read-only file's page cache.
- CVE-2022-0492high 7.82022
Linux cgroups v1 release_agent privilege escalation
A kernel handler writes an attacker-supplied path into a setting the kernel later executes as full root, but never checks that the caller holds the capability to set it, so an unprivileged namespace can escape to host root.
- CVE-2022-0185high 8.42022
Linux fs_context cumulative-length underflow
The legacy filesystem-parameter size check subtracted an almost-full buffer size from PAGE_SIZE, wrapped to a huge value, and allowed subsequent writes past a page allocation.
- CVE-2021-33909high 7.82021
Sequoia: size_t-to-int truncation in the Linux kernel seq_file path helper
A path buffer size held as a size_t is passed into an int length parameter; a buffer over 2GB narrows to a negative int, defeats a bounds guard, and drives a fixed out-of-bounds write below the kernel buffer.
- CVE-2020-12351high 8.82020
BleedingTooth BadKarma L2CAP type confusion
Linux passed an A2MP manager pointer to a socket-filter API that expected struct sock, causing an adjacent unauthenticated Bluetooth packet to drive kernel type confusion.
- CVE-2020-25705high 7.42020
SAD DNS: a global ICMP bucket reveals UDP source ports
Linux's deterministic host-wide ICMP token bucket let an off-path attacker distinguish spoofed probes to closed and open UDP ports, removing source-port entropy from DNS and leaving only the transaction ID to guess.
- CVE-2019-11477high 7.52019
SACK Panic TCP segment-count overflow
Crafted TCP SACK processing coalesced more than 65,535 tiny segments into a socket buffer, wrapping a 16-bit count and reaching a kernel panic assertion.
- CVE-2016-5195high 7.02016
Dirty COW: copy-on-write race writes to read-only memory
A race in the kernel's copy-on-write page-fault retry lets a local user drop write intent after a COW break, so a concurrently discarded private page is re-followed as the original read-only file page and written through.