bhyve(8) privileged guest escape via USB controller
Description
An insufficient boundary validation in the USB code could lead to an out-of-bounds write on the heap, with data controlled by the caller.
A malicious, privileged software running in a guest VM can exploit the vulnerability to achieve code execution on the host in the bhyve userspace process, which typically runs as root. Note that bhyve runs in a Capsicum sandbox, so malicious code is constrained by the capabilities available to the bhyve process.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
An out-of-bounds write in FreeBSD bhyve's USB XHCI emulation allows a privileged guest attacker to execute code on the host.
Vulnerability
An insufficient boundary validation in the USB code of the bhyve hypervisor, specifically in the emulation of the XHCI (USB 3.0) controller, leads to an out-of-bounds write on the heap with attacker-controlled data. This affects all supported versions of FreeBSD (stable/14, releng/14.1, releng/14.0, stable/13, releng/13.4, releng/13.3) when the XHCI device is exposed to the guest via the bhyve -s xhci,... option [1].
Exploitation
A malicious, privileged software running inside a guest VM (e.g., with root access) can exploit the vulnerability by sending crafted USB requests to the emulated XHCI controller. No additional user interaction on the host is required. The attacker must have the ability to execute code in the guest with sufficient privileges to interact with the virtual USB device [1].
Impact
Successful exploitation allows the attacker to achieve code execution on the host within the bhyve userspace process, which typically runs as root. However, bhyve is confined by a Capsicum sandbox, so the attacker's capabilities are limited to those available to the bhyve process. This constitutes a guest-to-host escape, potentially leading to full host compromise depending on the sandbox restrictions [1].
Mitigation
FreeBSD released fixes on 2024-09-04. The corrected versions are: 14.1-RELEASE-p4, 14.0-RELEASE-p10, 13.4-RC2-p1, 13.3-RELEASE-p6, and the corresponding STABLE branches (stable/14, stable/13). No workaround is available other than not exposing the XHCI device to the guest. The vulnerability is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog as of the publication date [1].
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
1- security.freebsd.org/advisories/FreeBSD-SA-24:12.bhyve.ascmitrevendor-advisory
News mentions
0No linked articles in our index yet.