CVE-2023-3494

published 1 Aug 2023 · updated 13 Feb 2025

bhyve privileged guest escape via fwctl

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 13.1-RELEASE-p9 and 13.2-RELEASE-p2.

The fwctl driver implements a state machine which is executed when a bhyve guest accesses certain x86 I/O ports. The interface lets the guest copy a string into a buffer resident in the bhyve process' memory. A bug in the state machine implementation can result in a buffer overflowing when copying this string. Malicious, privileged software running in a guest VM can exploit the buffer overflow to achieve code execution on the host in the bhyve userspace process, which typically runs as root, mitigated by the capabilities assigned through the Capsicum sandbox available to the bhyve process.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
FreeBSD>=13.1-RELEASE <13.1-RELEASE-p9, >=13.2-RELEASE <13.2-RELEASE-p213.1-RELEASE-p9, 13.2-RELEASE-p2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-3494 severity on Zeptric[![CVE-2023-3494](https://zeptric.io/badge/cve/CVE-2023-3494.svg)](https://zeptric.io/cve/CVE-2023-3494)