Remote code execution in FreeBSD bhyve



Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2024-41721
CWE-ID CWE-125
Exploitation vector Network
Public exploit N/A
Vulnerable software
FreeBSD
Operating systems & Components / Operating system

Vendor FreeBSD Foundation

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Out-of-bounds read

EUVDB-ID: #VU99514

Risk: Medium

CVSSv4.0: 4.8 [CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2024-41721

CWE-ID: CWE-125 - Out-of-bounds read

Exploit availability: No

Description

The vulnerability allows a malicious guest to compromise the affected system.

The vulnerability exists due to a boundary condition in bhyve(8) when emulating device on a USB controller via XHCI emulation. A malicious guest can trigger an out-of-bounds read and crash the hypervisor or execute arbitrary code.

Note that bhyve runs in a Capsicum sandbox, so malicious code is constrained by the capabilities available to the bhyve process.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

FreeBSD: 13.3 - 14.1

CPE2.3 External links

https://security.freebsd.org/advisories/FreeBSD-SA-24:15.bhyve.asc


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated privileged user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###