CVE-2026-143136: net: gro: invalidate frag0 after a pull

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

net: gro: invalidate frag0 after a pull

Since commit bd56a29c7a4e ("net: gro: change skbgronetworkheader()"), skbgroheaderslow() no longer invalidates NAPIGROCB(skb)->frag0 after pskbmaypull(). skbgromaypull() keeps comparing against the frag0len value set in skbgroresetoffset(), assuming that after a slow pull, all later accesses are beyond frag0len.

This is not true:

- udp4groreceive() and udp6groreceive() read the network header with skbgronetworkheader() after udpgroudphdr() pulled the UDP header.

- vxlangroreceive() calls skbgroremcsumcleanup() at a lower offset after the inner handlers pulled their headers.

- skbgroremcsumprocess() can pull beyond the inner Ethernet header before ethgroreceive() reads it.

- napifragsskb() calls skbpull(skb, ETHHLEN) after a slow pull, so frag0 still points to the Ethernet header.

If the pull consumed the first page fragment, skbpulltail() released it. If the head had to grow, pskbexpandhead() freed the old one. These reads, and the 2-byte write in skbgroremcsumcleanup(), then access memory the skb no longer holds a reference on.

esp4groreceive(), esp6groreceive(), skbgroreceivelist() and udpgroreceivesegment() also pull directly and never invalidated frag0.

Add skbgrofrag0invalidate(), which only clears frag0len, and call it before each of these pulls. This is a single store in the slow path, and frag0 stays non NULL, so skbgronetworkheader() does not need a NULL test.

frag0 must be invalidated even if the pull fails: pskbpulltail() can return NULL after pskbexpandhead() freed the old head, for instance if a fraglist member has to be cloned or pulled.

As frag0 is now invalidated before a pull that can fail, grotrypullfromfrag0() can see an skb whose linear part does not cover skbgrooffset() while frag0 still points to the start of the packet, for instance after skbgroremcsumcleanup() pulled a shorter length. Copying from frag0 would then corrupt the headers: only use frag0 while frag0len is not zero, and use pskbmaypull() otherwise. If this pull fails, for instance after a failed pskbpull() in esp4groreceive(), do not hold the packet: later GRO lookups and grocomplete() handlers expect its headers in the linear part.

This was found by Taesoo Kim and Cen Zhang, using LLM assisted code analysis, and confirmed with reproducers.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Add skb_gro_frag0_invalidate(), which clears frag0_len, and call it before each pull that can fail so frag0 is invalidated even when the pull fails.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:19 AM
Data Sourced
via MITRE·09:19 AM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203