CVE-2023-3494 bhyve privileged guest escape via fwctl
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| freebsd | = 13.1; = 13.1-b1-p1; = 13.1-b2-p2; = 13.1-p1 +12 more | 13.1-RELEASE-p9, 13.2-RELEASE-p2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| freebsd | >= 13.2-RELEASE, < 13.2-RELEASE-p2 | 13.2-RELEASE-p2 |
| freebsd | >= 13.1-RELEASE, < 13.1-RELEASE-p9 | 13.1-RELEASE-p9 |
| freebsd | = 13.1 | No fix listed |
| freebsd | = 13.1-b1-p1 | No fix listed |
| freebsd | = 13.1-b2-p2 | No fix listed |
| freebsd | = 13.1-p1 | No fix listed |
| freebsd | = 13.1-p2 | No fix listed |
| freebsd | = 13.1-p3 | No fix listed |
| freebsd | = 13.1-p4 | No fix listed |
| freebsd | = 13.1-p5 | No fix listed |
| freebsd | = 13.1-p6 | No fix listed |
| freebsd | = 13.1-p7 | No fix listed |
| freebsd | = 13.1-p8 | No fix listed |
| freebsd | = 13.1-rc1-p1 | No fix listed |
| freebsd | = 13.2 | No fix listed |
| freebsd | = 13.2-p1 | No fix listed |
References
- security.FreeBSD.org vendor-advisory
- security.netapp.com