CVE-2026-98432 — Linux Kernel IPv4 TCP Use-After-Free (SYN Retransmission and Request-Migration Race)
Published: 2026-11-25 • Researcher: Ghost-Bx1 (aka Gh0st-Bx1; PoC author); Linux kernel netdev maintainers (upstream fix)
Exploitation signals
EPSS 84.8% · 100th percentile
- Severity
- Critical
- CVE
- CVE-2026-98432
- Category
- network
- Affected product
- Linux kernel — IPv4 TCP stack (tcp_v4_syn_recv_sock(), inet_sock_destruct(), tcp_v4_reqsk_destructor(), ip_options_build()); IPv6 request-socket migration has a related ipv6_opt issue handled separately
- Affected versions
- NVD ranges (pre-fix): >=4.4 <5.10.272, >=5.11 <5.15.223, >=5.16 <6.1.190, >=6.2 <6.6.159, >=6.7 <6.12.113, >=6.13 <6.18.56
- Disclosed
- 2026-11-25
- Patch status
- Patched
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-98432
- https://github.com/Ghost-Bx1/cve-2026-98432-linux-tcp-uaf
- https://git.kernel.org/stable/c/11a03ce3c4a62d84c10ccdfe47f8075006498568
- https://git.kernel.org/stable/c/26d4c36d318cffbbd160884a0e4cec0da4da4936
- https://git.kernel.org/stable/c/742f73df544e03744f2981c467d6542fe8172a2a
- https://git.kernel.org/stable/c/89b5b1eb7d633c33832b7ff2c02e19a144705036
- https://git.kernel.org/stable/c/95a8c8fa9f27dce64c40c41c062de7728bf34ab5
- https://git.kernel.org/stable/c/a47406c769f72c070386985488f1c4d057df86b2
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-25 |
| Last Updated | 2026-11-06 |
| Author / Researcher | Ghost-Bx1 (aka Gh0st-Bx1; PoC author); Linux kernel netdev maintainers (upstream fix) |
| CVE / Advisory | CVE-2026-98432 |
| Category | network |
| Severity | Critical |
| CVSS Score | 9.8 (CVSSv3.1, per NVD; full vector see references) |
| Status | PoC |
| Tags | UAF, CWE-416, use-after-free, Linux-kernel, TCP, IPv4, SYN, race-condition, MPTCP, request-migration |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | Linux kernel — IPv4 TCP stack (tcp_v4_syn_recv_sock(), inet_sock_destruct(), tcp_v4_reqsk_destructor(), ip_options_build()); IPv6 request-socket migration has a related ipv6_opt issue handled separately |
| Versions Affected | NVD ranges (pre-fix): >=4.4 <5.10.272, >=5.11 <5.15.223, >=5.16 <6.1.190, >=6.2 <6.6.159, >=6.7 <6.12.113, >=6.13 <6.18.56 |
| Language / Platform | C kernel code; Linux (any arch) with IPv4 TCP and IP options. PoC: Python 3.8+ (raw sockets) and C (gcc -pthread) |
| Authentication Required | No |
| Network Access Required | Yes — crafted TCP SYNs to a listening IPv4 TCP port; the migration variant additionally needs net.ipv4.tcp_migrate_req=1 or a BPF_SK_REUSEPORT_SELECT_OR_MIGRATE program |
Summary
Linux kernel IPv4 TCP sockets hand the request socket’s IP option block to the child socket without copying it, and the destructors release that memory with a plain kfree rather than an RCU-safe free. A retransmitted SYN can therefore still be reading the option block while the socket that owns it is being torn down, producing a use-after-free in the IPv4 option building path that can be reached with remote packets. The flaw is rated 9.8 and affects kernel versions from 4.4 through the 5.10, 5.15, 6.1, 6.6, 6.12 and 6.18 stable branches before their respective fixes; request socket migration (the tcp migrate req sysctl, or a BPF reuseport migration program) exposes a second ownership variant. The archived repository supplies a raw socket SYN tool that floods a target with IP-option bearing SYNs to race retransmission against teardown, plus a C harness that performs heap spray and attempts privilege escalation; the trigger is best treated as a crash/oracle PoC rather than a reliable weaponized exploit.
Vulnerability Details
Root Cause
tcp_v4_syn_recv_sock() transfers ownership of ireq->ireq_opt to the child socket (newinet->inet_opt) without copying it. Another CPU can concurrently process a retransmitted SYN for the same request socket and send a SYNACK from tcp_check_req(); tcp_v4_send_synack() and inet_csk_route_req() read ireq->ireq_opt under rcu_read_lock() only, and ip_build_and_send_pkt() / ip_options_build() then read opt->optlen twice. Since commit 079096f103fa (“tcp/dccp: install syn_recv requests into ehash table”) request sockets are processed without the listener lock, so nothing prevents the child socket from being freed while the SYNACK is still being built. TCP child sockets do not have SOCK_RCU_FREE, and inet_sock_destruct() frees inet_opt with a plain kfree(), leading to a use-after-free in ip_options_build(). The migration variant: with net.ipv4.tcp_migrate_req=1 (or a BPF_SK_REUSEPORT_SELECT_OR_MIGRATE program), reqsk_timer_handler() clones the request socket via inet_reqsk_clone(), so the old socket and its clone share the same ireq_opt; reqsk_migrate_reset() clears the pointer in the old one, but another CPU holding a reference on the old request socket can still use the options while the clone is freed, and tcp_v4_reqsk_destructor() also uses a plain kfree(). Readers already use RCU, and other inet_opt replacement paths (do_ip_setsockopt(), cipso_v4_sock_setattr()) already use kfree_rcu(); the fix converts the two destructors to kfree_rcu() as well.
Attack Vector
An attacker sends TCP SYNs carrying IPv4 options (for example an IP_OPTIONS block) to any listening TCP port on the target, forcing request sockets with an ireq_opt allocation, then races SYN retransmission (from another CPU or spoofed sources) against child-socket teardown so the SYNACK path dereferences freed options. On hosts where request migration is enabled, request-socket cloning provides the second shared-ownership route. The archived Python tool builds the IP and TCP headers itself and transmits spoofed SYNs from raw sockets; it does not itself enable or verify target-side migration settings.
Impact
Use-after-free read (and potentially write) in the IPv4 option building code, reachable from the network path. Successful exploitation can crash or panic the kernel (denial of service) and, with reliable heap reclamation and KASLR bypass, could potentially escalate privileges to root. The archived PoC demonstrates the trigger and a crash oracle; the included C harness’s root claim is unverified and depends on manual kernel-specific offsets.
Environment / Lab Setup
OS: Linux x86_64 VM with an unpatched vulnerable kernel
(any of the NVD ranges; a KASAN-enabled build is ideal for observing the UAF)
Target: Vulnerable kernel with at least one listening IPv4 TCP port
(e.g. an nginx/python http server); net.ipv4.tcp_migrate_req=1
or a BPF reuseport migration program for the second variant
Attacker: Linux host with root / CAP_NET_RAW for raw sockets (same LAN or VM host)
Tools: python3 >= 3.8, gcc, pthread, tcpdump, dmesg / KASANSetup Steps
| |
Proof of Concept
Step-by-Step Reproduction
- Prepare a vulnerable target — boot an unpatched kernel from the NVD ranges (a KASAN build makes the UAF visible), start a TCP listener, and optionally enable request migration (
sysctl -w net.ipv4.tcp_migrate_req=1). - Start the raw-socket SYN race — run the archived Python tool as root on the attacker host. It crafts IP/TCP headers with IP options and transmits spoofed SYNs from multiple threads for the requested duration.Shell script
1python3 poc.py --target 192.168.1.10 --port 80 --threads 8 --duracao 30 - Watch the target — the tool polls the target every two seconds and reports when the port stops responding (
possivel kernel panic/crash); checkdmesgon the target for a KASAN use-after-free report. - Optional local harness — generate and build the bundled C heap-spray harness, then run it from the target or an adjacent host with the required privileges. Its ROP/credential offsets are placeholders that must be adjusted per kernel build.Shell script
1 2 3python3 poc.py --gerar-c exploit_cve_2026_98432.c gcc -O2 -pthread -o exploit exploit_cve_2026_98432.c ./exploit --cmd "id" - Record the result — a KASAN trace in
ip_options_build()/tcp_v4_syn_recv_sock(), a kernel panic, or (only with a correctly tuned kernel-specific harness) a root shell.
Exploit Code
See
poc.py(raw-socket SYN trigger and C generator) andexploit.c(standalone heap-spray / privilege-escalation harness). Upstream usage is inupstream-README.md.
| |
The trigger loop builds an IPv4 header plus a TCP SYN whose option area carries an IP_OPTIONS-style block, varies the spoofed source address per thread, and sends it with IP_HDRINCL raw sockets; the C harness sprays kmalloc-sized socket option objects and retries connect()-driven handshakes while checking for root.
Expected Output
| |
Detection & Indicators of Compromise
- Kernel log (KASAN / debug kernels):
BUG: KASAN: use-after-free in ip_options_build,use-after-free in tcp_v4_syn_recv_sock, orinet_sock_destructtraces. On production kernels without KASAN, look for unexplained panics, oopses or reboots under SYN load. - Network: bursts of TCP SYNs carrying IPv4 options, spoofed or rapidly changing source addresses, low completed-handshake ratio, and high SYN retransmission volume against one listening port.
- Host: sudden loss of TCP service with the kernel alive but the listening socket no longer responding;
dmesgcorruption/UAF warnings shortly after. - Configuration drift:
net.ipv4.tcp_migrate_req=1or BPF reuseport migration programs on hosts that do not require them.
| |
Remediation
| Action | Detail |
|---|---|
| Patch | Upgrade to a fixed stable kernel: 5.10.272, 5.15.223, 6.1.190, 6.6.159, 6.12.113, 6.18.56 or later (or a vendor kernel carrying the kfree_rcu() backports listed in the references), then reboot. |
| Workaround | Disable request-socket migration: sysctl -w net.ipv4.tcp_migrate_req=0, and avoid/unload BPF_SK_REUSEPORT_SELECT_OR_MIGRATE programs. Disabling net.mptcp.enabled does not fix the base IPv4 race but removes one related path if MPTCP is not needed. |
| Config Hardening | Apply stable kernel updates promptly; restrict CAP_NET_RAW/CAP_NET_ADMIN to trusted processes and disable unprivileged BPF (kernel.unprivileged_bpf_disabled=1); rate-limit and filter SYNs with IP options at the edge; run KASAN/debug kernels in test labs; monitor dmesg and TCP SYN anomalies. |
References
- CVE-2026-98432 — NVD
- Ghost-Bx1/cve-2026-98432-linux-tcp-uaf — source PoC
- Linux stable fix 11a03ce3c4a62d84c10ccdfe47f8075006498568
- Linux stable fix 26d4c36d318cffbbd160884a0e4cec0da4da4936
- Linux stable fix 742f73df544e03744f2981c467d6542fe8172a2a
- Linux stable fix 89b5b1eb7d633c33832b7ff2c02e19a144705036
- Linux stable fix 95a8c8fa9f27dce64c40c41c062de7728bf34ab5
- Linux stable fix a47406c769f72c070386985488f1c4d057df86b2
Notes
Auto-ingested from https://github.com/Ghost-Bx1/cve-2026-98432-linux-tcp-uaf on 2026-11-25.
Review verdict: this is an exploit-attempt PoC, not a detector or scanner. poc.py is a raw-socket SYN generator that crafts IPv4/TCP headers with IP options and floods a target to race SYN retransmission against socket teardown, with a crash oracle (target stops responding); it does not implement the target-side migration setup and does not prove the UAF by itself. exploit.c is a best-effort standalone harness (heap spray, hardcoded ROP/credential offsets, self-check for root) whose success depends on an exact kernel build and KASLR bypass; its privilege-escalation claim is not verified here. Status is therefore PoC (crash/oracle, lab-only), not Weaponized.
Limitations and caveats: the upstream README lists Ubuntu 20.04 through 26.10 and “any distro with kernel < fix”, which is broader than the NVD version ranges and unverified; the tool’s mitigation and detection text is advisory only. The repository has no license file, so the files are archived with attribution for authorized research only. Upstream comments and documentation are in Portuguese, and the README also advertises the author’s unrelated Ghost toolkit repositories. The C exploit was not executed; the offsets and kernel table in it must be validated against a specific vulnerable build before use. Run only against systems you own or have written authorization to test.
| |