The Linux TCP RCE is worse than we thought
A use-after-free race in the Linux kernel's handling of saved IPv4 options on half-open TCP request sockets lets a remote attacker corrupt kernel memory. The text says the original discovery used a Multipath TCP listener to make the race easier to win, but does not claim a working remote code execution exploit.
firezone.dev
Published on firezone.dev
If you run any kind of TCP service exposed to the internet, chances are your ghasts were flabbered reading the news about CVE-2026-98432, the use-after-free vulnerability in Linux kernels going back to 4.4 (10+ years ago!).
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The kernel freed the saved IP options with a plain free instead of waiting for a grace period, so another CPU could still be reading that memory during a race between the final handshake packet and a duplicate connection request.
Impact
An attacker could corrupt kernel memory, potentially leading to remote code execution, though the text only describes the memory-safety flaw and notes that dropping IP options at ingress is only a partial mitigation because tunnels, loopback traffic, containers and CIPSO labelling bypass it.
What the attacker needed
Multicore Linux host; IPv4 TCP service reachable by attacker; SYN carrying IP options, or CIPSO labelling
The fix
The kernel was fixed by changing the two frees to deferred RCU frees, first shipped in Linux 7.3 and being backported to stable kernels.
How it was found
- The server replies to a client's SYN with a SYN-ACK and waits for the final ACK.
- One CPU receives the final ACK while another CPU receives a SYN with the same sequence number.
- The first CPU starts promoting the request socket to a full connection and moves the IP options.
- The second CPU looks up the duplicate SYN and finds the request socket before promotion finishes.
- The second CPU starts copying the IP options while the new connection is torn down and the memory is freed.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When a computer accepts a network connection, it briefly keeps a small note about the connection, including any extra routing instructions the sender attached to the first packet. A timing mistake means one processor can free that note while another processor is still reading it, so the second processor reads memory that may already belong to something else. An attacker who can send network packets could use this to corrupt the computer's memory.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.