First published: Fri Apr 30 2021(Updated: )
A flaw was found in the USB redirection support (usb-redir) of QEMU. More specifically, usb-host and usb-redirect try to batch bulk transfers by combining many small USB packets into a single, large transfer request, to reduce the overhead and improve performance. The combined size of the bulk sending is used in usbredir_handle_bulk_data() to dynamically allocate a variable length array (VLA) on the stack. Since the total size is not bounded, a malicious guest could be able to influence the array length and cause the QEMU process to perform an excessive allocation on the stack, resulting in a denial of service.
Credit: secalert@redhat.com secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|---|---|
QEMU qemu | <=6.0.0 | |
Redhat Enterprise Linux | =8.0 | |
Redhat Enterprise Linux | =8.0 | |
Debian Debian Linux | =9.0 | |
Debian Debian Linux | =10.0 | |
debian/qemu | 1:5.2+dfsg-11+deb11u3 1:5.2+dfsg-11+deb11u2 1:7.2+dfsg-7+deb12u7 1:9.2.0+ds-2 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2021-3527 is a vulnerability in the USB redirector device (usb-redir) of QEMU.
CVE-2021-3527 allows an attacker to cause a stack-based buffer overflow in QEMU.
CVE-2021-3527 has a severity rating of 5.5 (Medium).
QEMU version 6.0.0 and Red Hat Enterprise Linux 8.0 are affected by CVE-2021-3527.
To fix CVE-2021-3527, update QEMU to version 6.0.0 or apply the recommended patches for affected software.