CVE-2024-42416 in Freebsd
The ctl_report_supported_opcodes function did not sufficiently validate a field provided by userspace, allowing an arbitrary write to a limited amount of kernel help memory. Malicious software running in a guest VM that exposes virtio_scsi can exploit the vulnerabilities to achieve code execution on the host in the...
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_report_supported_opcodes function did not sufficiently validate a field provided by userspace, allowing an arbitrary write to a limited amount of kernel help memory. 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-42416 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-203590-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-790: CWE-790
CWE-823: CWE-823
CWE-1284: CWE-1284
Related attack patterns (CAPEC)
CAPEC-129 Pointer Manipulation via CWE-823
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A vulnerability in the ctl_report_supported_opcodes function of bhyve allows a malicious guest VM to perform an arbitrary write to limited kernel memory, potentially leading to code execution on the host.
The vulnerability arises from insufficient validation of a user-provided field in the ctl_report_supported_opcodes function, which can be exploited by malicious software running in a guest VM that exposes virtio_scsi.
Questions
What is CVE-2024-42416?
A vulnerability in the ctl_report_supported_opcodes function of bhyve allows a malicious guest VM to perform an arbitrary write to limited kernel memory, potentially leading to code execution on the host.
What is the CVSS score for CVE-2024-42416?
CVE-2024-42416 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.5%.
Is CVE-2024-42416 actively exploited?
No confirmed active exploitation of CVE-2024-42416 as of 2026-09-25.
How do I remediate CVE-2024-42416?
Priority: IMMEDIATE. Advisory: https://security.freebsd.org/advisories/FreeBSD-SA-24:11.ctl.asc PSIRT: [email protected]
What systems are affected by CVE-2024-42416?
CVE-2024-42416 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.