Out-of-bounds write in FreeBSD - CVE-2024-42416

 

Out-of-bounds write in FreeBSD - CVE-2024-42416

Published: October 31, 2024


Vulnerability identifier: #VU99537
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2024-42416
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: FreeBSD Foundation
Affected software:
FreeBSD

Detailed vulnerability description

The vulnerability allows a malicious guest to execute arbitrary code on the system.

The vulnerability exists due to a boundary error within the ctl_report_supported_opcodes() function. A malicious guest 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 (e.g. as root).


How to mitigate CVE-2024-42416

Install updates from vendor's website.

Sources