CVE-2025-40139
Last modified
CVE-2025-40139 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: smc: Use __sk_dst_get() and dst_dev_rcu() in in smc_clc_prfx_set(). smc_clc_prfx_set() is called during connect() and not under RCU nor RTNL. Using sk_dst_get(sk)->dev could trigger UAF. Let's use __sk_dst_get() and dev_dst_rcu() under rcu_read_lock() after kernel_getsockname(). Note that the returned value of smc_clc_prfx_set() is not used in the caller. While at it, we change the 1st arg of smc_clc_prfx_set[46]_rcu() not to touch dst there.. EPSS estimates a 0.18% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: smc: Use __sk_dst_get() and dst_dev_rcu() in in smc_clc_prfx_set(). smc_clc_prfx_set() is called during connect() and not under RCU nor RTNL. Using sk_dst_get(sk)->dev could trigger UAF. Let's use __sk_dst_get() and dev_dst_rcu() under rcu_read_lock() after kernel_getsockname(). Note that the returned value of smc_clc_prfx_set() is not used in the caller. While at it, we change the 1st arg of smc_clc_prfx_set[46]_rcu() not to touch dst there.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= a046d57da19f812216f393e7c535f5858f793ac3, < 0736993bfe5c7a9c744ae3fac62d769dfdae54e1; >= a046d57da19f812216f393e7c535f5858f793ac3, < 935d783e5de9b64587f3adb25641dd8385e64ddb |
| Linux | Linux | 4.11 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-40139?
How severe is CVE-2025-40139?
How do I fix CVE-2025-40139?
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-40133In the Linux kernel, the following vulnerability has been re…8.1
- CVE-2025-40134In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40135In the Linux kernel, the following vulnerability has been re…8.1
- CVE-2025-40136In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40137In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40138In the Linux kernel, the following vulnerability has been re…
- CVE-2025-4014A vulnerability was found in PHPGurukul Art Gallery Manageme…9.8
- CVE-2025-40140In the Linux kernel, the following vulnerability has been re…8.8
- CVE-2025-40141In the Linux kernel, the following vulnerability has been re…8
- CVE-2025-40142In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40143In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40144Rejected reason: This CVE ID has been rejected or withdrawn …
Are you affected by CVE-2025-40139?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
