CVE-2025-40149
tls: Use __sk_dst_get() and dst_dev_rcu() in get_netdev_for_sock().
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= e8f69799810c32dd40c6724d829eccc70baad07f, < 2b1bef126bbb8d0da51491357559126d567c1dee; >= e8f69799810c32dd40c6724d829eccc70baad07f, < e37ca0092ddace60833790b4ad7a390408fb1be9; >= e8f69799810c32dd40c6724d829eccc70baad07f, < 13159c7125636371543a82cb7bbae00ab36730cc; >= e8f69799810c32dd40c6724d829eccc70baad07f, < f09cd209359a23f88d4f3fa3d2379d057027e53c; >= e8f69799810c32dd40c6724d829eccc70baad07f, < feb474ddbf26b51f462ae2e60a12013bdcfc5407; >= e8f69799810c32dd40c6724d829eccc70baad07f, < c65f27b9c3be2269918e1cbad6d8884741f835c5
- Anyone running Linux 4.18
Vulnerability facts
- Affected
- Linux >= e8f69799810c32dd40c6724d829eccc70baad07f, < 2b1bef126bbb8d0da51491357559126d567c1dee; >= e8f69799810c32dd40c6724d829eccc70baad07f, < e37ca0092ddace60833790b4ad7a390408fb1be9; >= e8f69799810c32dd40c6724d829eccc70baad07f, < 13159c7125636371543a82cb7bbae00ab36730cc; >= e8f69799810c32dd40c6724d829eccc70baad07f, < f09cd209359a23f88d4f3fa3d2379d057027e53c; >= e8f69799810c32dd40c6724d829eccc70baad07f, < feb474ddbf26b51f462ae2e60a12013bdcfc5407; >= e8f69799810c32dd40c6724d829eccc70baad07f, < c65f27b9c3be2269918e1cbad6d8884741f835c5; Linux 4.18
- Fixed in
- Linux 2b1bef126bbb8d0da51491357559126d567c1dee, Linux 13159c7125636371543a82cb7bbae00ab36730cc
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.23% chance of exploitation in 30 days (percentile 9, 2026-11-26)
- CWE
- CWE-416
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= e8f69799810c32dd40c6724d829eccc70baad07f, < 2b1bef126bbb8d0da51491357559126d567c1dee; >= e8f69799810c32dd40c6724d829eccc70baad07f, < e37ca0092ddace60833790b4ad7a390408fb1be9; >= e8f69799810c32dd40c6724d829eccc70baad07f, < 13159c7125636371543a82cb7bbae00ab36730cc; >= e8f69799810c32dd40c6724d829eccc70baad07f, < f09cd209359a23f88d4f3fa3d2379d057027e53c; >= e8f69799810c32dd40c6724d829eccc70baad07f, < feb474ddbf26b51f462ae2e60a12013bdcfc5407; >= e8f69799810c32dd40c6724d829eccc70baad07f, < c65f27b9c3be2269918e1cbad6d8884741f835c5 | — | cvelist |
| Linux | 4.18 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-40149. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-40149.md Affected: Linux >= e8f69799810c32dd40c6724d829eccc70baad07f, < 2b1bef126bbb8d0da51491357559126d567c1dee; >= e8f69799810c32dd40c6724d829eccc70baad07f, < e37ca0092ddace60833790b4ad7a390408fb1be9; >= e8f69799810c32dd40c6724d829eccc70baad07f, < 13159c7125636371543a82cb7bbae00ab36730cc; >= e8f69799810c32dd40c6724… Fixed in: Linux 2b1bef126bbb8d0da51491357559126d567c1dee, Linux 13159c7125636371543a82cb7bbae00ab36730cc Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/2b1bef126bbb8d0da51491357559126d567c1dee
- https://git.kernel.org/stable/c/e37ca0092ddace60833790b4ad7a390408fb1be9
- https://git.kernel.org/stable/c/13159c7125636371543a82cb7bbae00ab36730cc
- https://git.kernel.org/stable/c/f09cd209359a23f88d4f3fa3d2379d057027e53c
- https://git.kernel.org/stable/c/feb474ddbf26b51f462ae2e60a12013bdcfc5407
- https://git.kernel.org/stable/c/c65f27b9c3be2269918e1cbad6d8884741f835c5
FAQ
Is CVE-2025-40149 being exploited?
There is no confirmed exploitation: CVE-2025-40149 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-40149?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-40149?
Linux >= e8f69799810c32dd40c6724d829eccc70baad07f, < 2b1bef126bbb8d0da51491357559126d567c1dee; >= e8f69799810c32dd40c6724d829eccc70baad07f, < e37ca0092ddace60833790b4ad7a390408fb1be9; >= e8f69799810c32dd40c6724d829eccc70baad07f, < 13159c7125636371543a82cb7bbae00ab36730cc; >= e8f69799810c32dd40c6724d829eccc70baad07f, < f09cd209359a23f88d4f3fa3d2379d057027e53c; >= e8f69799810c32dd40c6724d829eccc70baad07f, < feb474ddbf26b51f462ae2e60a12013bdcfc5407; >= e8f69799810c32dd40c6724d829eccc70baad07f, < c65f27b9c3be2269918e1cbad6d8884741f835c5; Linux 4.18.
Is there a fix for CVE-2025-40149?
Yes. Fixed in Linux 2b1bef126bbb8d0da51491357559126d567c1dee, Linux 13159c7125636371543a82cb7bbae00ab36730cc. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2025-40149?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.