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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.75% (percentile 51, 2026-11-26)
- **Published:** 2025-11-12T10:46:51.422Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= a046d57da19f812216f393e7c535f5858f793ac3, \< 3f119c37aa293af41400cccb3d89fab8dcf774b0; \>= a046d57da19f812216f393e7c535f5858f793ac3, \< 4f5f52a5842937f945582a93cb9daed9ea526fee; \>= a046d57da19f812216f393e7c535f5858f793ac3, \< 326e5cf301d0bec0a672aa834d8254c4f9df6255; \>= a046d57da19f812216f393e7c535f5858f793ac3, \< d26e80f7fb62d77757b67a1b94e4ac756bc9c658; \>= a046d57da19f812216f393e7c535f5858f793ac3, \< 235f81045c008169cc4e1955b4a64e118eebe61b
- Anyone running Linux 4.11

## Description

In the Linux kernel, the following vulnerability has been resolved:

smc: Use \_\_sk\_dst\_get() and dst\_dev\_rcu() in smc\_clc\_prfx\_match().

smc\_clc\_prfx\_match() is called from smc\_listen\_work() and
not under RCU nor RTNL.

Using sk\_dst\_get(sk)-\>dev could trigger UAF.

Let's use \_\_sk\_dst\_get() and dst\_dev\_rcu().

Note that the returned value of smc\_clc\_prfx\_match() is not
used in the caller.

## Affected and fixed versions

- Linux: \>= a046d57da19f812216f393e7c535f5858f793ac3, \< 3f119c37aa293af41400cccb3d89fab8dcf774b0; \>= a046d57da19f812216f393e7c535f5858f793ac3, \< 4f5f52a5842937f945582a93cb9daed9ea526fee; \>= a046d57da19f812216f393e7c535f5858f793ac3, \< 326e5cf301d0bec0a672aa834d8254c4f9df6255; \>= a046d57da19f812216f393e7c535f5858f793ac3, \< d26e80f7fb62d77757b67a1b94e4ac756bc9c658; \>= a046d57da19f812216f393e7c535f5858f793ac3, \< 235f81045c008169cc4e1955b4a64e118eebe61b (cvelist)
- Linux: 4.11 (cvelist)

## Mitigation

- Upgrade Linux to 235f81045c008169cc4e1955b4a64e118eebe61b or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40168. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40168.md
Affected: Linux >= a046d57da19f812216f393e7c535f5858f793ac3, < 3f119c37aa293af41400cccb3d89fab8dcf774b0; >= a046d57da19f812216f393e7c535f5858f793ac3, < 4f5f52a5842937f945582a93cb9daed9ea526fee; >= a046d57da19f812216f393e7c535f5858f793ac3, < 326e5cf301d0bec0a672aa834d8254c4f9df6255; >= a046d57da19f812216f393e…
Fixed in: Linux 3f119c37aa293af41400cccb3d89fab8dcf774b0, Linux 4f5f52a5842937f945582a93cb9daed9ea526fee, Linux 326e5cf301d0bec0a672aa834d8254c4f9df6255, Linux 235f81045c008169cc4e1955b4a64e118eebe61b

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

## FAQ

### Is CVE-2025-40168 being exploited?

There is no confirmed exploitation: CVE-2025-40168 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.75% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40168?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2025-40168?

Linux \>= a046d57da19f812216f393e7c535f5858f793ac3, \< 3f119c37aa293af41400cccb3d89fab8dcf774b0; \>= a046d57da19f812216f393e7c535f5858f793ac3, \< 4f5f52a5842937f945582a93cb9daed9ea526fee; \>= a046d57da19f812216f393e7c535f5858f793ac3, \< 326e5cf301d0bec0a672aa834d8254c4f9df6255; \>= a046d57da19f812216f393e7c535f5858f793ac3, \< d26e80f7fb62d77757b67a1b94e4ac756bc9c658; \>= a046d57da19f812216f393e7c535f5858f793ac3, \< 235f81045c008169cc4e1955b4a64e118eebe61b; Linux 4.11.

### Is there a fix for CVE-2025-40168?

Yes. Fixed in Linux 3f119c37aa293af41400cccb3d89fab8dcf774b0, Linux 4f5f52a5842937f945582a93cb9daed9ea526fee, Linux 326e5cf301d0bec0a672aa834d8254c4f9df6255, Linux 235f81045c008169cc4e1955b4a64e118eebe61b. Upgrade Linux to 235f81045c008169cc4e1955b4a64e118eebe61b or later.

### How do I check if I'm affected by CVE-2025-40168?

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.

## References

- other: <https://git.kernel.org/stable/c/3f119c37aa293af41400cccb3d89fab8dcf774b0>
- other: <https://git.kernel.org/stable/c/4f5f52a5842937f945582a93cb9daed9ea526fee>
- other: <https://git.kernel.org/stable/c/326e5cf301d0bec0a672aa834d8254c4f9df6255>
- other: <https://git.kernel.org/stable/c/d26e80f7fb62d77757b67a1b94e4ac756bc9c658>
- other: <https://git.kernel.org/stable/c/235f81045c008169cc4e1955b4a64e118eebe61b>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40168>

HTML: <https://flawdb.com/CVE-2025-40168> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40168>
