CVE-2026-98557: gve: DQO: fix header length used by gve_can_send_tso() for UDP GSO
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-98557 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.1 with commit 014c607f86abc903d7bf46e13373d89392e371fe and fixed in 7.2.9 with commit dc9e8964a21f20620dbfca4ef3e11eefa7be6451 Issue introduced in 7.1 with commit 014c607f86abc903d7bf46e13373d89392e371fe and fixed in 7.3-rc5 with commit 83769c23fb1879edc916a526ba424285033baf2d
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98557
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/ethernet/google/gve/gve_tx_dqo.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/feab3880a72b43913d332c06b75bb80526fa47ba https://git.kernel.org/stable/c/dc9e8964a21f20620dbfca4ef3e11eefa7be6451 https://git.kernel.org/stable/c/83769c23fb1879edc916a526ba424285033baf2d