# CVE-2024-8178: Multiple issues in ctl(4) CAM Target Layer

- Severity: Critical 9.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 50% of CVEs (2026-12-02)
- Published: 2024-09-05T04:31:12.231Z
- Modified: 2026-06-17T08:22:03.840Z
- Weaknesses: CWE-908, CWE-909
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: freebsd

## 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.

(As written by CVE List.)

## Affected

- FreeBSD FreeBSD: from 14.1-RELEASE before p4; from 14.0-RELEASE before p10; from 13.3-RELEASE before p6; from 14.1 before 14.1_p4; from 14.0 before 14.0_p10; from 13.3 before 13.3_p6; from 13.0 before 13.3; 13.3; 13.4; 14.0; 14.1

## Every score

- CISA-ADP: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://security.freebsd.org/advisories/FreeBSD-SA-24:11.ctl.asc> (vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20240920-0010/>

## Sources

- CVE List: [CVE-2024-8178](https://www.cve.org/CVERecord?id=CVE-2024-8178), CVE Terms of Use, modified 2025-11-04
- NVD: [CVE-2024-8178](https://nvd.nist.gov/vuln/detail/CVE-2024-8178), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-8178 · Whole record: https://cve.day/CVE-2024-8178.json · Rebuilt by cve.day 2026-11-25T22:58:45.111Z
