Skip to main content
Mallory
HighVulnerability

CVE-2025-40158: Use-after-free in Linux kernel IPv6 ip6_output()

Published Nov 12, 2025 · Updated 2 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days3 mentions · peak 1 in a dayToday
CVSS8.1High · v3.1
EPSS0.81%54th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Linux
IdentifiersCVE-2025-40158CWE-416

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
LinuxLinux Kerneloperating_system
FAQ

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.
Activity feed

Recent activity

30 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+18 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.