Back

Oxide Security Advisory 20261201-4: A Privileged Guest User Can Panic the Host Using Repeated Instructions Against Emulated Devices

A privileged user inside a guest VM can cause the host sled to panic by issuing repeated instructions against virtual devices emulated in the kernel. The sled is unresponsive until it finishes rebooting. If the user’s VM moves to another sled, the attack can be repeated, causing further sled reboots.

This was previously partially addressed in 23.1.

Customers should update the Oxide Cloud Computer to system release 23.5 or later.

Table 1. Revision History
RevisionDate (YYYYMMDD)Changes

1.0

20261201

Initial Release

Impacted Products

  • Oxide system releases earlier than 23.5.

  • System release 23.1 contains a partial fix.

Impact

A privileged user of a guest VM can cause a denial of service for the guest VM and for any other VMs on the same host.

Action Required

Update to system release 23.5 or later.

Mitigations

Oxide recommends updating, as there are no viable mitigations.

Technical Background

Oxide uses bhyve as its hypervisor. bhyve emulates some hardware for guests, including event timers and interrupt controllers. When a guest repeats specific instructions (REP-prefixed MOVS or STOS instructions) against the memory addresses that represent emulated hardware, the emulator tracks the need for repetition with an internal flag. On real hardware, REP-prefixed (that is, "repeat") instructions repeat until the specified count reaches zero or a protection fault occurs.

On emulated hardware, the hypervisor must emulate each iteration. During these iterations, the emulator sets a flag if more iterations remain. The last iteration should clear the flag, but a bug left it set. The last step of instruction emulation asserts that the repetition flag is clear, which indicates that no more iterations are needed. Because of the bug, the assertion could fail and panic the host.

System release 23.1 fixed this by clearing the flag when the emulator checked the count register at the start of each iteration. That fix did not account for an iteration that ends in a fault.

A REP-prefixed instruction can stop partway through when a fault occurs, for example because the instruction referenced an invalid or unmapped address. The emulator then reports the fault to the guest, as real hardware would. In that case the flag stayed set and the same assertion could fail, panicking the host.

This second case also covers repeated string I/O instructions (REP INS and REP OUTS) against emulated I/O ports. As with the first issue, only a guest user who can run instructions in ring 0 can trigger it.

Ordinary guests don’t use bulk copy or fill instructions against APIC, I/O APIC, or HPET registers, or against registers associated with I/O ports. They typically access these registers one at a time with a plain MOV. A guest user who can run instructions in ring 0, for example by loading a custom driver, could deliberately trigger a panic.

System release 23.5 clears the flag when a protection fault interrupts repeat emulation.