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… (CVE-2025-40158)
A use-after-free (UAF) vulnerability in the Linux kernel's IPv6 output processing (ip6_output) was resolved by adopting Read-Copy-Update (RCU) mechanisms. This fix prevents potential memory safety issues by ensuring proper synchronization when accessing network device structures. The vulnerability was addressed by removing redundant RCU lock pairs and using dst_dev_rcu() safely. The issue is rated high severity due to its potential impact on confidentiality, integrity, and availability.
AI Analysis
Technical Summary
CVE-2025-40158 is a high-severity vulnerability in the Linux kernel involving the IPv6 output function ip6_output(). The flaw stemmed from improper synchronization that could lead to a use-after-free condition when accessing network device data structures. The fix involved using RCU (Read-Copy-Update) mechanisms in ip6_output() to safely access dst_dev_rcu(), eliminating the risk of use-after-free. Additionally, redundant rcu_read_lock()/rcu_read_unlock() calls were removed from ip6_finish_output2(). This vulnerability has been resolved in the Linux kernel source, though no specific affected versions or patch links are provided in the data.
Potential Impact
The vulnerability could allow an attacker to exploit a use-after-free condition in the IPv6 output path of the Linux kernel, potentially leading to arbitrary code execution or kernel crashes, impacting confidentiality, integrity, and availability of affected systems. The CVSS vector indicates network attack vector with high complexity, no privileges required, no user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix for this vulnerability has been implemented in the Linux kernel by adopting RCU usage in ip6_output() and removing redundant RCU lock pairs. No specific patch links are provided, so users should update to the latest Linux kernel versions where this fix is included. Patch status is not yet confirmed from vendor advisories; users should monitor official Linux kernel security advisories for the exact fixed versions and apply updates accordingly.
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… (CVE-2025-40158)
Description
A use-after-free (UAF) vulnerability in the Linux kernel's IPv6 output processing (ip6_output) was resolved by adopting Read-Copy-Update (RCU) mechanisms. This fix prevents potential memory safety issues by ensuring proper synchronization when accessing network device structures. The vulnerability was addressed by removing redundant RCU lock pairs and using dst_dev_rcu() safely. The issue is rated high severity due to its potential impact on confidentiality, integrity, and availability.
CVSS v3.1
Score 8.1high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-40158 is a high-severity vulnerability in the Linux kernel involving the IPv6 output function ip6_output(). The flaw stemmed from improper synchronization that could lead to a use-after-free condition when accessing network device data structures. The fix involved using RCU (Read-Copy-Update) mechanisms in ip6_output() to safely access dst_dev_rcu(), eliminating the risk of use-after-free. Additionally, redundant rcu_read_lock()/rcu_read_unlock() calls were removed from ip6_finish_output2(). This vulnerability has been resolved in the Linux kernel source, though no specific affected versions or patch links are provided in the data.
Potential Impact
The vulnerability could allow an attacker to exploit a use-after-free condition in the IPv6 output path of the Linux kernel, potentially leading to arbitrary code execution or kernel crashes, impacting confidentiality, integrity, and availability of affected systems. The CVSS vector indicates network attack vector with high complexity, no privileges required, no user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix for this vulnerability has been implemented in the Linux kernel by adopting RCU usage in ip6_output() and removing redundant RCU lock pairs. No specific patch links are provided, so users should update to the latest Linux kernel versions where this fix is included. Patch status is not yet confirmed from vendor advisories; users should monitor official Linux kernel security advisories for the exact fixed versions and apply updates accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-4g43-pmw7-v27w
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-40158"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6b72d69c2644c7f847a5a5
Added to database: 07/30/2026, 15:50:46 UTC
Last enriched: 07/30/2026, 16:53:27 UTC
Last updated: 07/31/2026, 19:24:47 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.