CVE-2025-40168

Source
https://cve.org/CVERecord?id=CVE-2025-40168
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40168.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-40168
Downstream
Related
Published
2025-11-12T10:46:51.422Z
Modified
2026-09-04T03:30:36.415740591Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
smc: Use __sk_dst_get() and dst_dev_rcu() in smc_clc_prfx_match().
Details

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

smc: Use _skdstget() and dstdevrcu() in smcclcprfxmatch().

smcclcprfxmatch() is called from smclisten_work() and not under RCU nor RTNL.

Using skdstget(sk)->dev could trigger UAF.

Let's use __skdstget() and dstdevrcu().

Note that the returned value of smcclcprfx_match() is not used in the caller.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40168.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a046d57da19f812216f393e7c535f5858f793ac3
Fixed
3f119c37aa293af41400cccb3d89fab8dcf774b0
Fixed
4f5f52a5842937f945582a93cb9daed9ea526fee
Fixed
326e5cf301d0bec0a672aa834d8254c4f9df6255
Fixed
d26e80f7fb62d77757b67a1b94e4ac756bc9c658
Fixed
235f81045c008169cc4e1955b4a64e118eebe61b

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40168.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.11.0
Fixed
6.1.187
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.156
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.108
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40168.json"