CVE-2025-40149
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.23% (higher than 9% of CVEs)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom e8f69799810c32dd40c6724d829eccc70baad07f before 2b1bef126bbb8d0da51491357559126d567c1dee, from e8f69799810c32dd40c6724d829eccc70baad07f before e37ca0092ddace60833790b4ad7a390408fb1be9, from e8f69799810c32dd40c6724d829eccc70baad07f before 13159c7125636371543a82cb7bbae00ab36730cc, from e8f69799810c32dd40c6724d829eccc70baad07f before f09cd209359a23f88d4f3fa3d2379d057027e53c, from e8f69799810c32dd40c6724d829eccc70baad07f before feb474ddbf26b51f462ae2e60a12013bdcfc5407, from e8f69799810c32dd40c6724d829eccc70baad07f before c65f27b9c3be2269918e1cbad6d8884741f835c5, 4.18
Not affected: before 4.18, from 5.15.199 up to 5.15.*, from 6.1.161 up to 6.1.*, from 6.6.121 up to 6.6.*, from 6.12.66 up to 6.12.*, from 6.17.3 up to 6.17.*
CVE List
linux linux_kernelfrom 4.18 before 5.15.199, from 5.16 before 6.1.161, from 6.2 before 6.6.121, from 6.7 before 6.12.66, from 6.13 before 6.17.3NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: tls: Usar __sk_dst_get() y dst_dev_rcu() en get_netdev_for_sock(). get_netdev_for_sock() es llamada durante setsockopt(), por lo tanto, no bajo RCU. Usar sk_dst_get(sk)->dev podría desencadenar UAF. Usemos __sk_dst_get() y dst_dev_rcu(). Nótese que el único usuario de ->ndo_sk_get_lower_dev() es bond_sk_get_lower_dev(), el cual usa RCU.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-40149 changed 2026-11-10CVE Terms of Use
NVDCVE-2025-40149 changed 2026-11-10Public domain