CVE-2021-3527
Reported by redhat · Published May 26, 2021
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| qemu-kvm | Amazon Linux | 10:3.1.0-8.amzn2.0.10 |
| qemu-img | Amazon Linux | 10:3.1.0-8.amzn2.0.10 |
| qemu-block-dmg | Amazon Linux | 10:3.1.0-8.amzn2.0.10 |
| qemu-block-rbd | Amazon Linux | 10:3.1.0-8.amzn2.0.10 |
| qemu-system-x86 | Amazon Linux | 10:3.1.0-8.amzn2.0.10 |
| ivshmem-tools | Amazon Linux | 10:3.1.0-8.amzn2.0.10 |
| qemu-audio-alsa | Amazon Linux | 10:3.1.0-8.amzn2.0.10 |
| qemu | Ubuntu:20.04:LTS | 1:4.2-3ubuntu6.17 |
| qemu | Ubuntu:18.04:LTS | 1:2.11+dfsg-1ubuntu7.37 |
| qemu | Ubuntu:22.04:LTS | 1:6.0+dfsg-2expubuntu1 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | QEMU | all versions |
| amazon:2 | qemu-kvm | 0 |
| amazon:2 | qemu-img | 0 |
| amazon:2 | qemu-block-dmg | 0 |
| amazon:2 | qemu-block-rbd | 0 |
| amazon:2 | qemu-system-x86 | 0 |
| amazon:2 | ivshmem-tools | 0 |
| amazon:2 | qemu-audio-alsa | 0 |
| n/a | QEMU | * |
| amazon:2 | qemu-system-x86-core | 0 |
| amazon:2 | qemu | 0 |
| amazon:2 | qemu-ui-sdl | 0 |
| amazon:2 | qemu-guest-agent | 0 |
| amazon:2 | qemu-user | 0 |
| amazon:2 | qemu-block-iscsi | 0 |
| amazon:2 | qemu-block-curl | 0 |
| amazon:2 | qemu-system-aarch64 | 0 |
| amazon:2 | qemu-ui-gtk | 0 |
| alpine | qemu | 0 |
| amazon:2 | qemu-common | 0 |
…and 10 more
Timeline
- May 2, 2021 CVE Published
- May 27, 2021 EPSS Score (30 in total, the first dated here)
- Aug 16, 2022 CVE Updated
- Nov 15, 2023 PoC Published
- Mar 7, 2026 Distribution Patch (3 in total, the first dated here)
- Mar 7, 2026 Security Advisory (8 in total, the first dated here)
- Jul 29, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-3527
vulnetix vdb fixes CVE-2021-3527
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-3527/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- [debian-lts-announce] 20210902 [SECURITY] [DLA 2753-1] qemu security update mailing-listx_refsource_MLIST
- GLSA-202208-27 vendor-advisoryx_refsource_GENTOO
- [debian-lts-announce] 20220905 [SECURITY] [DLA 3099-1] qemu security update mailing-listx_refsource_MLIST