# CVE-2025-40158: ipv6: use RCU in ip6_output()

- Severity: High 8.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 51% of CVEs (2026-12-01)
- Published: 2025-11-12T10:23:29.516Z
- Modified: 2026-11-23T08:17:13.430Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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().

(As written by CVE List.)

## Affected

- Linux Linux: from 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 before 51585434cb3851b4dca15e67223bde8987985aae; from 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 before 4549ce1057363c8dc072f40c6aa591c279eafed2; from 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 before 423895685f367b5a0a956bd14b02df0192bded4c; from 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 before 92803b826e40e49a5e8a6e208f4b4574e9d19426; from 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 before 0393f85c3241c19ba8550f04a812e7d19f6b3082; from 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 before 11709573cc4e48dc34c80fc7ab9ce5b159e29695; 4.13 (not affected: before 4.13; from 5.15.226 up to 5.15.*; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.113 up to 6.12.*; from 6.17.3 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/51585434cb3851b4dca15e67223bde8987985aae>
- <https://git.kernel.org/stable/c/4549ce1057363c8dc072f40c6aa591c279eafed2>
- <https://git.kernel.org/stable/c/423895685f367b5a0a956bd14b02df0192bded4c>
- <https://git.kernel.org/stable/c/92803b826e40e49a5e8a6e208f4b4574e9d19426>
- <https://git.kernel.org/stable/c/0393f85c3241c19ba8550f04a812e7d19f6b3082>
- <https://git.kernel.org/stable/c/11709573cc4e48dc34c80fc7ab9ce5b159e29695>

## Sources

- CVE List: [CVE-2025-40158](https://www.cve.org/CVERecord?id=CVE-2025-40158), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2025-40158](https://nvd.nist.gov/vuln/detail/CVE-2025-40158), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2025-40158 · Whole record: https://cve.day/CVE-2025-40158.json · Rebuilt by cve.day 2026-11-25T22:59:07.559Z
