Skip to content
7.8 High

CVE-2025-40149 In the Linux kernel, the following vulnerability has been resolved: tls: Use __sk_dst_get() and dst_dev_rcu() in…

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 products and versions

Product Affected versions Fixed in
Linux 6.18 earliest → < 6.18 6.18
Linux 6.17 earliest → < 6.17.3 6.17.3
Linux 6.12 earliest → < 6.12.66 6.12.66
Linux 6.6 earliest → < 6.6.121 6.6.121
Linux 6.1 earliest → < 6.1.161 6.1.161
Linux 5.15 earliest → < 5.15.199 5.15.199
Linux 4.18 No fix stated
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP 3.1 3.1.7 → latest No fix stated
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP 3.1 3.1.7 → latest No fix stated
Show the other branch
Product Affected versions Fixed in
SIPLUS S7-1500 CPU 1518-4 PN/DP MFP 3.1 3.1.7 → latest No fix stated
The 18286 CVEs of Linux →
Track this CVE