CVE-2026-136236: Integer underflow in illumos bhyve virtio-blk request handling allows guest to read and write bhyve process memory
An integer underflow in the illumos bhyve virtio-blk device model allows a guest to cause block I/O to be performed on bhyve process memory outside the guest's buffers. pcivtblkproc() in usr/src/cmd/bhyve/common/pcivirtioblock.c copies the request header from a descriptor chain. It then accounts for the trailing status byte by decrementing the count of bytes remaining in the chain, without first checking that any remain. For a chain with a total length equal to the size of the header, the count wraps to a very large value. The I/O vector for the request is then built from entries beyond the end of the chain, which contain stale addresses and lengths left by earlier requests. A privileged user within a guest VM can submit such a request. The block backend then reads disk contents into, or writes to the guest's disk from, bhyve process memory that the request does not describe. This may corrupt the bhyve process or disclose its memory to the guest. The flaw has existed since November 2025 (illumos-gate commit c3b97060), and affects any illumos distribution prior to illumos-gate commit d8a43cb7.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch d8a43cb7
Event History
Frequently Asked Questions
Which environments are exposed to this issue?
illumos systems running bhyve with the virtio-blk device model are affected if they are based on illumos-gate revisions before commit d8a43cb7. The vulnerable code was introduced in illumos-gate commit c3b97060 in November 2025.
What level of guest access is required to exploit it?
An attacker needs privileged access within a guest VM to submit a crafted virtio-blk request. The malformed descriptor chain has a total length equal to the request-header size.
What can exploitation allow an attacker to do?
The guest can cause block I/O to use stale addresses and lengths beyond the supplied descriptor chain. This can disclose bhyve process memory to the guest or write bhyve process memory to the guest disk, potentially corrupting the bhyve process.
How can I determine whether a system has the fix?
Check whether the installed illumos source includes illumos-gate commit d8a43cb7. Systems based on revisions before that commit are affected.