Vulnerability · Published Aug 1, 2023 · Assigned by freebsd

CVE-2023-3494bhyve privileged guest escape via fwctl

High 8.8

In plain English

A high-severity buffer overflow in FreeBSD from FreeBSD. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities).

Severity (CVSS NVD)8.8High
Exploit odds (30 days)0.2%top 86.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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 products (as reported)

VendorProductVersions
FreeBSD FreeBSD 13.2-RELEASE – before 13.2-RELEASE-p213.1-RELEASE – before 13.1-RELEASE-p9

Weakness: CWE-120

References