CVE-2025-40139
JSON

7.8high

smc: Use __sk_dst_get() and dst_dev_rcu() in in smc_clc_prfx_set().

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.23% (higher than 8% of CVEs)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom a046d57da19f812216f393e7c535f5858f793ac3 before 5a2fccc4b32c13ddde3676f9e15e1a9baa7d6fde, from a046d57da19f812216f393e7c535f5858f793ac3 before 80d1fd39f4e37d836655e9f7ffccaf78925049bf, from a046d57da19f812216f393e7c535f5858f793ac3 before 956c57daba55cf9ed25d9f2512883b8a1a927599, from a046d57da19f812216f393e7c535f5858f793ac3 before 0736993bfe5c7a9c744ae3fac62d769dfdae54e1, from a046d57da19f812216f393e7c535f5858f793ac3 before 935d783e5de9b64587f3adb25641dd8385e64ddb, 4.11
Not affected: before 4.11, from 6.1.187 up to 6.1.*, from 6.6.156 up to 6.6.*, from 6.12.108 up to 6.12.*, from 6.17.3 up to 6.17.*, from 6.18 up to *
CVE List

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: smc: Usar __sk_dst_get() y dst_dev_rcu() en smc_clc_prfx_set(). smc_clc_prfx_set() es llamada durante connect() y no bajo RCU ni RTNL. Usar sk_dst_get(sk)->dev podría desencadenar UAF. Usemos __sk_dst_get() y dev_dst_rcu() bajo rcu_read_lock() después de kernel_getsockname(). Nótese que el valor devuelto de smc_clc_prfx_set() no es usado en la función llamadora. Aprovechando la ocasión, cambiamos el primer argumento de smc_clc_prfx_set[46]_rcu() para no tocar dst allí.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-40139 changed 2026-10-15CVE Terms of Use
NVDCVE-2025-40139 changed 2026-10-19Public domain