CVE-2025-40149
Last modified
CVE-2025-40149 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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.. EPSS estimates a 0.16% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 4.18, < 5.15.199 |
| Linux | Linux Kernel | >= 5.16, < 6.1.161 |
| Linux | Linux Kernel | >= 6.2, < 6.6.121 |
| Linux | Linux Kernel | >= 6.7, < 6.12.66 |
| Linux | Linux Kernel | >= 6.13, < 6.17.3 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-40149?
How severe is CVE-2025-40149?
How do I fix CVE-2025-40149?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-40143In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40144Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2025-40145In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40146In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40147In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40148In the Linux kernel, the following vulnerability has been re…
- CVE-2025-4015A vulnerability was found in 20120630 Novel-Plus up to 0e156…7.5
- CVE-2025-40150In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40151In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40152In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40153In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40154In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2025-40149?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
