HIGH
gve StatsRegion Overflow
CVE-2026-23262
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI7.0HIGH
01Description
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.
02KernelScan AI Analysis
Risk summary
Systems using Google Virtual Ethernet (gve) NICs are vulnerable to kernel memory corruption when administrators change network queue counts. The vulnerability can be triggered with CAP_NET_ADMIN privileges (obtainable via user namespace on default kernels) and can lead to system crashes or potential privilege escalation through heap corruption.
Vulnerability analysis
The gve driver shares a memory region with the NIC for statistics reporting. When queue counts are modified via ethtool, the driver resizes this region but the NIC continues using the old offset calculation. This mismatch allows the NIC to write beyond allocated buffer boundaries, corrupting kernel heap memory. The fix allocates the stats region with maximum size and synchronizes offset calculations between driver and NIC to prevent buffer overruns regardless of queue configuration changes.
03Fix Versions
| Branch | Fixed in | Patch commit |
|---|---|---|
| 5.10 | 5.10.250 | f432f7613c22 |
| 5.15 | 5.15.200 | 9d9333239740 |
| 6.1 | 6.1.163 | 837c662f47da |
| 6.12 | 6.12.70 | 9fa0a755db3e |
| 6.18 | 6.18.10 | 11f8311f69e4 |
| 6.6 | 6.6.124 | df54838ab618 |
| mainline | 6.19 | 7b9ebcce0296 |