CVE-2026-139096: tcp: initialize mapped children before route lookup
In the Linux kernel, the following vulnerability has been resolved:
tcp: initialize mapped children before route lookup
IPv4 passive opens on a dual-stack listener go through tcpv4synrecvsock() with tcpv6mappedchildinit() as the optional initializer. The callback currently runs after the output route lookup. If that lookup fails, tcpdone() destroys a clone whose pinet6 and ipv6fllist still refer to the listener's state.
With the flowlabel list head in inetsock, fl6freesocklist() walks the clone's list and RCU-frees its nodes without unlinking them from the live listener. Subsequent flowlabel operations can use or free the nodes again. Commit 858d2a4f67ff ("tcp: fix potential race in tcpv6synrecvsock()") moved the initializer before ehash insertion, but did not cover this error path.
Invoke the existing initializer after the IPv4 fields it consumes have been set, but before route lookup can fail. It needs neither the destination nor sksetupcaps(), and all later disposal paths remain covered.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 858d2a4f67ff
Event History
Frequently Asked Questions
Which systems are exposed to this failure path?
The affected path involves IPv4 passive opens handled by a dual-stack TCP listener. It is reached when tcp_v4_syn_recv_sock() uses the IPv6-mapped-child initializer.
What conditions are required to trigger the bug?
An IPv4 connection must be accepted through a dual-stack listener, and the child socket's output route lookup must fail. The failure occurs before the mapped child initializer has run.
What can happen after the failed connection setup?
Cleanup can free flowlabel-list nodes that still belong to the live listener. Later flowlabel operations may then use or free those nodes again.