CVE-2025-40149

tls: Use __sk_dst_get() and dst_dev_rcu() in get_netdev_for_sock().

HIGH
7.8
CVSS Score
Published: November 12, 2025 at 10:23 AM UTC
Updated: October 19, 2026 at 09:10 PM UTC
4 products affected across 2 vendorsLinux KernelSIMATIC S7-1500 CPU 1518-4 Pn /dp MFP FirmwareSiplus S7-1500 CPU 1518-4 Pn /dp MFP Firmware

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: tls: Use __sk_dst_get() and dst_dev_rcu() in get_netdev_for_sock(). get_netdev_for_sock() is called during setsockopt(), so not under RCU. Using sk_dst_get(sk)->dev could trigger UAF. Let's use __sk_dst_get() and dst_dev_rcu(). Note that the only ->ndo_sk_get_lower_dev() user is bond_sk_get_lower_dev(), which uses RCU.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.18 ≤ v < 5.15.1995.16 ≤ v < 6.1.1616.13 ≤ v < 6.17.36.2 ≤ v < 6.6.1216.7 ≤ v < 6.12.664.18e8f69799810c32dd40c6724d829eccc70baad07f
Vendor states this is fixed in 13159c7125636371543a82cb7bbae00ab36730cc (fixed)
Vendor states this is fixed in 2b1bef126bbb8d0da51491357559126d567c1dee (fixed)
Vendor states this is fixed in c65f27b9c3be2269918e1cbad6d8884741f835c5 (fixed)
Vendor states this is fixed in e37ca0092ddace60833790b4ad7a390408fb1be9 (fixed)
Vendor states this is fixed in f09cd209359a23f88d4f3fa3d2379d057027e53c (fixed)
Vendor states this is fixed in feb474ddbf26b51f462ae2e60a12013bdcfc5407 (fixed)
Vendor states this is fixed in 4.18 (unaffected)
Vendor states this is fixed in 5.15.199 (unaffected)
Vendor states this is fixed in 6.1.161 (unaffected)
Vendor states this is fixed in 6.12.66 (unaffected)
Vendor states this is fixed in 6.17.3 (unaffected)
Vendor states this is fixed in 6.18 (unaffected)
Vendor states this is fixed in 6.6.121 (unaffected)

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card