CVE-2026-139100: gro: do not GRO GSO packets with inconsistent payload
In the Linux kernel, the following vulnerability has been resolved:
gro: do not GRO GSO packets with inconsistent payload
tcpgroreceive() excludes empty non-GSO packets with the unsigned len - 1 check, but its GSO branch only checks that gsosize matches the held packet's MSS. A trusted TCP GSO skb can reach GRO again with no payload after TC pedit increases its TCP data offset.
If the skb is fully linear, skbgroreceive() then enters its fragment transfer path with nrfrags == 0. The do-while loop copies skbfragt entries backwards beyond both fragment arrays. An unprivileged process using its own user and network namespaces can trigger a KASAN slab-out-of-bounds write and panic through veth, pedit and GRE.
More generally, the payload of such a packet can be shrunk to any value, making it inconsistent with its gsosegs, and a GSO packet with gsosegs == 0 contributes no segment to the GRO packet.
Do not aggregate GSO packets with gsosegs == 0, and require the payload of GSO packets to be consistent with gsosegs and gsosize, the last segment being allowed to be short. This rejects the empty skb before either TCP merge helper, and covers both IPv4 and IPv6.
[edumazet: check payload against gsosegs, refuse gsosegs == 0]