CVE-2024-24474
NixOS vulnerability analysis and mitigation

Overview

QEMU before version 8.2.0 contains a vulnerability (CVE-2024-24474) involving an integer underflow and resultant buffer overflow in the am53c974 SCSI controller emulation. The vulnerability was discovered and disclosed on February 20, 2024, affecting the esp_do_nodma function in hw/scsi/esp.c due to an underflow of async_len variable (RedHat XML).

Technical details

The vulnerability occurs when a SCSI layer transfer is incorrectly terminated, allowing a TI command to cause a buffer overflow when the expected non-DMA transfer length is less than the available FIFO data. When this happens, the unsigned async_len variable underflows and becomes a large offset, which writes past the end of the allocated SCSI buffer. The vulnerability has been assigned a CVSS v3.1 score of 5.3 (Medium) with the vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L (RedHat XML).

Impact

The successful exploitation of this vulnerability could lead to disclosure of sensitive information, modification of data, or a denial of service (DoS) condition. The flaw could allow a malicious guest to crash QEMU and cause a denial of service condition (RedHat XML).

Mitigation and workarounds

The vulnerability has been fixed in QEMU version 8.2.0. The patch restricts the non-DMA transfer length to be the smallest of the expected transfer length and the available FIFO data to ensure that it is no longer possible for the SCSI buffer overflow to occur (QEMU Commit).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20806MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20805MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20804MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20803MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management