CVE-2025-40158: Use-after-free in Linux kernel IPv6 ip6_output()
- Vendor
- Linux
CVE-2025-40158 is a potential use-after-free vulnerability in the Linux kernel's IPv6 output processing. Insufficient read-copy-update (RCU) protection in ip6_output() can permit unsafe access to the destination network device. The fix adds RCU protection to ip6_output() and uses dst_dev_rcu() to prevent access to freed memory. It also removes the corresponding rcu_read_lock()/rcu_read_unlock() pairs from ip6_finish_output2(). The flaw can compromise kernel memory safety; specific exploitation techniques and demonstrated consequences are not established.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
A use-after-free during IPv6 output processing could cause kernel instability or denial of service. CVE-specific CVSS v3 assessments assign potentially high confidentiality, integrity, and availability impacts, but arbitrary code execution, privilege escalation, and information disclosure are not demonstrated by the available technical details. Severity scores and exploit-availability statements for bundled security updates cannot be attributed to this CVE individually.
Mitigation
If you can’t patch tonight, do this now.
No CVE-specific temporary mitigation or validated workaround is documented. Apply the applicable kernel security update.
Remediation
Patch, then assume compromise.
Install the distribution-provided kernel update containing the RCU and dst_dev_rcu() changes in ip6_output(), then reboot into the corrected kernel. Fixed package versions include Debian 13 linux 6.12.113-1, Echo linux 6.12.113-1, Google COS kernel packages 18867.652.66, RHEL 8.10 kernel 4.18.0-553.104.1.el8_10, RHEL 9.6 kernel 5.14.0-570.120.1.el9_6, and RHEL 10.0 EUS kernel 6.12.0-55.82.1.el10_0. Use the update applicable to the installed distribution and support stream, or a later vendor release containing the fix.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-40158 exploited in the wild?
- As of Nov 26, 2026, Mallory has no reports of CVE-2025-40158 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-40158?
- As of Nov 26, 2026, Mallory has found no public exploit for CVE-2025-40158.
- Is there a patch for CVE-2025-40158?
- Install the distribution-provided kernel update containing the RCU and dst_dev_rcu() changes in ip6_output(), then reboot into the corrected kernel. Fixed package versions include Debian 13 linux 6.12.113-1, Echo linux 6.12.113-1, Google COS kernel packages 18867.652.66, RHEL 8.10 kernel 4.18.0-553.104.1.el8_10, RHEL 9.6 kernel 5.14.0-570.120.1.el9_6, and RHEL 10.0 EUS kernel 6.12.0-55.82.1.el10_0.
- What products are affected by CVE-2025-40158?
- Linux Kernel.
- How severe is CVE-2025-40158?
- CVE-2025-40158 has a CVSS v3.1 score of 8.1 (High) and an EPSS score of 0.81% (54th percentile) as of Nov 26, 2026.
Recent activity
30 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.