KernelScan.io

CRITICAL Public PoC Introduced in 4.4

tcp IPv4 UAF

CVE-2026-98432

CVSS 9.8 / 10.0 NVD

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

KernelScan AI8.1HIGH

01

In the Linux kernel, the following vulnerability has been resolved: ipv4: free inet_opt and ireq_opt after an RCU grace period 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() and ip_options_build() then read opt->optlen twice. Note that the SYNACK timer itself is not an issue: it holds a reference on its request socket, and inet_csk_reqsk_queue_drop() calls timer_delete_sync() before the child can be freed. Since commit 079096f103fa ("tcp/dccp: install syn_recv requests into ehash table"), request sockets are processed without holding 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(). A similar issue exists with request socket migration (net.ipv4.tcp_migrate_req=1, or a BPF_SK_REUSEPORT_SELECT_OR_MIGRATE program). reqsk_timer_handler() clones the request socket with inet_reqsk_clone(), so that the old request socket and its clone share the same ireq_opt, then reqsk_migrate_reset() clears the pointer in the old one. Another cpu holding a reference on the old request socket can still be using these options (sending a SYNACK, or creating a child in tcp_v4_syn_recv_sock()) when the clone is freed, and tcp_v4_reqsk_destructor() also uses a plain kfree(). Readers already use RCU, and other paths replacing inet_opt (do_ip_setsockopt(), cipso_v4_sock_setattr()...) already use kfree_rcu(). Use kfree_rcu() in inet_sock_destruct() and tcp_v4_reqsk_destructor() as well. IPv6 is not affected by the first issue, because tcp_v6_syn_recv_sock() duplicates the options. tcp_v6_reqsk_destructor() has the same migration issue with ipv6_opt, which is only set by CALIPSO. This will be addressed in a separate patch.

02

Engine v0.9.0

Risk summary

An unauthenticated remote attacker can trigger a use-after-free in the kernel's IPv4 TCP stack. No local account or user interaction is needed. The attack only requires a listening TCP socket. The attacker sends a SYN with IPv4 options (Record Route or Timestamp), then races a retransmitted SYN against the completion and teardown of the same connection. The freed memory can leak kernel heap contents to the attacker in the SYN-ACK, corrupt kernel memory, or crash the host. A zero-click remote root exploit has been shown in a lab against servers with a Multipath TCP (MPTCP) listener. A lost race only fails that one handshake, so the attacker can keep retrying. Internet-facing servers and appliances that accept IPv4 TCP connections are the most exposed. The only complete fix is a patched kernel.

Affectednet/ipv4/af_inet.c, net/ipv4/tcp_ipv4.c (IPv4 TCP)

Vulnerability analysis

When a TCP handshake completes, tcp_v4_syn_recv_sock() passes the request socket's IP options (ireq_opt) to the new child socket without copying them. Since request sockets moved into the main hash table (Linux 4.4), they are handled without the listener lock. A retransmitted SYN on another CPU can therefore still be building a SYN-ACK from those options while the child socket is torn down. The child frees the options with a plain kfree() in inet_sock_destruct(), and ip_options_build() then reads freed memory. The attacker supplies the options in the initial SYN, and both sides of the race are packets the attacker sends, so the bug is reachable over the network before any application-level authentication. Winning the race takes many attempts, but a failed attempt only drops that connection. MPTCP listeners reach the same code because MPTCP's subflow_syn_recv_sock() delegates to tcp_v4_syn_recv_sock(). They are the configuration the public exploit demonstration targeted, but MPTCP is not required for the bug to be reachable. A second variant affects request socket migration, which is only active with net.ipv4.tcp_migrate_req=1 (off by default) or a BPF_SK_REUSEPORT_SELECT_OR_MIGRATE program. IPv6 is not affected by the main race because tcp_v6_syn_recv_sock() copies the options. The fix defers both frees with kfree_rcu() so that RCU readers finish first. No vendor has published a workaround. Filtering inbound IPv4 options at the network edge may reduce exposure, but it is not confirmed to block the flaw.

Exploit availability

KernelScan found public exploit code for this CVE. Open it in the CVE browser to see what we found, where, and how strong the evidence is — that needs a free account with a confirmed email address.

03

BranchIntroducedFixed inPatch commit
5.104.45.10.272b3b027ef0cd3
5.154.45.15.22395a8c8fa9f27
6.14.46.1.19089b5b1eb7d63
6.124.46.12.11311a03ce3c4a6
6.184.46.18.56a47406c769f7
6.64.46.6.159742f73df544e
7.24.47.2.1026d4c36d318c
mainline4.47.3e3f33b0a1d89
cip/5.104.45.10.272-cip79b3b027ef0cd3
cip/5.10-rt4.45.10.272-cip79-rt35b3b027ef0cd3
cip/6.14.46.1.190-cip6289b5b1eb7d63
cip/6.124.46.12.114-cip3411a03ce3c4a6

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.114-cip34
cip/6.1Fixed in 6.1.190-cip62
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Fixed in 5.10.272-cip79
cip/5.10-rtFixed in 5.10.272-cip79-rt35
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip136)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip136-rt50)
cip/4.4Affected — no CIP fix yet (latest 4.4.302-cip115)
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)