Paper/Archive/CVE-2024-8178

CVE-2024-8178

FreeBSD FreeBSD — Multiple issues in ctl(4) CAM Target Layer

Description · from the CVE record

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

ProductAffectedFixed inSource
FreeBSD14.1-RELEASE – < p4p4CNA
FreeBSD14.0-RELEASE – < p10p10CNA
FreeBSD13.3-RELEASE – < p6p6CNA
freebsd14.1 – < 14.1_p414.1_p4CISA-ADP
freebsd14.0 – < 14.0_p1014.0_p10CISA-ADP
freebsd13.3 – < 13.3_p613.3_p6CISA-ADP

Scores by source

CISA ADP9.3CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CISA ADPSSVCExploitation: none · Automatable: no · Technical impact: total

References

advisorysecurity.freebsd.org/advisories/FreeBSD-SA-24:11.ctl.ascrefsecurity.netapp.com/advisory/ntap-20240920-0010