CVE-2024-8178 in Freebsd
The ctl_write_buffer and ctl_read_buffer functions allocated memory to be returned to userspace, without initializing it. Malicious software running in a guest VM that exposes virtio_scsi can exploit the vulnerabilities to achieve code execution on the host in the bhyve userspace process, which typically runs as ro...
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, low complexity, low privileges required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Freebsd | Freebsd | 13.3 13.4 14.0 14.1 ≥ 13.0, < 13.3 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
The ctl_write_buffer and ctl_read_buffer functions allocated memory to be returned to userspace, without initializing it. Malicious software running in a guest VM that exposes virtio_scsi can exploit the vulnerabilities to achieve code execution on the host in the bhyve userspace process, which typically runs as root. Note that bhyve runs in a Capsicum sandbox, so malicious code is constrained by the capabilities available to the bhyve process. A malicious iSCSI initiator could achieve remote code execution on the iSCSI target host.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-8178 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-047166-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| Published | 2024-09-05 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-908: CWE-908
CWE-909: CWE-909
Analysis AI-written, not human-reviewed
CVE-2024-8178 involves uninitialized memory allocation in the ctl_write_buffer and ctl_read_buffer functions, which can be exploited by malicious software in a guest VM to achieve code execution on the host in the bhyve userspace process.
Malicious software running in a guest VM that exposes virtio_scsi can exploit the vulnerabilities to achieve code execution on the host in the bhyve userspace process, which typically runs as root. The bhyve process runs in a Capsicum sandbox, which constrains the malicious code.
Questions
What is CVE-2024-8178?
CVE-2024-8178 involves uninitialized memory allocation in the ctl_write_buffer and ctl_read_buffer functions, which can be exploited by malicious software in a guest VM to achieve code execution on the host in the bhyve userspace process.
What is the CVSS score for CVE-2024-8178?
CVE-2024-8178 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H. EPSS: 0.6%.
Is CVE-2024-8178 actively exploited?
No confirmed active exploitation of CVE-2024-8178 as of 2026-09-25.
How do I remediate CVE-2024-8178?
Priority: IMMEDIATE. Advisory: https://security.freebsd.org/advisories/FreeBSD-SA-24:11.ctl.asc PSIRT: [email protected]
What systems are affected by CVE-2024-8178?
CVE-2024-8178 affects Freebsd Freebsd.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Freebsd","product":"Freebsd","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.