CVE-2026-139096

tcp: initialize mapped children before route lookup

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
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
tcp_v4_syn_recv_sock() with tcp_v6_mapped_child_init() as the optional
initializer. The callback currently runs after the output route lookup.
If that lookup fails, tcp_done() destroys a clone whose pinet6 and
ipv6_fl_list still refer to the listener's state.

With the flowlabel list head in inet_sock, fl6_free_socklist() 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
tcp_v6_syn_recv_sock()") 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 sk_setup_caps(), and all later disposal paths remain
covered.

Analysis

AI-generated

Technical impact

The vulnerability is a use‑after‑free bug in the Linux kernel’s TCP stack. It arises during passive opens on a dual‑stack listener when the IPv6‑mapped child initializer is executed after a route lookup. If that lookup fails, the kernel destroys a clone whose flow‑label list remains linked to the listener, and the freed nodes are later accessed or freed again. This results in a use‑after‑free condition that can lead to a kernel panic or, potentially, arbitrary code execution at kernel privilege.

Affected Systems

Affected systems are all Linux kernel builds that contain the vulnerable sequence of calls prior to the inclusion of commit 858d2a4f67ff. The vulnerability exists wherever dual‑stack TCP sockets with IPv6 flow‑label support are enabled. Exact affected release numbers are not provided, but any kernel version lacking the commit is vulnerable.

Risk and Exploitability

The CVSS score is not published, and EPSS is unavailable, indicating no publicly reported exploitation at this time. Based on the description, it is inferred that the attack vector is remote via a network connection: an attacker can trigger the race by initiating a passive TCP connect to a dual‑stack listener. The use‑after‑free path could cause denial of service or privilege escalation. The lack of a KEV listing suggests the vulnerability has not yet been actively exploited, but the kernel‑level nature warrants prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that contains commit 858d2a4f67ff.
  • If an immediate kernel upgrade is not possible, backport or cherry‑pick this commit onto your current kernel source, rebuild, and install the updated kernel image.
  • After installing the updated kernel, verify that passive dual‑stack listener connections no longer trigger kernel panics or memory errors.

Generated by OpenCVE AI on December 1, 2026 at 08:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description 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 tcp_v4_syn_recv_sock() with tcp_v6_mapped_child_init() as the optional initializer. The callback currently runs after the output route lookup. If that lookup fails, tcp_done() destroys a clone whose pinet6 and ipv6_fl_list still refer to the listener's state. With the flowlabel list head in inet_sock, fl6_free_socklist() 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 tcp_v6_syn_recv_sock()") 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 sk_setup_caps(), and all later disposal paths remain covered.
Title tcp: initialize mapped children before route lookup
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:31 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM