Drivers: hv: vmbus: Bounds check the shared ring buffer indices
NIST has received this entry but not started reviewing it.
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.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from 3e7ee4902fe6996048f03433dd111426db3cfa92, before 97b0aa62197b4ffb4d6a9c3905ce581ac9ec4a2c; from 3e7ee4902fe6996048f03433dd111426db3cfa92, before c2657e0671fae29e66204da3201c0eb51dd42744; from 3e7ee4902fe6996048f03433dd111426db3cfa92, before 2955188276124e71d540dc7f5e9ce369b664b5a5; from 3e7ee4902fe6996048f03433dd111426db3cfa92, before 4bc0832dfbddec0440152ee3ec7e7dd31857e231; from 3e7ee4902fe6996048f03433dd111426db3cfa92, before cdb9126a79b608b4331dfdc03beb05be8d2563be; from 3e7ee4902fe6996048f03433dd111426db3cfa92, before f204bb7c5d10482067e095af567c391bc88ecb44; and 2 more | 97b0aa62197b4ffb4d6a9c3905ce581ac9ec4a2c; c2657e0671fae29e66204da3201c0eb51dd42744; 2955188276124e71d540dc7f5e9ce369b664b5a5; 4bc0832dfbddec0440152ee3ec7e7dd31857e231 |
| Linux Linux | Software | 2.6.32 | not recorded |
The 9.3 severity score (critical) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | On the machine | The attacker needs access to the computer itself, for example a login or a file they can get you to open. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | None | The attacker does not need an account or password. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Changed | The attacker can get beyond the vulnerable program and affect other parts of the system. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 2.5 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 6.0 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 8 sources for this flaw, none tagged as a vendor patch.