CVE-2024-8178

HIGH

bhyve - Memory Corruption

Title source: llm

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.

Scores

CVSS v3 8.8
EPSS 0.0296
EPSS Percentile 86.3%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Classification

CWE
CWE-909 CWE-908
Status published

Affected Products (25)

freebsd/freebsd < 13.3
freebsd/freebsd
freebsd/freebsd
freebsd/freebsd
freebsd/freebsd
freebsd/freebsd
freebsd/freebsd
freebsd/freebsd
freebsd/freebsd
freebsd/freebsd
freebsd/freebsd
freebsd/freebsd
freebsd/freebsd
freebsd/freebsd
freebsd/freebsd
... and 10 more

Timeline

Published Sep 05, 2024
Tracked Since Feb 18, 2026