CVE-2023-3494

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:freebsd:freebsd:13.1:-:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:13.1:b1-p1:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:13.1:b2-p2:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:13.1:p1:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:13.1:p2:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:13.1:p3:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:13.1:p4:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:13.1:p5:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:13.1:p6:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:13.1:p7:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:13.1:p8:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:13.1:rc1-p1:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:13.2:-:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:13.2:p1:*:*:*:*:*:*

History

13 Feb 2025, 17:16

Type Values Removed Values Added
Summary (en) 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. (en) 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.

21 Nov 2024, 08:17

Type Values Removed Values Added
Summary
  • (es) El controlador fwctl implementa una máquina de estados que se ejecuta cuando un huésped bhyve accede a ciertos puertos de E/S x86. La interfaz permite al huésped copiar una cadena en un búfer residente en la memoria del proceso bhyve. Un error en la implementación de la máquina de estado puede provocar el desbordamiento del búfer al copiar esta cadena. El software malicioso y privilegiado que se ejecuta en una máquina virtual huésped puede explotar el desbordamiento del búfer para lograr la ejecución de código en el host en el proceso de espacio de usuario bhyve, que normalmente se ejecuta como root, mitigado por las capacidades asignadas a través de la caja de arena Capsicum disponible para el proceso bhyve.
References () https://security.FreeBSD.org/advisories/FreeBSD-SA-23:07.bhyve.asc - Vendor Advisory () https://security.FreeBSD.org/advisories/FreeBSD-SA-23:07.bhyve.asc - Vendor Advisory
References () https://security.netapp.com/advisory/ntap-20230831-0006/ - () https://security.netapp.com/advisory/ntap-20230831-0006/ -

Information

Published : 2023-08-01 23:15

Updated : 2025-02-13 17:16


NVD link : CVE-2023-3494

Mitre link : CVE-2023-3494

CVE.ORG link : CVE-2023-3494


JSON object : View

Products Affected

freebsd

  • freebsd
CWE
CWE-120

Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')