CVE-2024-8178 Multiple issues in ctl(4) CAM Target Layer
Uninitialized memory in FreeBSD's CAM Target Layer allows guest VMs or remote iSCSI initiators to achieve code execution on the host.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-8178?
CVE-2024-8178 is a critical vulnerability in Freebsd Freebsd, published on 5 Sep 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2024-8178?
It affects 1 product.
Products include Freebsd Freebsd.
How do I fix CVE-2024-8178?
No fix has been published for CVE-2024-8178 yet. Limit exposure of the affected software until one is available.
Is CVE-2024-8178 being exploited?
There is no known exploitation of CVE-2024-8178 in the wild and no public exploit code.
Other vulnerabilities in Freebsd Freebsd
Sources
Also known as GHSA-9qxr-9qr6-7x7w.