An out-of-bounds write in the illumos bhyve virtio implementation allows a guest to corrupt heap memory of the bhyve process. The modern virtio PCI transport lets the driver set the size of a virtqueue. vi_pci_common_cfg_write() in usr/src/cmd/bhyve/common/virtio.c accepts any power of two, and does not compare it with the maximum queue size set by the device model. Device models size their per-request state by that maximum. The virtio-blk device model, for example, keeps a fixed array of 128 request structures. It indexes the array with the head descriptor index of each request, which is limited only by the queue size. A privileged user within a guest VM can raise the queue size to as much as 32768 and submit a request with a large descriptor index. Request state, including I/O vector and status pointers, is then written beyond the end of the array. This corrupts the bhyve process heap and may lead to code execution in the bhyve process. That process typically runs as root within the zone that hosts the VM. The flaw has existed since November 2025 (illumos-gate commit c3b97060), and affects any illumos distribution prior to illumos-gate commit 4f298dea.
Project Subscriptions
No data.
Advisories
No advisories yet.
Fixes
Solution
Update to an illumos distribution release that includes the fix for illumos issue 18644.
Workaround
No workaround given by the vendor.
References
History
Tue, 01 Dec 2026 20:45:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | An out-of-bounds write in the illumos bhyve virtio implementation allows a guest to corrupt heap memory of the bhyve process. The modern virtio PCI transport lets the driver set the size of a virtqueue. vi_pci_common_cfg_write() in usr/src/cmd/bhyve/common/virtio.c accepts any power of two, and does not compare it with the maximum queue size set by the device model. Device models size their per-request state by that maximum. The virtio-blk device model, for example, keeps a fixed array of 128 request structures. It indexes the array with the head descriptor index of each request, which is limited only by the queue size. A privileged user within a guest VM can raise the queue size to as much as 32768 and submit a request with a large descriptor index. Request state, including I/O vector and status pointers, is then written beyond the end of the array. This corrupts the bhyve process heap and may lead to code execution in the bhyve process. That process typically runs as root within the zone that hosts the VM. The flaw has existed since November 2025 (illumos-gate commit c3b97060), and affects any illumos distribution prior to illumos-gate commit 4f298dea. | |
| Title | Out-of-bounds write in illumos bhyve modern virtio queue size handling allows guest to corrupt bhyve process memory | |
| Weaknesses | CWE-129 CWE-787 |
|
| References |
| |
| Metrics |
cvssV4_0
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: illumos
Published:
Updated: 2026-12-01T20:32:15.857Z
Reserved: 2026-11-24T16:00:40.867Z
Link: CVE-2026-136235
No data.
Status : Received
Published: 2026-12-01T21:16:58.560
Modified: 2026-12-01T21:16:58.560
Link: CVE-2026-136235
No data.
OpenCVE Enrichment
No data.