CVE-2026-139250

Not scored yetLast modified Nov 30, 2026

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139251In the Linux kernel, the following vulnerability has been resolved: sched_ext: Use irq_work for deferred actions with proxy execution maybCVE-2026-139252In the Linux kernel, the following vulnerability has been resolved: vhost: vringh: use get_user()/put_user() for IOTLB 16-bit accesses getCVE-2026-139253In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Fix NULL deref in PTP TX timestamp recovery warn PTP SQs arCVE-2026-1392547.0In the Linux kernel, the following vulnerability has been resolved: net/mlx5: HWS, fix modify header pool creation race mlx5_cmd_hws_modifCVE-2026-139255In the Linux kernel, the following vulnerability has been resolved: xsk: freeze deferred pool teardown without blocking unregister DeferreCVE-2026-139256In the Linux kernel, the following vulnerability has been resolved: RDMA/irdma: Bound in-flight CQP ops across deferred completions On IRDCVE-2026-139257In the Linux kernel, the following vulnerability has been resolved: ntfs: fix NULL dereference on index allocation open failure ntfs_indexCVE-2026-1392587.8In the Linux kernel, the following vulnerability has been resolved: ntfs: widen the sub-block offsets in ntfs_decompress() ntfs_decompressCVE-2026-139259In the Linux kernel, the following vulnerability has been resolved: ntfs: clear stale pagecache on initialized-size extension iomap_zero_rCVE-2026-139266.5Insufficient validation of untrusted input in Network in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who had compromised CVE-2026-139260In the Linux kernel, the following vulnerability has been resolved: ntfs: drain in-flight DIO before buffered write fallback An asynchronoCVE-2026-139261In the Linux kernel, the following vulnerability has been resolved: ntfs: do not give a contiguous cluster allocation a second run ntfs_at
CVE-2026-139250: Unscored | Vulnix