CVE-2025-40158

Source
https://cve.org/CVERecord?id=CVE-2025-40158
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40158.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40158
Downstream
Related
Published
2025-11-12T10:23:29.516Z
Modified
2026-03-12T02:19:05.078889Z
Summary
ipv6: use RCU in ip6_output()
Details

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

ipv6: use RCU in ip6_output()

Use RCU in ip6output() in order to use dstdev_rcu() to prevent possible UAF.

We can remove rcureadlock()/rcureadunlock() pairs from ip6finishoutput2().

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40158.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
4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36
Fixed
0393f85c3241c19ba8550f04a812e7d19f6b3082
Fixed
11709573cc4e48dc34c80fc7ab9ce5b159e29695

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.13.0
Fixed
6.17.3

Database specific

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