CVE-2024-42416
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.
Description as published by the source, in English.
Key facts
- Published
- 2024-09-05
- Last modified
- 2026-06-17
- Assigned by
- secteam@freebsd.org
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
0.4 %
higher than 32 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Freebsd | Freebsd | 13.3 | Affected |
| Freebsd | Freebsd | 13.4 | Affected |
| Freebsd | Freebsd | 14.0 | Affected |
| Freebsd | Freebsd | 14.1 | Affected |
| Freebsd | Freebsd | ≥ 13.0, < 13.3 | Affected |
Weakness type
-
CWE-1284: Improper Validation of Specified Quantity in Input
The product receives input that is expected to specify a quantity (such as size or length), but it does not validate or incorrectly validates that the quantity has the required properties.
-
CWE-790: Improper Filtering of Special Elements
The product receives data from an upstream component, but it does not filter or incorrectly filters special elements before sending it to a downstream component.
-
CWE-823: Use of Out-of-range Pointer Offset
The product performs pointer arithmetic on a valid pointer, but it uses an offset that can point outside of the intended range of valid memory locations for the resulting pointer.
References
- https://security.freebsd.org/advisories/FreeBSD-SA-24:11.ctl.asc
- https://security.netapp.com/advisory/ntap-20240920-0010/
Related at Berigo
Articles
-
Arbitrary file overwrite vulnerability in FreeBSD
Same product
2026-06-06
CVE-2026-45257 in FreeBSD kernel TLS lets a local user with read access overwrite a file's contents, enabling privilege escalation.
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.