AZL-118172: CVE-2026-143137 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
net: gro: do not undo remote checksum offload on merged packets
skbgroflushfinalremcsum() calls skbgroremcsumcleanup() to undo the checksum adjustment done by skbgroremcsumprocess() when the packet was not consumed by GRO.
When the inner handler merged the packet (NAPIGROCB(skb)->sameflow is set), grc->offset can no longer be trusted:
- skbgroreceive() either gives the frags or the head of the skb to the held packet, or uses skbpull(skb, offset) before adding the skb to the fraglist of the held packet.
- skbgroreceivelist() uses skbpull(skb, skbgrooffset(skb)).
grc->offset is relative to the original skb->data, so the 2-byte read-modify-write done by skbgroremcsumcleanup() can land in the payload of a packet which now belongs to the GRO packet. pskbmaypull() can also be called on this fraglist member.
With fraglist GRO, this can also be a use-after-free: pskbmaypull(skb, skbgrooffset(skb)) in skbgroreceivelist() or udpgroreceivesegment() releases the first page fragment if it only contains headers. NAPIGROCB(skb)->frag0 and frag0len are not updated, so skbgroremcsumcleanup() takes the fast path and writes through frag0 into a page the skb no longer holds a reference on. The non merged case, where frag0 is used after this pull, is handled in the following patch.
For skbs merged by skbgroreceive(), the cleanup can be skipped: the skb is freed, or its headers are rebuilt from the head skb in skbsegment().
Fraglist members keep their own inner headers, as skbsegmentlist() only copies the link-layer and tunnel headers from the head skb. Their checksum can not be right in all cases: a packet forwarded with its tunnel header needs the original value, while a VXLAN packet decapsulated locally needs the adjusted one, as vxlanremcsum() only adjusts the head skb. Make skbgroreceivelist() refuse packets with skb->remcsumoffload set, so that fraglist members never carry an adjusted checksum.
This affects VXLAN (VXLANFREMCSUMNOPARTIAL) and GUE (FOUFREMCSUMNOPARTIAL).
This was found while fixing a report from Taesoo Kim and Cen Zhang, who used LLM assisted code analysis and provided reproducers.
Affected Software
Event History
Frequently Asked Questions
What traffic-processing conditions are involved in reaching the vulnerable path?
The issue occurs when GRO processes remote checksum offload and an inner handler merges a packet, indicated by same_flow being set. The fraglist GRO path is specifically implicated when packet data has been pulled or reassigned during GRO processing.
What can happen on the fraglist GRO path?
A checksum cleanup operation can modify payload belonging to the merged GRO packet because its saved offset is no longer reliable. In fraglist GRO, the condition can also result in a use-after-free when header-only page fragments are released without updating the associated frag0 state.