cve.bz

CVE-2020-27821 Out-of-bounds Write

6.0 mediumEPSS 0.4%Fix available

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

On this page
A flaw was found in the memory management API of QEMU during the initialization of a memory region cache. This issue could lead to an out-of-bounds write access to the MSI-X table while performing MMIO operations. A guest user may abuse this flaw to crash the QEMU process on the host, resulting in a denial of service. This flaw affects QEMU versions prior to 5.2.0.

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.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 31st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
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-2020-27821 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-27821?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-27821?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-2020-27821 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:qemubefore 5.2.0
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10qemu1:3.1+dfsg-8+deb10u9DLA-3099-1
Debian12, 13, 14qemu1:5.2+dfsg-3DEBIAN-CVE-2020-27821
Ubuntu16.04:LTSqemu1:2.5+dfsg-5ubuntu10.49USN-4725-1
Ubuntu18.04:LTSqemu1:2.11+dfsg-1ubuntu7.35USN-4725-1
Ubuntu20.04:LTSqemu1:4.2-3ubuntu6.12UBUNTU-CVE-2020-27821 USN-4725-1
Red Hatadvanced_virtualization:8.3::el8SLOF0:20200717-1.gite18ddad8.module+el8.3.0+7638+07cf13d2RHBA-2021:0639
Red Hatadvanced_virtualization:8.3::el8hivex, perl-hivex, ruby-hivex and 10 more0:1.3.18-20.module+el8.3.0+6124+819ee737RHBA-2021:0639
Red Hatadvanced_virtualization:8.3::el8libguestfs-winsupport0:8.2-1.module+el8.3.0+6124+819ee737RHBA-2021:0639
Red Hatadvanced_virtualization:8.3::el8libiscsi, libiscsi-devel, libiscsi-utils and 3 more0:1.18.0-8.module+el8.3.0+6124+819ee737RHBA-2021:0639
Red Hatadvanced_virtualization:8.3::el8libnbd, nbdfuse, libnbd-devel and 9 more0:1.4.0-2.module+el8.3.0+7998+6ff5e5abRHBA-2021:0639
Red Hatadvanced_virtualization:8.3::el8libtpms, libtpms-devel, libtpms-debuginfo and 1 more0:0.7.4-1.20201106git2452a24dab.module+el8.3.1+8772+a3fdeccdRHBA-2021:0639
Red Hatadvanced_virtualization:8.3::el8libvirt, libvirt-nss, libvirt-docs and 49 more0:6.6.0-13.module+el8.3.1+9548+0a8fede5RHBA-2021:0639
Red Hatadvanced_virtualization:8.3::el8libvirt-dbus, libvirt-dbus-debuginfo, libvirt-dbus-debugsource0:1.3.0-2.module+el8.3.0+6124+819ee737RHBA-2021:0639
Red Hatadvanced_virtualization:8.3::el8libvirt-python, python3-libvirt, python3-libvirt-debuginfo and 1 more0:6.6.0-2.module+el8.3.1+9800+33087bb5RHBA-2021:0639
Red Hatadvanced_virtualization:8.3::el8nbdkit, nbdkit-devel, nbdkit-server and 34 more0:1.22.0-2.module+el8.3.0+8203+18ecf00eRHBA-2021:0639
Red Hatadvanced_virtualization:8.3::el8netcf, netcf-libs, netcf-devel and 3 more0:0.2.8-12.module+el8.3.0+6124+819ee737RHBA-2021:0639
Red Hatadvanced_virtualization:8.3::el8perl-Sys-Virt, perl-Sys-Virt-debuginfo, perl-Sys-Virt-debugsource0:6.3.0-1.module+el8.3.0+6995+6794eec3RHBA-2021:0639
31 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
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Server Applications 15 SP2qemu4.2.1-11.16.3SUSE-SU-2021:1243-1
SUSELinux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Server Applications 15 SP3qemu5.2.0-17.1SUSE-SU-2021:1942-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.2qemu, qemu-testsuite, qemu-linux-user4.2.1-lp152.9.12.1openSUSE-SU-2021:0600-1
openSUSELeap 15.3qemu5.2.0-17.1openSUSE-SU-2021:1942-1
openSUSETumbleweedqemu6.1.0-32.1openSUSE-SU-2024:11287-1
AlmaLinux8hivex, perl-hivex, ruby-hivex and 4 more1.3.18-20.module_el8.3.0+2048+e7a0a3eaALSA-2021:1762
AlmaLinux8libguestfs-winsupport8.2-1.module_el8.3.0+2048+e7a0a3eaALSA-2021:1762
AlmaLinux8libguestfs-winsupport8.2-1.module_el8.5.0+2608+72063365ALSA-2021:1762
AlmaLinux8libiscsi, libiscsi-devel, libiscsi-utils1.18.0-8.module_el8.3.0+2048+e7a0a3eaALSA-2021:1762
AlmaLinux8libiscsi, libiscsi-devel, libiscsi-utils1.18.0-8.module_el8.5.0+2608+72063365ALSA-2021:1762
AlmaLinux8libiscsi, libiscsi-devel, libiscsi-utils1.18.0-8.module_el8.6.0+2880+7d9e3703ALSA-2021:1762
AlmaLinux8libnbd, nbdfuse, libnbd-devel and 3 more1.2.2-1.module_el8.3.0+2048+e7a0a3eaALSA-2021:1762
AlmaLinux8libnbd, nbdfuse, libnbd-devel and 1 more1.2.2-1.module_el8.5.0+2608+72063365ALSA-2021:1762
AlmaLinux8libvirt-dbus1.3.0-2.module_el8.3.0+2048+e7a0a3eaALSA-2021:1762
AlmaLinux8libvirt-dbus1.3.0-2.module_el8.5.0+2608+72063365ALSA-2021:1762
AlmaLinux8libvirt-dbus1.3.0-2.module_el8.6.0+2880+7d9e3703ALSA-2021:1762
AlmaLinux8nbdkit, nbdkit-devel, nbdkit-server and 11 more1.16.2-4.module_el8.5.0+2608+72063365ALSA-2021:1762
11 more for AlmaLinux in the JSON.
Rocky Linux8hivex0:1.3.18-20.module+el8.4.0+534+4680a14eRLSA-2021:1762
Rocky Linux8libguestfs1:1.40.2-27.module+el8.4.0+534+4680a14eRLSA-2021:1762
Rocky Linux8libguestfs-winsupport0:8.2-1.module+el8.4.0+534+4680a14eRLSA-2021:1762
Rocky Linux8libiscsi0:1.18.0-8.module+el8.4.0+534+4680a14eRLSA-2021:1762
Rocky Linux8libiscsi0:1.18.0-8.module+el8.6.0+847+b490afddRLSA-2021:1762
Rocky Linux8libiscsi0:1.18.0-8.module+el8.7.0+1084+97b81f61RLSA-2021:1762
Rocky Linux8libnbd0:1.2.2-1.module+el8.4.0+534+4680a14eRLSA-2021:1762
Rocky Linux8libvirt0:6.0.0-35.module+el8.4.0+534+4680a14eRLSA-2021:1762
Rocky Linux8libvirt-dbus0:1.3.0-2.module+el8.4.0+534+4680a14eRLSA-2021:1762
Rocky Linux8libvirt-dbus0:1.3.0-2.module+el8.6.0+847+b490afddRLSA-2021:1762
Rocky Linux8libvirt-dbus0:1.3.0-2.module+el8.7.0+1084+97b81f61RLSA-2021:1762
Rocky Linux8nbdkit0:1.16.2-4.module+el8.4.0+534+4680a14eRLSA-2021:1762
10 more for Rocky Linux in the JSON.
Alpinev3.16, v3.17, v3.18 and 6 moreqemu5.2.0-r0ALPINE-CVE-2020-27821

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 Moderate.

Red Hat's statement

This flaw did not affect the versions of `qemu-kvm` as shipped with Red Hat Enterprise Linux 6 and 7, as they did not include support for the MemoryRegionCache structure.

ProductPackageStateAdvisory
Advanced Virtualization for RHEL 8.3.1virt:8.3-8030120210211160750.71132145Fixed 2021-02-22RHBA-2021:0639
Advanced Virtualization for RHEL 8.3.1virt-devel:8.3-8030120210211160750.71132145Fixed 2021-02-22RHBA-2021:0639
Red Hat Enterprise Linux 8virt-devel:rhel-8040020210317013608.9f9e2e7eFixed 2021-05-18RHSA-2021:1762
Red Hat Enterprise Linux 8virt:rhel-8040020210317013608.9f9e2e7eFixed 2021-05-18RHSA-2021:1762
Red Hat Enterprise Linux 5kvmNot affected
Red Hat Enterprise Linux 6qemu-kvmNot affected
Red Hat Enterprise Linux 7qemu-kvmNot affected
Red Hat Enterprise Linux 7qemu-kvm-maOut of support scope
Red Hat Enterprise Linux 7qemu-kvm-rhevOut of support scope
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-kvmNot affected
Red Hat Enterprise Linux 9qemu-kvmNot affected
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-2020-27821.

References

Check your stackJSON