The in-kernel virtio network device (viona) used by the hypervisor (bhyve) accepts indirect descriptor tables at any address, with no alignment requirement. A descriptor in such a table can therefore span two pages and cause viona to read the whole descriptor from the first page’s mapping, which includes up to 15 trailing bytes from whatever host memory follows.
Part of that data is reported back to the guest, so a guest can read a few bytes of host memory at a time and repeat the request to watch them change. Such reads also risk reading past the end of physical memory and triggering a host panic.
Customers should update the Oxide Cloud Computer to system release 23.5 or later.
| Revision | Date (YYYYMMDD) | Changes |
|---|---|---|
1.0 | 20261201 | Initial Release |
Impacted Products
Oxide system releases 23.4 and earlier.
Impact
A malicious guest can make repeated reads of a small amount of physically adjacent host memory. This can disclose sensitive data such as pointer addresses, or panic the host and cause the Oxide sled to reboot.
Action Required
Update to system release 23.5 or later.
Mitigations
Oxide recommends updating, as there are no viable mitigations.
Technical Background
Virtio devices move data between guests and hosts using a shared ring of descriptors. Each descriptor contains a guest address, a length, flags, and a next field that tell the device backend where a buffer lives in guest memory. That is, each descriptor says precisely where to find a piece of a packet. A descriptor can also point to an indirect table instead of directly to a buffer. This page of guest memory contains a further list of descriptors for the device backend to read.
When reading these descriptors, viona made only two checks: that the table’s byte length was valid, and that it didn’t exceed a configured maximum. It did not check that each entry lies within a page boundary. If a descriptor is placed at the end of a page, the resulting read has one of two outcomes, depending on what occupies the next physical page:
If the page is ordinary installed RAM, the read succeeds and returns whatever currently occupies it. The trailing bytes land in the descriptor’s length, flags, and next fields. The leaked bytes return to the guest directly through the length value, which is the normal mechanism by which a guest learns how many bytes an I/O request transferred.
If the page falls outside any installed-memory segment, the CPU raises a fault because no memory exists at that address, and the system panics.
Both outcomes stem from the missing check and are reachable by the same technique. A guest controls which of its own pages back the indirect table and at what offset, so it can construct descriptors that read adjacent physical pages of host memory. A guest can’t, however, construct them to target a specific segment of physical memory.
System release 23.5 contains a fix that reads a descriptor spanning two pages in two parts, each from the correct guest page.