CVE-2025-40149tls: Use __sk_dst_get() and dst_dev_rcu() in get_netdev_for_sock().
- 7.8HighCVSS base score
- 0.17%Exploitation in 30 daysEPSS · top 93% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By Linux
- 7 months later
· 7 months later
Published
- 12 months later
· 12 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| LinuxCNA (assigner) | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.17% · top 93% of all CVEs (15 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Affected products
- affected e8f69799810c32dd40c6724d829eccc70baad07f – < 2b1bef126bbb8d0da51491357559126d567c1dee
- affected e8f69799810c32dd40c6724d829eccc70baad07f – < e37ca0092ddace60833790b4ad7a390408fb1be9
- affected e8f69799810c32dd40c6724d829eccc70baad07f – < 13159c7125636371543a82cb7bbae00ab36730cc
- affected e8f69799810c32dd40c6724d829eccc70baad07f – < f09cd209359a23f88d4f3fa3d2379d057027e53c
- affected e8f69799810c32dd40c6724d829eccc70baad07f – < feb474ddbf26b51f462ae2e60a12013bdcfc5407
- affected e8f69799810c32dd40c6724d829eccc70baad07f – < c65f27b9c3be2269918e1cbad6d8884741f835c5
- affected 4.18
- unaffected < 4.18
- unaffected 5.15.199 – ≤ 5.15.*
- unaffected 6.1.161 – ≤ 6.1.*
- unaffected 6.6.121 – ≤ 6.6.*
- unaffected 6.12.66 – ≤ 6.12.*
- unaffected 6.17.3 – ≤ 6.17.*
- unaffected 6.18 – ≤ *
References
References8
- https://git.kernel.org/stable/c/2b1bef126bbb8d0da51491357559126d567c1dee (opens in a new tab)
- https://git.kernel.org/stable/c/e37ca0092ddace60833790b4ad7a390408fb1be9 (opens in a new tab)
- https://git.kernel.org/stable/c/13159c7125636371543a82cb7bbae00ab36730cc (opens in a new tab)
- https://git.kernel.org/stable/c/f09cd209359a23f88d4f3fa3d2379d057027e53c (opens in a new tab)
- https://git.kernel.org/stable/c/feb474ddbf26b51f462ae2e60a12013bdcfc5407 (opens in a new tab)
- https://git.kernel.org/stable/c/c65f27b9c3be2269918e1cbad6d8884741f835c5 (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-124934 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-40149)Record last updated .