HIGH Introduced in 7.1
gve UdpGso OOB
CVE-2026-98557
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: gve: DQO: fix header length used by gve_can_send_tso() for UDP GSO gve_can_send_tso() computes how many buffers each segment of a GSO packet would span, and for this it needs the length of the headers that the device replicates in front of every segment. It unconditionally uses skb_tcp_all_headers(), which reads the doff field of the TCP header. SKB_GSO_UDP_L4 packets have no TCP header: tcp_hdrlen() then reads one byte of the UDP payload, and header_len can be anything in [0, 60] instead of the transport offset plus the eight bytes of the UDP header that gve_prep_tso() programs into the TSO context descriptor. A wrong header length shifts all the segment boundaries computed in the loop, so the number of buffers per segment can be over or under estimated. In the first case, GSO is needlessly disabled for this packet by gve_features_check_dqo() and the stack has to segment it. In the second case, the driver hands the device a packet whose segments span more than GVE_TX_MAX_DATA_DESCS buffers. Use the UDP header length for SKB_GSO_UDP_L4 packets, matching what gve_prep_tso() does.
02KernelScan AI Analysis
Risk summary
Google Cloud VMs using the gve paravirtualized network driver are at risk. A local user or container can trigger an out-of-bounds read and incorrect buffer calculation by sending UDP packets with GSO enabled, potentially causing the virtual device to process malformed descriptors and leading to host-side memory corruption or guest network denial of service.
Vulnerability analysis
The gve driver's gve_can_send_tso() function incorrectly uses the TCP header length helper for all GSO packets, including UDP GSO. For UDP packets this reads one byte past the UDP header into the payload, producing a bogus header length between 0 and 60 bytes. The resulting miscalculation of per-segment buffer counts can cause the driver to hand the virtual device a packet whose segments exceed the hardware descriptor limit, potentially triggering out-of-bounds writes in the host device emulation. The fix selects the proper header length based on the GSO type, matching the value programmed by gve_prep_tso(). Any process with access to a gve interface — including unprivileged users and container workloads — can trigger this by transmitting UDP GSO traffic.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 7.2 | 7.1 | 7.2.9 | feab3880a72b |
| mainline | 7.1 | 7.3 | dc9e8964a21f |