CVE-2023-3494

EUVD-2023-44153
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.
Classic Buffer Overflow
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
8.8 HIGH
LOCAL
LOW
LOW
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 40%
Affected Products (NVD)
VendorProductVersion
freebsdfreebsd
13.1
freebsdfreebsd
13.1:b1-p1
freebsdfreebsd
13.1:b2-p2
freebsdfreebsd
13.1:p1
freebsdfreebsd
13.1:p2
freebsdfreebsd
13.1:p3
freebsdfreebsd
13.1:p4
freebsdfreebsd
13.1:p5
freebsdfreebsd
13.1:p6
freebsdfreebsd
13.1:p7
freebsdfreebsd
13.1:p8
freebsdfreebsd
13.1:rc1-p1
freebsdfreebsd
13.2
freebsdfreebsd
13.2:p1
𝑥
= Vulnerable software versions