Skip to main content
Vulnerability Database/CVE-2026-98853

CVE-2026-98853: Linux Kernel IP-in-IP GSO DOS Vulnerability

CVE-2026-98853 is a denial of service vulnerability in the Linux kernel affecting IP-in-IP GSO segmentation that can exhaust kernel stack through deep nesting. This article covers technical details, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98853 Overview

CVE-2026-98853 is a Linux kernel vulnerability in the network Generic Segmentation Offload (GSO) subsystem. The flaw allows unbounded recursion when processing nested IP-in-IP encapsulated packets. Each nested IP header causes re-entry into inet_gso_segment() or ipv6_gso_segment(), and the existing encap_level field tracks header bytes rather than callback depth. A sufficiently deep encapsulation chain can exhaust the kernel stack, leading to denial of service. The fix introduces per-handler entry counting in skb_gso_cb and enforces IP_TUNNEL_RECURSION_LIMIT across both IPv4 and IPv6 paths.

Critical Impact

Crafted IP-in-IP packets processed through GSO can exhaust kernel stack memory, resulting in kernel crashes and host-level denial of service.

Affected Products

  • Linux kernel versions containing stackable inet_gso_segment() and IPv6 stackable GSO paths
  • Systems with IPIP GSO/TSO enabled on network interfaces
  • Linux hosts processing GRE or UDP tunneled traffic that triggers nested GSO handlers

Discovery Timeline

  • 2026-10-18 - CVE-2026-98853 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-98853

Vulnerability Analysis

The Linux kernel GSO subsystem segments large packets into MTU-sized chunks before transmission. For IP-in-IP tunnels, each nested IP header triggers another call into the GSO handler for the inner protocol. The inet_gso_segment() function was made stackable to support nested IPv4 encapsulation, and a parallel stackable path was later added for IPv6 via ipv6_gso_segment().

The encap_level counter in the socket buffer control block tracks accumulated header bytes rather than the number of recursive callback entries. This design permits a packet with many thin nested headers to recurse deeply without triggering any depth guard. When IPIP GSO/TSO made this code path reachable through tunnel offload operations, the recursion became exploitable from a network-adjacent position.

Root Cause

The root cause is missing recursion depth enforcement in the IPv4 and IPv6 GSO handlers. The existing encap_level field counts bytes of encapsulation headers, not the number of recursive handler invocations. A crafted chain of nested IP-in-IP headers can therefore drive the kernel into deep recursion that exhausts the fixed-size kernel stack.

Attack Vector

An attacker crafts a packet containing a deeply nested IP-in-IP header chain and delivers it to a Linux host that processes the packet through GSO or TSO offload. Each nested header triggers another call into the segmentation handler, consuming additional kernel stack frames. The vulnerable path is reachable through standard tunnel interfaces including GRE and UDP tunnels, which may change context without resetting the recursion state. See the kernel.org commit details for the full fix.

Detection Methods for CVE-2026-98853

Indicators of Compromise

  • Kernel oops or panic entries in dmesg referencing inet_gso_segment or ipv6_gso_segment in the call trace
  • Unexpected network interface resets or kernel soft-lockup warnings during tunnel traffic processing
  • Packets with abnormally deep IP-in-IP or IPv6-in-IPv6 encapsulation chains observed on tunnel interfaces

Detection Strategies

  • Monitor kernel ring buffers for stack overflow signatures associated with GSO segmentation functions
  • Inspect tunnel interface counters for abnormal error rates on ipip, gre, and sit devices
  • Deploy packet captures on tunnel ingress points to identify nested encapsulation beyond five IP headers

Monitoring Recommendations

  • Alert on kernel crash events from hosts handling tunneled traffic, especially those exposing IPIP, GRE, or SIT interfaces to untrusted networks
  • Track netstat -s output for unusual increases in IP input errors on tunnel-processing hosts
  • Correlate kernel log events with network flow data to identify sources sending malformed encapsulated packets

How to Mitigate CVE-2026-98853

Immediate Actions Required

  • Apply the upstream Linux kernel patches referenced in the kernel.org commits once available in your distribution
  • Inventory hosts with IPIP, GRE, SIT, or IPv6 tunnel interfaces exposed to untrusted networks and prioritize patching
  • Restrict ingress of IP-in-IP and IPv6-in-IPv6 encapsulated traffic from untrusted sources at perimeter firewalls

Patch Information

The fix adds IPv4 and IPv6 GSO handler entry counters in skb_gso_cb, initialized once per top-level GSO operation and preserved across GRE and UDP context changes. Both handlers now enforce IP_TUNNEL_RECURSION_LIMIT: the first five entries pass, and the sixth returns -EINVAL before dispatching another GSO callback. See the kernel.org commit changes for implementation details.

Workarounds

  • Disable GSO and TSO offload on exposed tunnel interfaces using ethtool -K <iface> gso off tso off until a patched kernel is deployed
  • Block or rate-limit protocol 4 (IPIP) and protocol 41 (IPv6-in-IPv4) traffic from untrusted sources at network boundaries
  • Remove unused tunnel kernel modules such as ipip, ip_gre, and sit on hosts that do not require tunneling
bash
# Configuration example
# Disable GSO/TSO on a tunnel interface pending patch deployment
sudo ethtool -K ipip0 gso off tso off gro off

# Block inbound IP-in-IP (protocol 4) from untrusted sources
sudo iptables -A INPUT -p 4 -j DROP
sudo ip6tables -A INPUT -p ipv6-ipv6 -j DROP

# Unload tunnel modules if not required
sudo modprobe -r ipip ip_gre sit

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.