CVE-2024-8178

published 5 Sep 2024 · updated 4 Nov 2025

Multiple issues in ctl(4) CAM Target Layer

9.3CriticalCVSS 9.3EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in p6, p10 and p4.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
FreeBSD>=13.3-RELEASE <p6, >=14.0-RELEASE <p10, >=14.1-RELEASE <p4p6, p10, p4

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-8178 severity on Zeptric[![CVE-2024-8178](https://zeptric.io/badge/cve/CVE-2024-8178.svg)](https://zeptric.io/cve/CVE-2024-8178)