{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-99544",
  "modified": "2026-11-24T05:30:02Z",
  "upstream": [
    "CVE-2026-99544"
  ],
  "published": "2026-11-19T15:08:37Z",
  "summary": "Drivers: hv: vmbus: Bounds check the shared ring buffer indices",
  "details": "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.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.193",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-99544"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/97b0aa62197b4ffb4d6a9c3905ce581ac9ec4a2c"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/c2657e0671fae29e66204da3201c0eb51dd42744"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/2955188276124e71d540dc7f5e9ce369b664b5a5"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/4bc0832dfbddec0440152ee3ec7e7dd31857e231"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/cdb9126a79b608b4331dfdc03beb05be8d2563be"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/f204bb7c5d10482067e095af567c391bc88ecb44"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/1611ce4dc6cbace75f27db6a559af8d391a06118"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/1d287c17cc5bfd6386fe0770999be410b248d021"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-11-23T08:12:11Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 9.3,
      "cvss_v3_severity": "Critical",
      "scenario": "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."
    }
  }
}
