gro: do not GRO GSO packets with inconsistent payload
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
gro: do not GRO GSO packets with inconsistent payload
tcp_gro_receive() excludes empty non-GSO packets with the unsigned len - 1 check, but its GSO branch only checks that gso_size 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, skb_gro_receive() then enters its fragment transfer path with nr_frags == 0. The do-while loop copies skb_frag_t 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 gso_segs, and a GSO packet with gso_segs == 0 contributes no segment to the GRO packet.
Do not aggregate GSO packets with gso_segs == 0, and require the payload of GSO packets to be consistent with gso_segs and gso_size, 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 gso_segs, refuse gso_segs == 0]
| Product | Versions |
|---|---|
| Linux Linux | 5eddb24901ee49eee23c0bfce6af2e83fd5679bd to before 0e8591ce1c86da0dadbadfd305de9dc5b7743017 Affected5eddb24901ee49eee23c0bfce6af2e83fd5679bd to before a34902e04a381881e1e096dce3071a7801b52760 Affected5eddb24901ee49eee23c0bfce6af2e83fd5679bd to before 8cbc7f5da4e03cf527d61e0c96c866ebd0032c7a Affected5eddb24901ee49eee23c0bfce6af2e83fd5679bd to before 364e049a090fbea1cfdd4ac04ffe2d56e48ce01c Affected5eddb24901ee49eee23c0bfce6af2e83fd5679bd to before b37485e08dcce6db7e78f5c90d99c512170e983f Affected5eddb24901ee49eee23c0bfce6af2e83fd5679bd to before de788d8a7032475f900c16e9cc0c1417f4f719eb Affected |
| Linux Linux | 6.1 Affectedbefore 6.1 Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/0e8591ce1c86da0dadbadfd305de9dc5b7743017
- https://git.kernel.org/stable/c/a34902e04a381881e1e096dce3071a7801b52760
- https://git.kernel.org/stable/c/8cbc7f5da4e03cf527d61e0c96c866ebd0032c7a
- https://git.kernel.org/stable/c/364e049a090fbea1cfdd4ac04ffe2d56e48ce01c
- https://git.kernel.org/stable/c/b37485e08dcce6db7e78f5c90d99c512170e983f
- https://git.kernel.org/stable/c/de788d8a7032475f900c16e9cc0c1417f4f719eb
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.