Skip to content
Memory corruption Write-up Advanced

CVE-2026–98432 Is Giving Me a Headache: When RCU Protects the R

A use-after-free exists in the Linux IPv4 TCP connection path: the request socket's IPv4 options structure could be freed with kfree() while another CPU was still reading it inside an RCU read-side critical section. An unauthenticated remote attacker sending TCP traffic with IPv4 options could race request processing against object destruction, and vendors assess this as potentially leading to crashes, memory corruption or remote code execution.

zxve Follow

Published on medium.com

A deep dive into a use-after-free in the Linux IPv4 TCP path, why two lines of kfreercu() matter, and how to verify the flaw without turning a lab into an exploit.

ZXVE, on medium.com

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 code freed the IPv4 options object with kfree() immediately instead of kfree_rcu(), so memory reclamation did not wait for readers still inside an RCU read-side critical section, breaking the lifetime contract.

Impact

Vendors rate it Critical (CVSS 9.8) with possible crashes, denial of service, kernel memory corruption and potential remote code execution, though the author stresses that winning the race depends on network conditions, kernel configuration, allocator behaviour and scheduling, and that no network trigger or RCE is demonstrated.

What the attacker needed

Remote network access to TCP port; send TCP traffic with IPv4 options; win a timing race; no account needed

The fix

The upstream patch replaced the two immediate kfree() calls with kfree_rcu() so reclamation waits for existing readers, and administrators should install a patched vendor kernel and reboot.

How it was found

  1. The reader thread takes a snapshot of the pointer.
  2. The main thread detaches the pointer from its owner.
  3. Vulnerable mode calls `free()` before the reader finishes.
  4. AddressSanitizer reports a `heap-use-after-free`.
  5. Fixed mode waits for the reader to finish before reclaiming the object.

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 receives a connection request, it stores some extra network settings in a small block of memory. The bug is that this block could be thrown away while another part of the system was still reading it, so the reader ends up looking at memory that no longer belongs to it. That kind of mistake can crash the machine or, in the worst case, let an attacker influence what the program does next.

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.

More by zxve

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.