CVE-2023-3494

bhyve privileged guest escape via fwctl

State
Published
Severity
Not scored
Published
Aug 1, 2023
Updated
Feb 13, 2025
Reserved
Jun 30, 2023

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

  • CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Affected Products

ProductVersions
FreeBSDFreeBSD
  • 13.2-RELEASE to before 13.2-RELEASE-p2Affected
  • 13.1-RELEASE to before 13.1-RELEASE-p9Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.