Drivers: hv: vmbus: Bounds check the shared ring buffer indices

State
Published
Severity
9.3 Critical
Published
Nov 19, 2026
Updated
Nov 23, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

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

Drivers: hv: vmbus: Bounds check the shared ring buffer indices

In a CoCo VM the host is untrusted. Since the VMBus ring buffer read and write indices live in shared memory, the guest has to treat both as potentially malicious.

hv_ringbuffer_write() copies into the ring at write_index with no bounds checking, so the host can make the guest write packet data at any offset up to 4 GiB past the start of the ring buffer. read_index matters too: the available space derived from both indices is the only bound on how much is copied, and an out-of-range index can make it far larger than the ring.

The fix is to validate both indices before use and to use the validated snapshot instead of re-accessing. For invalid indices, hv_ringbuffer_write() logs and returns -EIO.

One re-read of write_index is left unchecked in this patch: hv_get_ring_bufferindices() fetches it again for the prev_indices trailer. The value is only returned to the host and is not used as an offset or length for indexing. Since this is not a security issue, it is addressed later in the series.

Open-coding the bytes available arithmetic keeps the fix free of prerequisites; a later patch refactors it into a helper function.

ProductVersions
Linux Linux3e7ee4902fe6996048f03433dd111426db3cfa92 to before 97b0aa62197b4ffb4d6a9c3905ce581ac9ec4a2c Affected3e7ee4902fe6996048f03433dd111426db3cfa92 to before c2657e0671fae29e66204da3201c0eb51dd42744 Affected3e7ee4902fe6996048f03433dd111426db3cfa92 to before 2955188276124e71d540dc7f5e9ce369b664b5a5 Affected3e7ee4902fe6996048f03433dd111426db3cfa92 to before 4bc0832dfbddec0440152ee3ec7e7dd31857e231 Affected3e7ee4902fe6996048f03433dd111426db3cfa92 to before cdb9126a79b608b4331dfdc03beb05be8d2563be Affected3e7ee4902fe6996048f03433dd111426db3cfa92 to before f204bb7c5d10482067e095af567c391bc88ecb44 Affected3e7ee4902fe6996048f03433dd111426db3cfa92 to before 1611ce4dc6cbace75f27db6a559af8d391a06118 Affected3e7ee4902fe6996048f03433dd111426db3cfa92 to before 1d287c17cc5bfd6386fe0770999be410b248d021 Affected
Linux Linux2.6.32 Affectedbefore 2.6.32 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.61 through 6.18.* Not Affected7.3.2 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.