cve.bz

CVE-2021-20221 Out-of-bounds Read

6.0 mediumEPSS 0.3%Fix available

Medium (6.0). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
An out-of-bounds heap buffer access issue was found in the ARM Generic Interrupt Controller emulator of QEMU up to and including qemu 4.2.0on aarch64 platform. The issue occurs because while writing an interrupt ID to the controller memory area, it is not masked to be 4 bits wide. It may lead to the said issue while updating controller state fields and their subsequent processing. A privileged guest user may use this flaw to crash the QEMU process on the host resulting in DoS scenario.

Severity

CVSS 3.1

6.0 medium
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 26th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-125 Out-of-bounds Read
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-20221 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20221?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20221?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-20221 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
qemu:qemuthrough 4.2.0
redhat:enterprise_linux8.0
debian:debian_linux9.0
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9qemu1:2.8+dfsg-6+deb9u13DLA-2560-1
Debian10qemu1:3.1+dfsg-8+deb10u9DLA-3099-1
Debian12, 13, 14qemu1:5.2+dfsg-4DEBIAN-CVE-2021-20221
Ubuntu18.04:LTSqemu1:2.11+dfsg-1ubuntu7.37UBUNTU-CVE-2021-20221 USN-5010-1
Ubuntu20.04:LTSqemu1:4.2-3ubuntu6.17UBUNTU-CVE-2021-20221 USN-5010-1
UbuntuPro:14.04:LTSqemu2.0.0+dfsg-2ubuntu1.47+esm6UBUNTU-CVE-2021-20221
UbuntuPro:16.04:LTSqemu1:2.5+dfsg-5ubuntu10.51+esm4UBUNTU-CVE-2021-20221
Red Hatadvanced_virtualization:8.2::el8SLOF0:20191022-3.git899d9883.module+el8.2.0+5449+efc036ddRHSA-2021:2521
Red Hatadvanced_virtualization:8.2::el8hivex, perl-hivex, ruby-hivex and 10 more0:1.3.18-20.module+el8.2.0+5588+63a201c3RHSA-2021:2521
Red Hatadvanced_virtualization:8.2::el8libguestfs-winsupport0:8.2-1.module+el8.2.0+5590+82cd80dfRHSA-2021:2521
Red Hatadvanced_virtualization:8.2::el8libiscsi, libiscsi-devel, libiscsi-utils and 3 more0:1.18.0-8.module+el8.2.0+4793+b09dd2fbRHSA-2021:2521
Red Hatadvanced_virtualization:8.2::el8libnbd, nbdfuse, libnbd-devel and 8 more0:1.2.2-1.module+el8.2.0+5644+32ac38d4RHSA-2021:2521
Red Hatadvanced_virtualization:8.2::el8libtpms, libtpms-devel, libtpms-debuginfo and 1 more0:0.7.0-1.20191018gitdc116933b7.module+el8.2.0+4793+b09dd2fbRHSA-2021:2521
Red Hatadvanced_virtualization:8.2::el8libvirt, libvirt-nss, libvirt-docs and 49 more0:6.0.0-25.5.module+el8.2.1+8680+ea98947bRHSA-2021:2521
Red Hatadvanced_virtualization:8.2::el8libvirt-dbus, libvirt-dbus-debuginfo, libvirt-dbus-debugsource0:1.3.0-2.module+el8.2.0+4793+b09dd2fbRHSA-2021:2521
Red Hatadvanced_virtualization:8.2::el8libvirt-python, python3-libvirt, python3-libvirt-debuginfo and 1 more0:6.0.0-1.module+el8.2.0+5453+31b2b136RHSA-2021:2521
Red Hatadvanced_virtualization:8.2::el8nbdkit, nbdkit-devel, nbdkit-server and 24 more0:1.16.2-4.module+el8.2.1+6710+effcb1dfRHSA-2021:2521
Red Hatadvanced_virtualization:8.2::el8netcf, netcf-libs, netcf-devel and 3 more0:0.2.8-12.module+el8.2.0+4793+b09dd2fbRHSA-2021:2521
Red Hatadvanced_virtualization:8.2::el8perl-Sys-Virt, perl-Sys-Virt-debuginfo, perl-Sys-Virt-debugsource0:6.0.0-1.module+el8.2.0+5488+267def79RHSA-2021:2521
51 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 6 moreqemu3.1.1.1-9.24.3SUSE-SU-2021:1245-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP3-LTSS and 3 moreqemu2.9.1-6.50.1SUSE-SU-2021:1894-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 moreqemu2.11.2-9.43.1SUSE-SU-2021:1244-1
SUSELinux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Server Applications 15 SP2qemu4.2.1-11.13.1SUSE-SU-2021:0521-1
SUSELinux Enterprise Point of Sale 11 SP3kvm1.4.2-53.41.1SUSE-SU-2021:14774-1
SUSELinux Enterprise Server 11 SP4-LTSSkvm1.4.2-60.37.1SUSE-SU-2021:14772-1
SUSELinux Enterprise Server 12 SP2-BCLqemu2.6.2-41.65.1SUSE-SU-2021:1829-1
SUSELinux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server for SAP Applications 12 SP4, OpenStack Cloud 9 and 1 moreqemu2.11.2-5.29.1SUSE-SU-2021:1241-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5qemu3.1.1.1-48.2SUSE-SU-2021:1242-1
openSUSELeap 15.2qemu4.2.1-lp152.9.9.2openSUSE-SU-2021:0363-1
openSUSELeap 15.2qemu-linux-user4.2.1-lp152.9.9.3openSUSE-SU-2021:0363-1
openSUSELeap 15.2qemu-testsuite4.2.1-lp152.9.9.5openSUSE-SU-2021:0363-1
openSUSETumbleweedqemu6.1.0-32.1openSUSE-SU-2024:11287-1
AlmaLinux8libguestfs-winsupport8.2-1.module_el8.5.0+2608+72063365ALSA-2021:3061
AlmaLinux8libiscsi, libiscsi-devel, libiscsi-utils1.18.0-8.module_el8.5.0+2608+72063365ALSA-2021:3061
AlmaLinux8libiscsi, libiscsi-devel, libiscsi-utils1.18.0-8.module_el8.6.0+2880+7d9e3703ALSA-2021:3061
AlmaLinux8libnbd, nbdfuse, libnbd-devel and 1 more1.2.2-1.module_el8.5.0+2608+72063365ALSA-2021:3061
AlmaLinux8libvirt-dbus1.3.0-2.module_el8.5.0+2608+72063365ALSA-2021:3061
AlmaLinux8libvirt-dbus1.3.0-2.module_el8.6.0+2880+7d9e3703ALSA-2021:3061
AlmaLinux8nbdkit, nbdkit-devel, nbdkit-server and 11 more1.16.2-4.module_el8.5.0+2608+72063365ALSA-2021:3061
AlmaLinux8netcf, netcf-libs, netcf-devel0.2.8-12.module_el8.5.0+2608+72063365ALSA-2021:3061
AlmaLinux8netcf, netcf-libs, netcf-devel0.2.8-12.module_el8.6.0+2880+7d9e3703ALSA-2021:3061
AlmaLinux8perl-Sys-Virt, python3-libvirt6.0.0-1.module_el8.5.0+2608+72063365ALSA-2021:3061
AlmaLinux8seabios, seabios-bin, seavgabios-bin1.13.0-2.module_el8.5.0+2608+72063365ALSA-2021:3061
AlmaLinux8sgabios, sgabios-bin1:0.20170427git-3.module_el8.5.0+2608+72063365ALSA-2021:3061
2 more for AlmaLinux in the JSON.
Rocky Linux8hivex0:1.3.18-21.module+el8.4.0+642+7e26f5e1RLSA-2021:3061
Rocky Linux8hivex0:1.3.18-21.module+el8.5.0+670+c4aa478cRLSA-2021:3061
Rocky Linux8libguestfs1:1.40.2-27.module+el8.4.0+534+4680a14eRLSA-2021:3061
Rocky Linux8libguestfs-winsupport0:8.2-1.module+el8.4.0+534+4680a14eRLSA-2021:3061
Rocky Linux8libiscsi0:1.18.0-8.module+el8.4.0+534+4680a14eRLSA-2021:3061
Rocky Linux8libiscsi0:1.18.0-8.module+el8.6.0+847+b490afddRLSA-2021:3061
Rocky Linux8libiscsi0:1.18.0-8.module+el8.7.0+1084+97b81f61RLSA-2021:3061
Rocky Linux8libnbd0:1.2.2-1.module+el8.4.0+534+4680a14eRLSA-2021:3061
Rocky Linux8libvirt0:6.0.0-35.1.module+el8.4.0+642+7e26f5e1RLSA-2021:3061
Rocky Linux8libvirt-dbus0:1.3.0-2.module+el8.4.0+534+4680a14eRLSA-2021:3061
Rocky Linux8libvirt-dbus0:1.3.0-2.module+el8.6.0+847+b490afddRLSA-2021:3061
Rocky Linux8libvirt-dbus0:1.3.0-2.module+el8.7.0+1084+97b81f61RLSA-2021:3061
11 more for Rocky Linux in the JSON.
Alpinev3.16, v3.17, v3.18 and 6 moreqemu5.0.0-r0ALPINE-CVE-2021-20221

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This issue does not affect the versions of the qemu-kvm package as shipped with the Red Hat Enterprise Linux 5 and 6.

This issue affects versions of the qemu-kvm-rhev package as shipped with Red Hat Enterprise Linux 7 and qemu-kvm package as shipped with the Red Hat Enterprise Linux 8. Future package updates may address this issue for Red Hat Enterprise Linux 7 and 8.

ProductPackageStateAdvisory
Advanced Virtualization for RHEL 8.2.1virt:8.2-8020120210603194525.863bb0dbFixed 2021-06-22RHSA-2021:2521
Advanced Virtualization for RHEL 8.2.1virt-devel:8.2-8020120210603194525.863bb0dbFixed 2021-06-22RHSA-2021:2521
Advanced Virtualization for RHEL 8.3.1virt:8.3-8030120210325145214.8f6a38feFixed 2021-04-08RHSA-2021:1125
Advanced Virtualization for RHEL 8.3.1virt-devel:8.3-8030120210325145214.8f6a38feFixed 2021-04-08RHSA-2021:1125
Red Hat Enterprise Linux 8virt-devel:rhel-8040020210721215855.522a0ee4Fixed 2021-08-10RHSA-2021:3061
Red Hat Enterprise Linux 8virt:rhel-8040020210721215855.522a0ee4Fixed 2021-08-10RHSA-2021:3061
Red Hat Enterprise Linux 6qemu-kvmNot affected
Red Hat Enterprise Linux 7qemu-kvmNot affected
Red Hat Enterprise Linux 7qemu-kvm-maFix deferred
Red Hat Enterprise Linux 7qemu-kvm-rhevFix deferred
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:8.2/qemu-kvmAffected
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:8.3/qemu-kvmAffected
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:av/qemu-kvmAffected
Red Hat OpenStack Platform 10 (Newton)qemu-kvm-rhevOut of support scope
Red Hat OpenStack Platform 13 (Queens)qemu-kvm-rhevOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-20221.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON