What’s Vulnerable › Vulnerabilities
CVE-2024-8178: Multiple issues in ctl(4) CAM Target Layer
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-09-05 · updated 2026-06-17
- Weakness: CWE-908
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.
Affected products
- FreeBSD: from 13.0 before 13.3; 13.3, 13.3-p1, 13.3-p2, 13.3-p3, 13.3-p4, 13.3-p5 (+18) — fixed in 13.3
How to fix
Upgrade to a fixed version: FreeBSD 13.3. Check the vendor advisory for mitigations.
References
- https://security.freebsd.org/advisories/FreeBSD-SA-24:11.ctl.asc
- https://security.netapp.com/advisory/ntap-20240920-0010/
Get alerted when CVE-2024-8178 or the next vulnerability affects your stack