CVE-2024-8178

HIGH
Published Sep 5, 2024 Modified Nov 4, 2025 CWE-908 CWE-909

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.

CVSS v3.1 Score

8.8
HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Weakness Type (CWE)

CWE-908 CWE-908
CWE-909 CWE-909

Affected Products

Vendor Product
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd
freebsd freebsd

References

Frequently Asked Questions

What is CVE-2024-8178? +
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. It has a CVSS v3.1 base score of 8.8 (HIGH).
How severe is CVE-2024-8178? +
CVE-2024-8178 has a CVSS v3.1 score of 8.8 out of 10, rated HIGH. This is a high-severity vulnerability that should be prioritized for patching.
What products are affected by CVE-2024-8178? +
CVE-2024-8178 affects products from freebsd, specifically: freebsd. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2024-8178? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2024-8178 — free, no signup required.

Start Free Scan