CVE-2025-40139
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
12/11/2025
Last modified:
19/10/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
smc: Use __sk_dst_get() and dst_dev_rcu() in in smc_clc_prfx_set().<br />
<br />
smc_clc_prfx_set() is called during connect() and not under RCU<br />
nor RTNL.<br />
<br />
Using sk_dst_get(sk)->dev could trigger UAF.<br />
<br />
Let&#39;s use __sk_dst_get() and dev_dst_rcu() under rcu_read_lock()<br />
after kernel_getsockname().<br />
<br />
Note that the returned value of smc_clc_prfx_set() is not used<br />
in the caller.<br />
<br />
While at it, we change the 1st arg of smc_clc_prfx_set[46]_rcu()<br />
not to touch dst there.
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/0736993bfe5c7a9c744ae3fac62d769dfdae54e1
- https://git.kernel.org/stable/c/5a2fccc4b32c13ddde3676f9e15e1a9baa7d6fde
- https://git.kernel.org/stable/c/80d1fd39f4e37d836655e9f7ffccaf78925049bf
- https://git.kernel.org/stable/c/935d783e5de9b64587f3adb25641dd8385e64ddb
- https://git.kernel.org/stable/c/956c57daba55cf9ed25d9f2512883b8a1a927599


