CVE-2025-40139
smc: Use __sk_dst_get() and dst_dev_rcu() in in smc_clc_prfx_set().
Mitigation
- Upgrade Linux to 935d783e5de9b64587f3adb25641dd8385e64ddb or later.
Who should check
- Anyone running Linux >= a046d57da19f812216f393e7c535f5858f793ac3, < 5a2fccc4b32c13ddde3676f9e15e1a9baa7d6fde; >= a046d57da19f812216f393e7c535f5858f793ac3, < 80d1fd39f4e37d836655e9f7ffccaf78925049bf; >= a046d57da19f812216f393e7c535f5858f793ac3, < 956c57daba55cf9ed25d9f2512883b8a1a927599; >= a046d57da19f812216f393e7c535f5858f793ac3, < 0736993bfe5c7a9c744ae3fac62d769dfdae54e1; >= a046d57da19f812216f393e7c535f5858f793ac3, < 935d783e5de9b64587f3adb25641dd8385e64ddb
- Anyone running Linux 4.11
Vulnerability facts
- Affected
- Linux >= a046d57da19f812216f393e7c535f5858f793ac3, < 5a2fccc4b32c13ddde3676f9e15e1a9baa7d6fde; >= a046d57da19f812216f393e7c535f5858f793ac3, < 80d1fd39f4e37d836655e9f7ffccaf78925049bf; >= a046d57da19f812216f393e7c535f5858f793ac3, < 956c57daba55cf9ed25d9f2512883b8a1a927599; >= a046d57da19f812216f393e7c535f5858f793ac3, < 0736993bfe5c7a9c744ae3fac62d769dfdae54e1; >= a046d57da19f812216f393e7c535f5858f793ac3, < 935d783e5de9b64587f3adb25641dd8385e64ddb; Linux 4.11
- Fixed in
- Linux 5a2fccc4b32c13ddde3676f9e15e1a9baa7d6fde, Linux 80d1fd39f4e37d836655e9f7ffccaf78925049bf, Linux 956c57daba55cf9ed25d9f2512883b8a1a927599, Linux 0736993bfe5c7a9c744ae3fac62d769dfdae54e1, Linux 935d783e5de9b64587f3adb25641dd8385e64ddb
- 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 8, 2026-11-26)
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= a046d57da19f812216f393e7c535f5858f793ac3, < 5a2fccc4b32c13ddde3676f9e15e1a9baa7d6fde; >= a046d57da19f812216f393e7c535f5858f793ac3, < 80d1fd39f4e37d836655e9f7ffccaf78925049bf; >= a046d57da19f812216f393e7c535f5858f793ac3, < 956c57daba55cf9ed25d9f2512883b8a1a927599; >= a046d57da19f812216f393e7c535f5858f793ac3, < 0736993bfe5c7a9c744ae3fac62d769dfdae54e1; >= a046d57da19f812216f393e7c535f5858f793ac3, < 935d783e5de9b64587f3adb25641dd8385e64ddb | — | cvelist |
| Linux | 4.11 | — | 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-40139. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-40139.md Affected: Linux >= a046d57da19f812216f393e7c535f5858f793ac3, < 5a2fccc4b32c13ddde3676f9e15e1a9baa7d6fde; >= a046d57da19f812216f393e7c535f5858f793ac3, < 80d1fd39f4e37d836655e9f7ffccaf78925049bf; >= a046d57da19f812216f393e7c535f5858f793ac3, < 956c57daba55cf9ed25d9f2512883b8a1a927599; >= a046d57da19f812216f393e… Fixed in: Linux 5a2fccc4b32c13ddde3676f9e15e1a9baa7d6fde, Linux 80d1fd39f4e37d836655e9f7ffccaf78925049bf, Linux 956c57daba55cf9ed25d9f2512883b8a1a927599, Linux 0736993bfe5c7a9c744ae3fac62d769dfdae54e1, Linux 935d783e5de9b64587f3adb25641dd8385e64ddb 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
Other
- https://git.kernel.org/stable/c/5a2fccc4b32c13ddde3676f9e15e1a9baa7d6fde
- https://git.kernel.org/stable/c/80d1fd39f4e37d836655e9f7ffccaf78925049bf
- https://git.kernel.org/stable/c/956c57daba55cf9ed25d9f2512883b8a1a927599
- https://git.kernel.org/stable/c/0736993bfe5c7a9c744ae3fac62d769dfdae54e1
- https://git.kernel.org/stable/c/935d783e5de9b64587f3adb25641dd8385e64ddb
FAQ
Is CVE-2025-40139 being exploited?
There is no confirmed exploitation: CVE-2025-40139 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-40139?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-40139?
Linux >= a046d57da19f812216f393e7c535f5858f793ac3, < 5a2fccc4b32c13ddde3676f9e15e1a9baa7d6fde; >= a046d57da19f812216f393e7c535f5858f793ac3, < 80d1fd39f4e37d836655e9f7ffccaf78925049bf; >= a046d57da19f812216f393e7c535f5858f793ac3, < 956c57daba55cf9ed25d9f2512883b8a1a927599; >= a046d57da19f812216f393e7c535f5858f793ac3, < 0736993bfe5c7a9c744ae3fac62d769dfdae54e1; >= a046d57da19f812216f393e7c535f5858f793ac3, < 935d783e5de9b64587f3adb25641dd8385e64ddb; Linux 4.11.
Is there a fix for CVE-2025-40139?
Yes. Fixed in Linux 5a2fccc4b32c13ddde3676f9e15e1a9baa7d6fde, Linux 80d1fd39f4e37d836655e9f7ffccaf78925049bf, Linux 956c57daba55cf9ed25d9f2512883b8a1a927599, Linux 0736993bfe5c7a9c744ae3fac62d769dfdae54e1, Linux 935d783e5de9b64587f3adb25641dd8385e64ddb. Upgrade Linux to 935d783e5de9b64587f3adb25641dd8385e64ddb or later.
How do I check if I'm affected by CVE-2025-40139?
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.