Skip to contentSkip to conversation

CVE-2026-23262: gve: Fix stats report corruption on queue count change

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 18

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

gve: Fix stats report corruption on queue count change

The driver and the NIC share a region in memory for stats reporting. The NIC calculates its offset into this region based on the total size of the stats region and the size of the NIC's stats.

When the number of queues is changed, the driver's stats region is resized. If the queue count is increased, the NIC can write past the end of the allocated stats region, causing memory corruption. If the queue count is decreased, there is a gap between the driver and NIC stats, leading to incorrect stats reporting.

This change fixes the issue by allocating stats region with maximum size, and the offset calculation for NIC stats is changed to match with the calculation of the NIC.

The Linux kernel CVE team has assigned CVE-2026-23262 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.10 with commit 24aeb56f2d38edf1b324bdb4f8bc6faf9f0f540c and fixed in 5.10.250 with commit f432f7613c220db32c2c6942420daf7b3f2e7d7e
	Issue introduced in 5.10 with commit 24aeb56f2d38edf1b324bdb4f8bc6faf9f0f540c and fixed in 5.15.200 with commit 9d93332397405b62a3300b22d04ac65d990b91ff
	Issue introduced in 5.10 with commit 24aeb56f2d38edf1b324bdb4f8bc6faf9f0f540c and fixed in 6.1.163 with commit 837c662f47dac43efa1aef2dd433c6b4b4c073af
	Issue introduced in 5.10 with commit 24aeb56f2d38edf1b324bdb4f8bc6faf9f0f540c and fixed in 6.6.124 with commit df54838ab61826ecc1a562ffa5e280c3ab7289a7
	Issue introduced in 5.10 with commit 24aeb56f2d38edf1b324bdb4f8bc6faf9f0f540c and fixed in 6.12.70 with commit 9fa0a755db3e1945fe00f73fe27d85ef6c8818b7
	Issue introduced in 5.10 with commit 24aeb56f2d38edf1b324bdb4f8bc6faf9f0f540c and fixed in 6.18.10 with commit 11f8311f69e4c361717371b4901ff92daeb76e9c
	Issue introduced in 5.10 with commit 24aeb56f2d38edf1b324bdb4f8bc6faf9f0f540c and fixed in 6.19 with commit 7b9ebcce0296e104a0d82a6b09d68564806158ff

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-23262

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_ethtool.c drivers/net/ethernet/google/gve/gve_main.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/f432f7613c220db32c2c6942420daf7b3f2e7d7e
	https://git.kernel.org/stable/c/9d93332397405b62a3300b22d04ac65d990b91ff
	https://git.kernel.org/stable/c/837c662f47dac43efa1aef2dd433c6b4b4c073af
	https://git.kernel.org/stable/c/df54838ab61826ecc1a562ffa5e280c3ab7289a7
	https://git.kernel.org/stable/c/9fa0a755db3e1945fe00f73fe27d85ef6c8818b7
	https://git.kernel.org/stable/c/11f8311f69e4c361717371b4901ff92daeb76e9c
	https://git.kernel.org/stable/c/7b9ebcce0296e104a0d82a6b09d68564806158ff