Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139250

published

tcp: tcp_metrics: use the socket netns, not the dst device netns

Published
30 Nov 2026, 13:33:00 UTC
Updated
30 Nov 2026, 13:33:00 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux51c5d0c4b169bf762f09e0d5b283a7f0b2a45739 to < 92735a5a10a69a4d695d3466500b9f69ff88c81e · 51c5d0c4b169bf762f09e0d5b283a7f0b2a45739 to < 1bff258a5b6d2f0ef1c249166c73b689c263fc91 · 51c5d0c4b169bf762f09e0d5b283a7f0b2a45739 to < bd2e8296521cc9b05795973f5de1776602c35c26 · 51c5d0c4b169bf762f09e0d5b283a7f0b2a45739 to < b841bbfd532c35fd0165c8422783eb4b67e99ece · 51c5d0c4b169bf762f09e0d5b283a7f0b2a45739 to < 34319db5bf8f678969225a79051151de8a983747 · 51c5d0c4b169bf762f09e0d5b283a7f0b2a45739 to < 61076edd5def44417d16ce405c636a02c933555e · 51c5d0c4b169bf762f09e0d5b283a7f0b2a45739 to < 504bdcb8c1566a6f887f9accebe1aa99b502ae97 · Other versions: unaffected Affected Not stated Linux
Linux — Linux3.6 (affected) · 0 to < 3.6 (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Pending Fix Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Pending Fix Not stated Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: tcp: tcp_metrics: use the socket netns, not the dst device netns tcp_get_metrics(), __tcp_get_metrics_req() and tcpm_new() look up and create metrics entries in the netns of the cached dst device rather than in the netns of the socket. These usually match, but not after the device has been moved to another netns or unregistered: a socket can keep a stale dst in sk_dst_cache until it is checked again, and tcp_update_metrics() reads it with __sk_dst_get() without any dst_check(). Once dst_dev_put() has run, the dst device is blackhole_netdev and the entry is created in init_net. Before that, for instance for routes through nexthop objects whose cached dsts are released from a nested RCU callback, it is the netns the device has just been moved to. A TCP socket of netns A that enters TIME_WAIT in that window then creates or updates an entry carrying A's addresses and RTT in another netns, where TCP_METRICS_CMD_GET can dump it and where new connections to the same peer inherit those metrics. The metrics belong to the netns of the socket, so use sock_net() for full sockets and request sockets, and pass it to tcpm_new(). Kernel sockets that do not hold a netns reference can still reach tcp_time_wait() after tcp_net_metrics_exit_batch() has flushed the entries of their dismantling netns, and an entry created then would never be flushed and would keep a dangling tcpm_net. Make tcpm_new() refuse to create entries when check_net() fails. Its callers are in an RCU read-side section, and cleanup_net() waits for a grace period between the refcount reaching zero and the flush, so an entry added after a successful check is always seen by the flush.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 51c5d0c4b169bf762f09e0d5b283a7f0b2a45739 to < 92735a5a10a69a4d695d3466500b9f69ff88c81e (affected · git)51c5d0c4b169bf762f09e0d5b283a7f0b2a45739 to < 1bff258a5b6d2f0ef1c249166c73b689c263fc91 (affected · git)51c5d0c4b169bf762f09e0d5b283a7f0b2a45739 to < bd2e8296521cc9b05795973f5de1776602c35c26 (affected · git)51c5d0c4b169bf762f09e0d5b283a7f0b2a45739 to < b841bbfd532c35fd0165c8422783eb4b67e99ece (affected · git)51c5d0c4b169bf762f09e0d5b283a7f0b2a45739 to < 34319db5bf8f678969225a79051151de8a983747 (affected · git)51c5d0c4b169bf762f09e0d5b283a7f0b2a45739 to < 61076edd5def44417d16ce405c636a02c933555e (affected · git)51c5d0c4b169bf762f09e0d5b283a7f0b2a45739 to < 504bdcb8c1566a6f887f9accebe1aa99b502ae97 (affected · git)Default: unaffected Linux · cna
Linux Linux 3.6 (affected)0 to < 3.6 (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

7

Provider assertions

1

Linux · cna

tcp: tcp_metrics: use the socket netns, not the dst device netns

Provenance

Schema
5.2
Searchable
yes
Content hash
e53b89efd786ae8433188ef6d3ed156c2233f34b62328b8dc4f855a66fc4eaa2
Ingested
30 Nov 2026, 13:42:23 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected