{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99544","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.421Z","datePublished":"2026-11-19T14:45:02.316Z","dateUpdated":"2026-11-22T11:08:52.072Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-22T11:08:52.072Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nDrivers: hv: vmbus: Bounds check the shared ring buffer indices\n\nIn a CoCo VM the host is untrusted. Since the VMBus ring buffer read and\nwrite indices live in shared memory, the guest has to treat both as\npotentially malicious.\n\nhv_ringbuffer_write() copies into the ring at write_index with no bounds\nchecking, so the host can make the guest write packet data at any offset\nup to 4 GiB past the start of the ring buffer. read_index matters too:\nthe available space derived from both indices is the only bound on how\nmuch is copied, and an out-of-range index can make it far larger than\nthe ring.\n\nThe fix is to validate both indices before use and to use the validated\nsnapshot instead of re-accessing. For invalid indices,\nhv_ringbuffer_write() logs and returns -EIO.\n\nOne re-read of write_index is left unchecked in this patch:\nhv_get_ring_bufferindices() fetches it again for the prev_indices\ntrailer. The value is only returned to the host and is not used as an\noffset or length for indexing. Since this is not a security issue, it is\naddressed later in the series.\n\nOpen-coding the bytes available arithmetic keeps the fix free of\nprerequisites; a later patch refactors it into a helper function."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","baseScore":9.3,"baseSeverity":"CRITICAL"},"scenarios":[{"lang":"en","value":"AV:L - The Hyper-V host writes hv_ring_buffer.read_index and write_index in the decrypted ring-header page that __vmbus_establish_gpadl() shares for a non-confidential channel. hv_ringbuffer_write() uses that write_index as the memcpy offset when heartbeat_onchannelcallback() replies through vmbus_sendpacket().\nAC:L - The host offers the heartbeat channel without VMBUS_CHANNEL_CONFIDENTIAL_RING_BUFFER so the ring stays shared, then sets both indices so hv_get_bytes_to_write() wraps past the size check. heartbeat_onchannelcallback() answers the host's own packet via vmbus_sendpacket(), so the copy is under the host's control.\nPR:N - The host writes the shared outbound ring header from outside the guest and presents no guest credential. vmbus_onoffer() accepts the heartbeat device because allowed_in_isolated is set, and the reply runs in kernel context.\nUI:N - The host posts the inbound heartbeat and poisons the outbound indices itself. heartbeat_onchannelcallback() sends the reply from the guest kernel as part of handling that packet.\nS:C - hv_copyto_ringbuffer() memcpy's at the ring data pointer plus the host-chosen write_index, past the double-mapped vmap, so bytes that should stay in the host-shared ring land in other guest kernel memory across the CoCo private boundary.\nC:H - The echoed hbeat_txf_buf, whose bytes the host chose and whose length is recvlen up to one page, is written at a host-chosen u32 offset. That corrupts guest pointers later VMBus replies use to copy private memory into the shared ring.\nI:H - hv_copyto_ringbuffer() memcpy's the outbound packet at write_index with no upper bound against ring_datasize, a host-chosen offset up to 4GiB past the ring, using bytes from the host-supplied heartbeat buffer.\nA:H - The memcpy in hv_copyto_ringbuffer() runs while hv_ringbuffer_write() holds outring_info->ring_lock with IRQs disabled, so a write_index on the vmap guard page or an unmapped hole faults and oopses the guest."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hv/ring_buffer.c"],"versions":[{"version":"3e7ee4902fe6996048f03433dd111426db3cfa92","lessThan":"cdb9126a79b608b4331dfdc03beb05be8d2563be","status":"affected","versionType":"git"},{"version":"3e7ee4902fe6996048f03433dd111426db3cfa92","lessThan":"f204bb7c5d10482067e095af567c391bc88ecb44","status":"affected","versionType":"git"},{"version":"3e7ee4902fe6996048f03433dd111426db3cfa92","lessThan":"1611ce4dc6cbace75f27db6a559af8d391a06118","status":"affected","versionType":"git"},{"version":"3e7ee4902fe6996048f03433dd111426db3cfa92","lessThan":"1d287c17cc5bfd6386fe0770999be410b248d021","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hv/ring_buffer.c"],"versions":[{"version":"2.6.32","status":"affected"},{"version":"0","lessThan":"2.6.32","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.32","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.32","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.32","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.32","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/cdb9126a79b608b4331dfdc03beb05be8d2563be"},{"url":"https://git.kernel.org/stable/c/f204bb7c5d10482067e095af567c391bc88ecb44"},{"url":"https://git.kernel.org/stable/c/1611ce4dc6cbace75f27db6a559af8d391a06118"},{"url":"https://git.kernel.org/stable/c/1d287c17cc5bfd6386fe0770999be410b248d021"}],"title":"Drivers: hv: vmbus: Bounds check the shared ring buffer indices","x_generator":{"engine":"bippy-1.2.0"}}}}