CVE-2026-98556: gve: DQO: reject TSO packets with an out of range MSS
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
gve: DQO: reject TSO packets with an out of range MSS
gve_prep_tso() notes that the device requires the MSS to be <= 9728, but does not enforce it, assuming the 9K MTU enforced by the hypervisor and the 64KB limit on TSO sizes are enough.
This does not hold for packets that were not generated locally. A guest behind a tap, or any packet socket user, can provide an arbitrary gso_size in virtio_net_hdr. Layer 2 forwarding does not check the MTU for GSO packets (is_skb_forwardable()), and gso_features_check() only bounds skb->len and gso_segs, never gso_size.
Such a packet reaches gve_tx_fill_tso_ctx_desc(), which puts gso_size into the mss field of the TSO context descriptor. This field is 14 bits wide, so a gso_size of 16384 is silently turned into an MSS of zero.
Drop these packets from gve_prep_tso(), and make sure that gve_features_check_dqo() leaves their GSO bits alone: skb_segment() splits at gso_size regardless of the MTU, so falling back to software segmentation would give the device non TSO packets bigger than the 9728 bytes it supports.
Note that the device can still be given oversized non TSO packets when the stack segments in software for other reasons, for instance after TSO has been disabled with ethtool. This is a generic issue, because the MTU check is skipped for GSO packets in the forwarding path, and is addressed separately.
The Linux kernel CVE team has assigned CVE-2026-98556 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.14 with commit a57e5de476be0b4b7f42beb6a21c19ad9c577aa3 and fixed in 6.18.55 with commit 2dc3ae3942e151fef254b7bbb65c832192ad2069 Issue introduced in 5.14 with commit a57e5de476be0b4b7f42beb6a21c19ad9c577aa3 and fixed in 7.2.9 with commit c517e8755960c8c6335ebf7dae6c95c43e5fb085 Issue introduced in 5.14 with commit a57e5de476be0b4b7f42beb6a21c19ad9c577aa3 and fixed in 7.3-rc5 with commit 296c83b5ccc808c080865eb20fd7a477b0355bb7
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-98556
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_desc_dqo.h 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/2dc3ae3942e151fef254b7bbb65c832192ad2069 https://git.kernel.org/stable/c/c517e8755960c8c6335ebf7dae6c95c43e5fb085 https://git.kernel.org/stable/c/296c83b5ccc808c080865eb20fd7a477b0355bb7