CVE-2025-40168

Source
https://cve.org/CVERecord?id=CVE-2025-40168
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40168.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40168
Downstream
Related
Published
2025-11-12T10:46:51.422Z
Modified
2026-03-20T12:43:12.277118Z
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
d26e80f7fb62d77757b67a1b94e4ac756bc9c658
Fixed
235f81045c008169cc4e1955b4a64e118eebe61b

Database specific

source
"https://storage.googleapis.com/osv-test-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.17.3

Database specific

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