CVE-2026-23386
Received Received - Intake
Out-of-Bounds Access in Linux gve Driver Causes Buffer Mismanagement

Publication date: 2026-03-25

Last updated on: 2026-04-24

Assigner: kernel.org

Description
In the Linux kernel, the following vulnerability has been resolved: gve: fix incorrect buffer cleanup in gve_tx_clean_pending_packets for QPL In DQ-QPL mode, gve_tx_clean_pending_packets() incorrectly uses the RDA buffer cleanup path. It iterates num_bufs times and attempts to unmap entries in the dma array. This leads to two issues: 1. The dma array shares storage with tx_qpl_buf_ids (union). Interpreting buffer IDs as DMA addresses results in attempting to unmap incorrect memory locations. 2. num_bufs in QPL mode (counting 2K chunks) can significantly exceed the size of the dma array, causing out-of-bounds access warnings (trace below is how we noticed this issue). UBSAN: array-index-out-of-bounds in drivers/net/ethernet/drivers/net/ethernet/google/gve/gve_tx_dqo.c:178:5 index 18 is out of range for type 'dma_addr_t[18]' (aka 'unsigned long long[18]') Workqueue: gve gve_service_task [gve] Call Trace: <TASK> dump_stack_lvl+0x33/0xa0 __ubsan_handle_out_of_bounds+0xdc/0x110 gve_tx_stop_ring_dqo+0x182/0x200 [gve] gve_close+0x1be/0x450 [gve] gve_reset+0x99/0x120 [gve] gve_service_task+0x61/0x100 [gve] process_scheduled_works+0x1e9/0x380 Fix this by properly checking for QPL mode and delegating to gve_free_tx_qpl_bufs() to reclaim the buffers.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-25
Last Modified
2026-04-24
Generated
2026-05-07
AI Q&A
2026-03-25
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 12 associated CPEs
Vendor Product Version / Range
linux linux_kernel 6.6
linux linux_kernel From 6.19 (inc) to 6.19.7 (exc)
linux linux_kernel 7.0
linux linux_kernel 7.0
linux linux_kernel 7.0
linux linux_kernel 7.0
linux linux_kernel 7.0
linux linux_kernel 7.0
linux linux_kernel 7.0
linux linux_kernel From 6.13 (inc) to 6.18.17 (exc)
linux linux_kernel From 6.7 (inc) to 6.12.78 (exc)
linux linux_kernel From 6.6.1 (inc) to 6.6.130 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Powered Q&A
What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, update the Linux kernel to a version where the gve driver has been patched to fix the incorrect buffer cleanup in gve_tx_clean_pending_packets for QPL mode.

The fix involves properly checking for QPL mode and delegating buffer cleanup to gve_free_tx_qpl_bufs(), preventing out-of-bounds memory access.

Until the patch is applied, consider disabling or unloading the gve driver if it is not essential, to avoid triggering the faulty buffer cleanup code.


Can you explain this vulnerability to me?

This vulnerability exists in the Linux kernel's gve driver, specifically in the function gve_tx_clean_pending_packets when operating in DQ-QPL mode.

The function incorrectly uses the RDA buffer cleanup path, iterating num_bufs times and attempting to unmap entries in the dma array. However, the dma array shares storage with tx_qpl_buf_ids, so interpreting buffer IDs as DMA addresses causes attempts to unmap incorrect memory locations.

Additionally, num_bufs in QPL mode counts 2K chunks and can significantly exceed the size of the dma array, leading to out-of-bounds access warnings and potential memory safety issues.

The issue was detected by UBSAN (Undefined Behavior Sanitizer) reporting an array-index-out-of-bounds error.

The fix involved properly checking for QPL mode and delegating buffer cleanup to the correct function gve_free_tx_qpl_bufs() to safely reclaim buffers.


How can this vulnerability impact me? :

This vulnerability can lead to incorrect memory unmapping and out-of-bounds memory access within the Linux kernel's gve driver.

Such memory safety issues can cause kernel instability, crashes, or undefined behavior, potentially affecting system reliability and availability.

While no direct exploit or privilege escalation is described, improper memory handling in kernel space can be a security risk and may be leveraged in broader attack scenarios.


How can this vulnerability be detected on my network or system? Can you suggest some commands?

This vulnerability can be detected by monitoring for out-of-bounds access warnings related to the gve driver in the Linux kernel logs. Specifically, look for UBSAN (Undefined Behavior Sanitizer) messages indicating array-index-out-of-bounds errors in gve_tx_dqo.c around line 178.

You can check the kernel logs for such errors using commands like:

  • dmesg | grep -i 'gve_tx_dqo.c'
  • journalctl -k | grep -i 'gve_tx_dqo.c'
  • grep -i 'array-index-out-of-bounds' /var/log/kern.log

These commands help identify if the kernel is reporting the specific out-of-bounds access related to this vulnerability.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart