CVE-2024-24474

8.8 HIGH

📋 TL;DR

This CVE describes an integer underflow and buffer overflow vulnerability in QEMU's SCSI emulation (esp.c). Attackers can exploit this to execute arbitrary code or cause denial-of-service on the QEMU host system. Affected users include anyone running vulnerable QEMU versions with SCSI device emulation enabled.

💻 Affected Systems

Products:
  • QEMU
Versions: All versions before 8.2.0
Operating Systems: Linux, Windows, macOS - any OS running QEMU
Default Config Vulnerable: ✅ No
Notes: Only vulnerable when SCSI device emulation is enabled (esp device). Many QEMU configurations don't use SCSI by default.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full host compromise via arbitrary code execution on the QEMU hypervisor, potentially leading to escape from guest VM to host system.

🟠

Likely Case

Denial-of-service (QEMU process crash) or limited information disclosure from host memory.

🟢

If Mitigated

If proper network segmentation and access controls are in place, impact is limited to the specific QEMU instance and potentially adjacent VMs on same host.

🌐 Internet-Facing: MEDIUM - QEMU instances with SCSI emulation exposed to untrusted networks could be exploited remotely if guest VMs are compromised.
🏢 Internal Only: HIGH - In virtualized environments, compromised guest VMs could exploit this to attack the hypervisor or other VMs on same host.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploitation requires access to a guest VM with ability to send SCSI commands. Public PoC exists in references.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: QEMU 8.2.0 and later

Vendor Advisory: https://gitlab.com/qemu-project/qemu/-/issues/1810

Restart Required: Yes

Instructions:

1. Update QEMU to version 8.2.0 or later. 2. Stop all QEMU instances. 3. Install updated package from your distribution's repository or compile from source. 4. Restart QEMU instances.

🔧 Temporary Workarounds

Disable SCSI emulation

all

Remove or disable ESP SCSI controller from QEMU configurations

Check QEMU command line or config files for '-device esp' or similar SCSI device options and remove them

Network segmentation

all

Isolate QEMU hosts from critical networks and implement strict access controls

🧯 If You Can't Patch

  • Disable SCSI device emulation in all QEMU configurations
  • Implement strict network segmentation and monitor for unusual SCSI command patterns

🔍 How to Verify

Check if Vulnerable:

Check QEMU version with 'qemu-system-x86_64 --version' or equivalent for your architecture. If version is below 8.2.0 and SCSI emulation is enabled, system is vulnerable.

Check Version:

qemu-system-x86_64 --version | head -1

Verify Fix Applied:

Verify QEMU version is 8.2.0 or later with 'qemu-system-x86_64 --version' and confirm no SCSI devices are configured unless necessary.

📡 Detection & Monitoring

Log Indicators:

  • QEMU process crashes
  • Kernel logs showing segmentation faults in QEMU
  • Unusual SCSI command patterns in QEMU logs

Network Indicators:

  • Unexpected SCSI command traffic to/from QEMU hosts

SIEM Query:

process_name:"qemu-system" AND (event_type:crash OR error_message:"segmentation fault")

🔗 References

📤 Share & Export