In the Linux kernel, the following vulnerability has been resolved: ip6_tunnel: use skb_cow_head() in ip6_tnl_xmit() ip6_tnl_xmit() may need to… (CVE-2026-89563)
A vulnerability in the Linux kernel's IPv6 tunnel transmission function (ip6_tnl_xmit) has been resolved. The issue involved improper handling of socket buffer (skb) headroom expansion, which could lead to double freeing of skb memory under certain error conditions. The fix replaces the use of skb_realloc_headroom() with skb_cow_head(), ensuring safer memory management and preventing callers from holding stale skb pointers after errors.
AI Analysis
Technical Summary
The Linux kernel's ip6_tnl_xmit() function previously used skb_realloc_headroom() to expand headroom for outer IPv6 and optional encapsulation headers. This approach replaced the original skb with a new one stored only in a local variable, which is unsafe if subsequent error exits occur because callers still hold the original skb pointer. This could cause double freeing of skb memory when callers free the skb on error. The vulnerability is addressed by switching to skb_cow_head(), which provides the needed headroom and writability without replacing the caller-owned skb, preventing stale pointer issues and double frees. Ethernet users ip6gretap and ip6erspan already used skb_cow_head(), making the IPv6 tunnel path consistent with ip_tunnel_xmit().
Potential Impact
The vulnerability could lead to kernel memory corruption due to double freeing of socket buffers in the IPv6 tunnel transmission path. This can cause system instability or crashes. There is no indication of active exploitation in the wild. The fix prevents these unsafe memory operations, improving kernel stability and security.
Mitigation Recommendations
A fix has been implemented in the Linux kernel source code to replace skb_realloc_headroom() with skb_cow_head() in ip6_tnl_xmit(). Users should update to a kernel version that includes this patch once available. Since this is a kernel-level fix, applying the official kernel update is the recommended remediation.
In the Linux kernel, the following vulnerability has been resolved: ip6_tunnel: use skb_cow_head() in ip6_tnl_xmit() ip6_tnl_xmit() may need to… (CVE-2026-89563)
Description
A vulnerability in the Linux kernel's IPv6 tunnel transmission function (ip6_tnl_xmit) has been resolved. The issue involved improper handling of socket buffer (skb) headroom expansion, which could lead to double freeing of skb memory under certain error conditions. The fix replaces the use of skb_realloc_headroom() with skb_cow_head(), ensuring safer memory management and preventing callers from holding stale skb pointers after errors.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's ip6_tnl_xmit() function previously used skb_realloc_headroom() to expand headroom for outer IPv6 and optional encapsulation headers. This approach replaced the original skb with a new one stored only in a local variable, which is unsafe if subsequent error exits occur because callers still hold the original skb pointer. This could cause double freeing of skb memory when callers free the skb on error. The vulnerability is addressed by switching to skb_cow_head(), which provides the needed headroom and writability without replacing the caller-owned skb, preventing stale pointer issues and double frees. Ethernet users ip6gretap and ip6erspan already used skb_cow_head(), making the IPv6 tunnel path consistent with ip_tunnel_xmit().
Potential Impact
The vulnerability could lead to kernel memory corruption due to double freeing of socket buffers in the IPv6 tunnel transmission path. This can cause system instability or crashes. There is no indication of active exploitation in the wild. The fix prevents these unsafe memory operations, improving kernel stability and security.
Mitigation Recommendations
A fix has been implemented in the Linux kernel source code to replace skb_realloc_headroom() with skb_cow_head() in ip6_tnl_xmit(). Users should update to a kernel version that includes this patch once available. Since this is a kernel-level fix, applying the official kernel update is the recommended remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-7pg6-vmqr-62jx
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-89563"]
Threat ID: 6aa4a01155bf5e2cf5a866ac
Added to database: 09/12/2026, 00:42:57 UTC
Last enriched: 09/12/2026, 01:06:47 UTC
Last updated: 09/12/2026, 01:06: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.