Vulnerability · Published May 26, 2021 · Assigned by redhat
CVE-2021-3527
Medium 5.5
In plain English
A medium-severity resource allocation without limits in QEMU. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 32% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A flaw was found in the USB redirector device (usb-redir) of QEMU. Small USB packets are combined into a single, large transfer request, to reduce the overhead and improve performance. The combined size of the bulk transfer is used to dynamically allocate a variable length array (VLA) on the stack without proper validation. Since the total size is not bounded, a malicious guest could use this flaw to influence the array length and cause the QEMU process to perform an excessive allocation on the stack, resulting in a denial of service.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | qemu | 6.0.0-r2 | ALPINE-CVE-2021-3527 |
| Alpine:v3.21 | qemu | 6.0.0-r2 | ALPINE-CVE-2021-3527 |
| Alpine:v3.22 | qemu | 6.0.0-r2 | ALPINE-CVE-2021-3527 |
| Alpine:v3.23 | qemu | 6.0.0-r2 | ALPINE-CVE-2021-3527 |
| Alpine:v3.24 | qemu | 6.0.0-r2 | ALPINE-CVE-2021-3527 |
| Debian:12 | qemu | 1:5.2+dfsg-11 | DEBIAN-CVE-2021-3527 |
| Debian:13 | qemu | 1:5.2+dfsg-11 | DEBIAN-CVE-2021-3527 |
| Debian:14 | qemu | 1:5.2+dfsg-11 | DEBIAN-CVE-2021-3527 |
| Ubuntu:22.04:LTS | qemu | 1:6.0+dfsg-2expubuntu1 | UBUNTU-CVE-2021-3527 |
Affected products (as reported)
Weakness: CWE-770
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1955695 x_refsource_MISC
- https://www.openwall.com/lists/oss-security/2021/05/05/5 x_refsource_MISC
- https://gitlab.com/qemu-project/qemu/-/commit/7ec54f9eb62b5d177e30eb8b1cad795a5f8d8986 x_refsource_MISC
- https://gitlab.com/qemu-project/qemu/-/commit/05a40b172e4d691371534828078be47e7fff524c x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20210708-0008/ x_refsource_CONFIRM
- [debian-lts-announce] 20210902 [SECURITY] [DLA 2753-1] qemu security update mailing-list, x_refsource_MLIST
- GLSA-202208-27 vendor-advisory, x_refsource_GENTOO
- [debian-lts-announce] 20220905 [SECURITY] [DLA 3099-1] qemu security update mailing-list, x_refsource_MLIST