CVE-2026-100017: net: gro: don't chain linear parts larger than gso_size into frag_list
In the Linux kernel, the following vulnerability has been resolved:
net: gro: don't chain linear parts larger than gsosize into fraglist
skbgroreceive() chains an skb into the fraglist of the held packet when its payload cannot be attached as page frags: when its head is not a page fragment and still holds payload, or when its head and frags would overflow the frags[] array of the last packet. Since commit 5eddb24901ee ("gro: add support of (hw)gro packets to gro stack"), that skb may itself be a GSO packet whose linear part holds several gsosize segments. skbsegment() cannot split the linear part of a fraglist member across segments, so segmenting the aggregate in software, e.g. when forwarding it to a device without NETIFFFRAGLIST, hits
BUGON(skbheadlen(listskb) > len);
Fully linear GSO packets come from generic XDP. When the program does not support frags, netifskbcheckforxdp() linearizes any nonlinear skb with pskbexpandhead() and skblinearize() and keeps its GSO metadata. GRO on the device runs before generic XDP, so each aggregate passed by the program carries all of its payload in a kmalloc'ed head. A tunnel that decapsulates these packets and runs GRO again through grocells then builds the bad fraglist. This was first seen on a router that forwards TCP received over VXLAN, with a non-frags XDP program attached in SKB mode to the underlying bond because one slave lacks native XDP:
kernel BUG at net/core/skbuff.c:4917! RIP: 0010:skbsegment+0xbb6/0xf40 Call Trace: tcpgsosegment ipv6gsosegment skbmacgsosegment skbgsosegment validatexmitskb devqueuexmit ip6output ip6sublistrcvfinish ipv6listrcv netifreceiveskblistinternal grocomplete devgroreceive groreceiveskb grocellpoll napipoll netrxaction
It reproduces with three network namespaces: TCP sent over VXLAN on an IPv6 veth link to a router namespace that has an XDPPASS program without frags support attached to the underlay veth in generic mode and GRO enabled on its VXLAN device, and forwards to a veth with tx-scatter-gather-fraglist disabled.
A program with frags support in generic mode gives similar packets. skbppcowdata() rebuilds the skb with up to about a page of linear data in a pagepool headfrag and keeps the GSO metadata, so once frags[] is full the next such packet is chained through fraglist with more than gsosize bytes in its head as well.
Refuse the merge when the linear part to be chained exceeds the held packet's gsosize. tcpgroreceive() then flushes the held packet and the skb starts a new GRO packet as its head, whose linear length skbsegment() handles.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In Linux kernel GRO, refuse to chain a packet into the held packet’s frag_list when the linear part to be chained exceeds the held packet’s gso_size.