Summary
The Linux kernel fixed missing bounds checks on the read and write indices of the VMBus ring buffer, which live in memory shared with the host. The source assigns a CVSS 3.1 score of 9.3 and critical severity.
What happened
In the Linux kernel's Hyper-V VMBus driver, the ring buffer read and write indices reside in shared memory. In a confidential (CoCo) VM the host is untrusted, so the guest must treat both indices as potentially malicious. The hv_ringbuffer_write() function copied data into the ring at the write index without bounds checking, so the host could cause the guest to write packet data at any offset up to 4 GiB past the start of the ring buffer. The 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 validates both indices before use and relies on the validated snapshot instead of re-reading them; for invalid indices, hv_ringbuffer_write() logs the event and returns -EIO. The source notes that one re-read of the write index is left unchecked in this patch (hv_get_ring_bufferindices() fetches it for a trailer value that is only returned to the host and not used as an offset or length), and that it is addressed later in the same patch series.
Why it matters
The source assigns a CVSS 3.1 score of 9.3 (vector CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H, from the Linux CNA) and critical severity. The scenario described is an untrusted host manipulating the shared-memory indices to cause out-of-bounds writes in the guest. The source does not indicate active exploitation, and the issue is not listed in CISA's KEV catalog.
Affected products and versions
Linux, from commit 3e7ee4902fe6996048f03433dd111426db3cfa92 (introduced; the source also lists version 2.6.32) until the fixes in commits 97b0aa62197b4ffb4d6a9c3905ce581ac9ec4a2c, c2657e0671fae29e66204da3201c0eb51dd42744, 2955188276124e71d540dc7f5e9ce369b664b5a5, 4bc0832dfbddec0440152ee3ec7e7dd31857e231, cdb9126a79b608b4331dfdc03beb05be8d2563be, f204bb7c5d10482067e095af567c391bc88ecb44, 1611ce4dc6cbace75f27db6a559af8d391a06118 and 1d287c17cc5bfd6386fe0770999be410b248d021. Versions earlier than 2.6.32 are listed as unaffected. Listed as unaffected (fixed): 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1.
| Product | Versions | Fixed in |
|---|---|---|
| Linux Linux | >= 3e7ee4902fe6996048f03433dd111426db3cfa92, < 97b0aa62197b4ffb4d6a9c3905ce581ac9ec4a2c | — |
| Linux Linux | >= 3e7ee4902fe6996048f03433dd111426db3cfa92, < c2657e0671fae29e66204da3201c0eb51dd42744 | — |
| Linux Linux | >= 3e7ee4902fe6996048f03433dd111426db3cfa92, < 2955188276124e71d540dc7f5e9ce369b664b5a5 | — |
| Linux Linux | >= 3e7ee4902fe6996048f03433dd111426db3cfa92, < 4bc0832dfbddec0440152ee3ec7e7dd31857e231 | — |
| Linux Linux | >= 3e7ee4902fe6996048f03433dd111426db3cfa92, < cdb9126a79b608b4331dfdc03beb05be8d2563be | — |
| Linux Linux | >= 3e7ee4902fe6996048f03433dd111426db3cfa92, < f204bb7c5d10482067e095af567c391bc88ecb44 | — |
| Linux Linux | >= 3e7ee4902fe6996048f03433dd111426db3cfa92, < 1611ce4dc6cbace75f27db6a559af8d391a06118 | — |
| Linux Linux | >= 3e7ee4902fe6996048f03433dd111426db3cfa92, < 1d287c17cc5bfd6386fe0770999be410b248d021 | — |
| Linux Linux | 2.6.32 | — |
| Linux Linux | < 2.6.32 | — |
| Linux Linux | 5.10.275 | 5.10.275 |
| Linux Linux | 5.15.226 | 5.15.226 |
| Linux Linux | 6.1.193 | 6.1.193 |
| Linux Linux | 6.6.163 | 6.6.163 |
| Linux Linux | 6.12.117 | 6.12.117 |
| Linux Linux | 6.18.61 | 6.18.61 |
| Linux Linux | 7.3.2 | 7.3.2 |
| Linux Linux | 7.4-rc1 | 7.4-rc1 |
Action recommended by the source
According to the source, the fix is available in stable releases 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61 and 7.3.2, and in 7.4-rc1, as well as in the git.kernel.org commits linked in the references. The source does not state any other mitigations.
Fixed in: 5.10.275, 5.15.226, 6.1.193, 6.12.117, 6.18.61, 6.6.163, 7.3.2, 7.4-rc1
Sources and references
- https://git.kernel.org/stable/c/cdb9126a79b608b4331dfdc03beb05be8d2563be — CVE Program
- https://git.kernel.org/stable/c/f204bb7c5d10482067e095af567c391bc88ecb44 — CVE Program
- https://git.kernel.org/stable/c/1611ce4dc6cbace75f27db6a559af8d391a06118 — CVE Program
- https://git.kernel.org/stable/c/1d287c17cc5bfd6386fe0770999be410b248d021 — CVE Program
- https://git.kernel.org/stable/c/97b0aa62197b4ffb4d6a9c3905ce581ac9ec4a2c — CVE Program
- https://git.kernel.org/stable/c/c2657e0671fae29e66204da3201c0eb51dd42744 — CVE Program
- https://git.kernel.org/stable/c/2955188276124e71d540dc7f5e9ce369b664b5a5 — CVE Program
- https://git.kernel.org/stable/c/4bc0832dfbddec0440152ee3ec7e7dd31857e231 — CVE Program
Relevant change history
Published
Advisory published.