CVE-2024-4693
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
May 14, 2024
CISA due date
—
Cloudanix analysis
A problem in the software that runs virtual machines lets one virtual machine shut down the entire program on the physical computer, stopping everything else that depends on it.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Use After Free
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Use-after-free in QEMU Virtio PCI bindings where irqfd for vector 0 is improperly released then reused during boot, allowing a guest to trigger a crash in the host QEMU process via vhost_net_stop.
Why it matters to the business
A malicious or compromised virtual machine can crash the emulator process on the host system, causing denial of service that halts all virtual machines on that host and disrupts hosted workloads until the process is restarted.
How an attack unfolds
An attacker controlling a guest VM triggers the flawed irqfd handling path during the boot sequence by invoking vhost_net_stop, leading the host QEMU process to access already-freed memory and terminate.
How to fix it
Upgrade QEMU to a release containing the corrected irqfd handling logic in hw/virtio/virtio-pci.c. Apply vendor or distribution patches as soon as they become available.
How to confirm the fix worked
Confirm the installed QEMU version includes the fix, review source changes around irqfd release for vector 0, and test that guest-initiated vhost_net_stop sequences no longer cause host process termination.
Typical attack path
- Obtain control of a guest virtual machine
- Initiate the boot sequence or vhost_net_stop operation
- Trigger the use-after-free condition in virtio-pci
- Crash the host QEMU process
How to detect it
Monitor system and application logs for abrupt QEMU process terminations, especially those occurring shortly after guest boot events or vhost_net activity; correlate with guest VM lifecycle logs.
What your security team should do
- Prioritize QEMU updates on all hosts running affected versions
- Restrict untrusted or high-risk workloads to dedicated hosts
- Enable process monitoring and automatic restart for QEMU instances
- Review hypervisor hardening options such as guest isolation features
The record
A flaw was found in the QEMU Virtio PCI Bindings (hw/virtio/virtio-pci.c). An improper release and use of the irqfd for vector 0 during the boot process leads to a guest triggerable crash via vhost_net_stop(). This flaw allows a malicious guest to crash the QEMU process on the host.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:13 | qemu | 0 | 1:8.2.3+ds-1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | qemu | 0 | 8.2.7-150600.3.20.1 |
| SUSE:Linux Enterprise Module for Confidential Computing Technical Preview 15 SP6 | qemu | 0 | 8.2.7-15061.6.coco15sp6.1 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP6 | qemu | 0 | 8.2.7-150600.3.20.1 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP6 | qemu-linux-user | 0 | 8.2.7-150600.3.20.1 |
| SUSE:Linux Enterprise Module for Server Applications 15 SP6 | qemu | 0 | 8.2.7-150600.3.20.1 |
| Ubuntu:20.04:LTS | qemu | 0 | 1:4.2-3ubuntu6.30 |
| Ubuntu:22.04:LTS | qemu | 0 | 1:6.2+dfsg-2ubuntu6.24 |
| Ubuntu:24.04:LTS | qemu | 0 | 1:8.2.2+ds-0ubuntu1.4 |
| Ubuntu:24.10 | qemu | 0 | 1:9.0.2+ds-4ubuntu5.1 |
| Ubuntu:Pro:14.04:LTS | qemu | 0 | 2.0.0+dfsg-2ubuntu1.47+esm4 |
| Ubuntu:Pro:16.04:LTS | qemu | 0 | 1:2.5+dfsg-5ubuntu10.51+esm3 |
| Ubuntu:Pro:18.04:LTS | qemu | 0 | 1:2.11+dfsg-1ubuntu7.42+esm2 |
| openSUSE:Leap 15.6 | qemu | 0 | 8.2.7-150600.3.20.1 |
| openSUSE:Leap 15.6 | qemu-linux-user | 0 | 8.2.7-150600.3.20.1 |
Related vulnerabilities
- CVE-2024-7730 A heap buffer overflow was found in the virtio-snd device in QEMU. Also affects qemu
- CVE-2024-3447 A heap-based buffer overflow was found in the SDHCI device emulation of QEMU. Also affects qemu
- CVE-2024-6519 A use-after-free vulnerability was found in the QEMU LSI53C895A SCSI Host Bus Adapter… Also affects qemu
- CVE-2024-8612 A flaw was found in QEMU, in the virtio-scsi, virtio-blk, and virtio-crypto devices. Also affects qemu
- CVE-2024-8354 A flaw was found in QEMU. Also affects qemu
- CVE-2024-7409 A flaw was found in the QEMU NBD Server. Also affects qemu
- CVE-2024-6505 A flaw was found in the virtio-net device in QEMU. Also affects qemu
- CVE-2024-4467 A flaw was found in the QEMU disk image utility (qemu-img) 'info' command. Also affects qemu