CVE-2021-3527
NixOS vulnerability analysis and mitigation

Overview

A flaw was discovered in the USB redirector device (usb-redir) of QEMU, identified as CVE-2021-3527. The vulnerability was found in how QEMU handles USB packet combinations, where small USB packets are combined into a single, large transfer request to improve performance and reduce overhead. The issue was disclosed in May 2021 and affects QEMU's USB redirection support, specifically the usb-host and usb-redirect components (Openwall List).

Technical details

The vulnerability stems from the use of a variable length array (VLA) on the stack in the usbredirhandlebulk_data() function. The combined size of bulk transfers is used to dynamically allocate this array without proper size validation. Since the total size is not bounded, this could lead to excessive stack allocation. The issue has been assigned a CVSS score of 5.5 (MEDIUM) with the vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NetApp Security).

Impact

When successfully exploited, this vulnerability could result in a denial of service (DoS) condition. A malicious guest could influence the array length and cause the QEMU process to perform an excessive allocation on the stack, potentially crashing the QEMU process (Debian LTS).

Mitigation and workarounds

The issue was addressed through two main fixes: avoiding dynamic stack allocation by using autofree heap allocation instead, and implementing a size limit of 1 MiB for combined packets to restrict the host resources the guest can bind. These fixes were implemented in upstream commits (QEMU Commit, 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-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-65622MEDIUM5.4
  • PHPPHP
  • snipe-it
NoYesDec 01, 2025

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