CVE-2026-143136
HIGH 8.1CVSS 3.1net: gro: invalidate frag0 after a pull
In the Linux kernel, the following vulnerability has been resolved:
net: gro: invalidate frag0 after a pull
Since commit bd56a29c7a4e ("net: gro: change skb_gro_network_header()"),
skb_gro_header_slow() no longer invalidates NAPI_GRO_CB(skb)->frag0
after pskb_may_pull(). skb_gro_may_pull() keeps comparing against the
frag0_len value set in skb_gro_reset_offset(), assuming that after a
slow pull, all later accesses are beyond frag0_len.
This is not true:
udp4_gro_receive() and udp6_gro_receive() read the network header
with skb_gro_network_header() after udp_gro_udphdr() pulled the
UDP header.vxlan_gro_receive() calls skb_gro_remcsum_cleanup() at a lower
offset after the inner handlers pulled their headers.skb_gro_remcsum_process() can pull beyond the inner Ethernet header
before eth_gro_receive() reads it.napi_frags_skb() calls __skb_pull(skb, ETH_HLEN) after a slow pull,
so frag0 still points to the Ethernet header.
If the pull consumed the first page fragment, __skb_pull_tail() released
it. If the head had to grow, pskb_expand_head() freed the old one.
These reads, and the 2-byte write in skb_gro_remcsum_cleanup(), then
access memory the skb no longer holds a reference on.
esp4_gro_receive(), esp6_gro_receive(), skb_gro_receive_list() and
udp_gro_receive_segment() also pull directly and never invalidated
frag0.
Add skb_gro_frag0_invalidate(), which only clears frag0_len, and call
it before each of these pulls. This is a single store in the slow path,
and frag0 stays non NULL, so skb_gro_network_header() does not need
a NULL test.
frag0 must be invalidated even if the pull fails: __pskb_pull_tail()
can return NULL after pskb_expand_head() freed the old head, for
instance if a frag_list member has to be cloned or pulled.
As frag0 is now invalidated before a pull that can fail,
gro_try_pull_from_frag0() can see an skb whose linear part does not
cover skb_gro_offset() while frag0 still points to the start of the
packet, for instance after skb_gro_remcsum_cleanup() pulled a shorter
length. Copying from frag0 would then corrupt the headers: only use
frag0 while frag0_len is not zero, and use pskb_may_pull() otherwise.
If this pull fails, for instance after a failed pskb_pull() in
esp4_gro_receive(), do not hold the packet: later GRO lookups and
gro_complete() 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.
- Published
- 3 Dec 2026
- Last modified
- 4 Dec 2026
- Assigned by
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- NVD status
- Received
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| CVE List | Linux | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | Linux | Linux | >= 9fd1ff5d2ac7181844735806b0a703c942365291, < cb5c7e185101448d0551890da3a3fde53bf3eb13; >= 9fd1ff5d2ac7181844735806b0a703c942365291, < e5da3b8cec34860146bf7049b9475a70d77457a4; >= 9fd1ff5d2ac7181844735806b0a703c942365291, < 98d949a15ff9d3fffaa6983223178374aab92db6 | cb5c7e185101448d0551890da3a3fde53bf3eb13, e5da3b8cec34860146bf7049b9475a70d77457a4, 98d949a15ff9d3fffaa6983223178374aab92db6 |
| CVE List | Linux | Linux | = 5.6 |
References
- https://git.kernel.org/stable/c/98d949a15ff9d3fffaa6983223178374aab92db6
- https://git.kernel.org/stable/c/cb5c7e185101448d0551890da3a3fde53bf3eb13
- https://git.kernel.org/stable/c/e5da3b8cec34860146bf7049b9475a70d77457a4
History
- 4 Dec 2026 03:56 UTC · CVE List: scored 8.1
- 3 Dec 2026 11:07 UTC · NVD: first stored (published 3 Dec 2026)
- 3 Dec 2026 10:07 UTC · CVE List: first stored (published 3 Dec 2026)