# CVE-2025-40139: smc: Use \_\_sk\_dst\_get() and dst\_dev\_rcu() in in smc\_clc\_prfx\_set().

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-11-12 · Modified: 2026-10-15
- Aliases: UBUNTU-CVE-2025-40139, DEBIAN-CVE-2025-40139
- Record: https://cvemate.com/vulnerability/CVE-2025-40139 · JSON: https://cvemate.com/vulnerability/CVE-2025-40139/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.169%, percentile 6.499%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 158)

- debian linux (Debian): \< 6.1.187-1 \| \< 6.12.111-1 \| \< 6.17.6-1
- debian linux-6.12 (Debian): \< 6.12.111-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-149.149 \| \< 6.17.0-14.14
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1069.74 \| \< 6.17.0-1007.7
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): \< 6.17.0-1007.7~24.04.1
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1069.74~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1069.74+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)

## References (first 20 of 26)

- <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>
- <https://ubuntu.com/security/CVE-2025-40139>
- <https://www.cve.org/CVERecord?id=CVE-2025-40139>
- <https://git.kernel.org/linus/935d783e5de9b64587f3adb25641dd8385e64ddb>
- <https://ubuntu.com/security/notices/USN-8029-1>
- <https://ubuntu.com/security/notices/USN-8030-1>
- <https://ubuntu.com/security/notices/USN-8029-2>
- <https://ubuntu.com/security/notices/USN-8048-1>
- <https://ubuntu.com/security/notices/USN-8029-3>
- <https://ubuntu.com/security/notices/USN-8781-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-40139>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-40139>
- <https://ubuntu.com/security/notices/USN-9023-1>
- <https://ubuntu.com/security/notices/USN-9025-1>
- <https://ubuntu.com/security/notices/USN-9022-1>
- <https://ubuntu.com/security/notices/USN-9024-1>

---

Data as of 2026-12-06T04:48:37.139Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
