In the Linux kernel, the following vulnerability has been resolved: ipip: fix skb leak in collect_md mode when metadata_dst allocation fails In… (CVE-2026-89565)
A vulnerability in the Linux kernel's ipip tunnel handling caused a socket buffer (skb) memory leak when metadata_dst allocation failed in collect_md mode. This occurred because ipip_tunnel_rcv() returned 0 without freeing the skb, leading to the packet being considered consumed but not actually freed. The issue affects ipip and mplsip tunnels in collect_md mode under rare atomic allocation failure conditions. The vulnerability has been resolved by modifying the code to free the skb properly while still returning 0 to indicate the packet was consumed.
AI Analysis
Technical Summary
The Linux kernel ipip tunnel implementation in collect_md mode had a flaw where ipip_tunnel_rcv() returned 0 without freeing the skb when ip_tun_rx_dst() failed to allocate metadata_dst. Since ipip_rcv() and mplsip_rcv() are registered as xfrm_tunnel handlers, the upper layers interpreted the zero return as the packet being consumed and did not free the skb, causing a memory leak. Other tunnel drivers correctly free the skb in similar failure scenarios. The fix involves jumping to the existing drop label to free the skb while still returning 0, preserving the expected behavior that the packet is consumed. Triggering this requires an ipip or mplsip tunnel in collect_md mode and an atomic allocation failure, which is rare and explains why the issue was unnoticed.
Potential Impact
The vulnerability causes a memory leak in the kernel's networking stack under specific conditions involving ipip or mplsip tunnels in collect_md mode. This leak occurs when metadata_dst allocation fails, potentially leading to resource exhaustion over time if exploited repeatedly. There is no indication of direct code execution or privilege escalation from this issue.
Mitigation Recommendations
A fix for this vulnerability has been implemented in the Linux kernel by ensuring the skb is freed properly when metadata_dst allocation fails in collect_md mode. Users should apply the official kernel update containing this fix. No additional mitigation is required as the patch addresses the root cause.
In the Linux kernel, the following vulnerability has been resolved: ipip: fix skb leak in collect_md mode when metadata_dst allocation fails In… (CVE-2026-89565)
Description
A vulnerability in the Linux kernel's ipip tunnel handling caused a socket buffer (skb) memory leak when metadata_dst allocation failed in collect_md mode. This occurred because ipip_tunnel_rcv() returned 0 without freeing the skb, leading to the packet being considered consumed but not actually freed. The issue affects ipip and mplsip tunnels in collect_md mode under rare atomic allocation failure conditions. The vulnerability has been resolved by modifying the code to free the skb properly while still returning 0 to indicate the packet was consumed.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel ipip tunnel implementation in collect_md mode had a flaw where ipip_tunnel_rcv() returned 0 without freeing the skb when ip_tun_rx_dst() failed to allocate metadata_dst. Since ipip_rcv() and mplsip_rcv() are registered as xfrm_tunnel handlers, the upper layers interpreted the zero return as the packet being consumed and did not free the skb, causing a memory leak. Other tunnel drivers correctly free the skb in similar failure scenarios. The fix involves jumping to the existing drop label to free the skb while still returning 0, preserving the expected behavior that the packet is consumed. Triggering this requires an ipip or mplsip tunnel in collect_md mode and an atomic allocation failure, which is rare and explains why the issue was unnoticed.
Potential Impact
The vulnerability causes a memory leak in the kernel's networking stack under specific conditions involving ipip or mplsip tunnels in collect_md mode. This leak occurs when metadata_dst allocation fails, potentially leading to resource exhaustion over time if exploited repeatedly. There is no indication of direct code execution or privilege escalation from this issue.
Mitigation Recommendations
A fix for this vulnerability has been implemented in the Linux kernel by ensuring the skb is freed properly when metadata_dst allocation fails in collect_md mode. Users should apply the official kernel update containing this fix. No additional mitigation is required as the patch addresses the root cause.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-x2xj-xv7g-fj5c
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-89565"]
Threat ID: 6aa4a00e55bf5e2cf5a86695
Added to database: 09/12/2026, 00:42:54 UTC
Last enriched: 09/12/2026, 01:04:58 UTC
Last updated: 09/12/2026, 01:04:58 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.