CVE-2025-40158Published Nov 12, 2025 · Nov 12Updated Nov 1
ipv6: use RCU in ip6_output()
Linux
High8.1
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Original description
In the Linux kernel, the following vulnerability has been resolved:
ipv6: use RCU in ip6_output()
Use RCU in ip6_output() in order to use dst_dev_rcu() to prevent possible UAF.
We can remove rcu_read_lock()/rcu_read_unlock() pairs from ip6_finish_output2().
From the CVE record · Linux
References
- git.kernel.org/stable/c/4549ce1057363c8dc072f40c6aa591c279eafed2
- git.kernel.org/stable/c/423895685f367b5a0a956bd14b02df0192bded4c
- git.kernel.org/stable/c/92803b826e40e49a5e8a6e208f4b4574e9d19426
- git.kernel.org/stable/c/0393f85c3241c19ba8550f04a812e7d19f6b3082
- git.kernel.org/stable/c/11709573cc4e48dc34c80fc7ab9ce5b159e29695
- github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40158.json
- nvd.nist.gov/vuln/detail/CVE-2025-40158
- git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git