CVE-2026-98853: net: gso: limit recursive IP-in-IP segmentation
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: gso: limit recursive IP-in-IP segmentation
IP-in-IP GSO can re-enter inet_gso_segment() or ipv6_gso_segment() for each nested IP header. encap_level tracks header bytes, not callback depth, so a deep chain can exhaust the kernel stack. Making inet_gso_segment() stackable introduced unbounded IPv4 nesting; IPIP GSO/TSO later made the path reachable. The IPv6 stackable path was introduced separately and uses the same guard.
Count IPv4 and IPv6 GSO handler entries in skb_gso_cb, initialized once per top-level GSO operation and preserved across GRE/UDP context changes. Use the existing IP_TUNNEL_RECURSION_LIMIT for both handlers. The first five entries pass, and the sixth returns -EINVAL before dispatching another GSO callback.
The Linux kernel CVE team has assigned CVE-2026-98853 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.13 with commit 3347c960295583eee3fd58e5c539fb1972fbc005 and fixed in 7.2.10 with commit c949646c900e879afce47df1b607fa320eb63bf2 Issue introduced in 3.13 with commit 3347c960295583eee3fd58e5c539fb1972fbc005 and fixed in 7.3-rc6 with commit 006c8b834aed8b02bd8fb9fb05e9e7ead37d1763
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98853
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
include/net/gso.h net/core/gso.c net/ipv4/af_inet.c net/ipv6/ip6_offload.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/c949646c900e879afce47df1b607fa320eb63bf2 https://git.kernel.org/stable/c/006c8b834aed8b02bd8fb9fb05e9e7ead37d1763