bhyve virtio_scsi Use-After-Free in ctl_write_buffer enabling RCE via guest VM
CVE-2024-45063 Published on September 5, 2024
Multiple issues in ctl(4) CAM Target Layer
The function ctl_write_buffer incorrectly set a flag which resulted in a kernel Use-After-Free when a command finished processing.
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.
Vulnerability Analysis
CVE-2024-45063 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be critical as this vulnerability has a high impact to the confidentiality, integrity and availability of this component.
Weakness Type
What is a Dangling pointer Vulnerability?
Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code.
CVE-2024-45063 has been classified to as a Dangling pointer vulnerability or weakness.
Products Associated with CVE-2024-45063
Want to know whenever a new CVE is published for FreeBSD? stack.watch will email you.
Affected Versions
FreeBSD:- Version 14.1-RELEASE and below p4 is affected.
- Version 14.0-RELEASE and below p10 is affected.
- Version 13.3-RELEASE and below p6 is affected.
- Version 14.1 and below 14.1_p4 is affected.
- Version 14.0 and below 14.0_p10 is affected.
- Version 13.3 and below 13.3_p6 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.