cve.bz

CVE-2021-20257 Infinite Loop

6.5 mediumEPSS 0.4%Fix available

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

On this page
An infinite loop flaw was found in the e1000 NIC emulator of the QEMU. This issue occurs while processing transmits (tx) descriptors in process_tx_desc if various descriptor fields are initialized with invalid values. This flaw allows a guest to consume CPU cycles on the host, resulting in a denial of service. The highest threat from this vulnerability is to system availability.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/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; 32nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-835 Loop with Unreachable Exit Condition (Infinite Loop)
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-20257 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20257?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20257?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-20257 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 6.2.0
fedoraproject:fedora33
redhat:openstack_platform10.0
redhat:openstack_platform13.0
redhat:enterprise_linux6.0
redhat:enterprise_linux8.0
redhat:enterprise_linux_for_ibm_z_systems8.0
redhat:enterprise_linux_for_power_little_endian8.0
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9qemu1:2.8+dfsg-6+deb9u14DLA-2623-1
Debian10qemu1:3.1+dfsg-8+deb10u9DLA-3099-1
Debian12, 13, 14qemu1:5.2+dfsg-9DEBIAN-CVE-2021-20257
Ubuntu18.04:LTSqemu1:2.11+dfsg-1ubuntu7.37UBUNTU-CVE-2021-20257 USN-5010-1
Ubuntu20.04:LTSqemu1:4.2-3ubuntu6.17UBUNTU-CVE-2021-20257 USN-5010-1
UbuntuPro:14.04:LTSqemu2.0.0+dfsg-2ubuntu1.47+esm6UBUNTU-CVE-2021-20257
UbuntuPro:16.04:LTSqemu1:2.5+dfsg-5ubuntu10.51+esm4UBUNTU-CVE-2021-20257
Red Hatadvanced_virtualization:8.5::el8SLOF0:20210217-1.module+el8.5.0+10946+35bb3930RHSA-2022:0081
Red Hatadvanced_virtualization:8.5::el8hivex, perl-hivex, ruby-hivex and 10 more0:1.3.18-22.module+el8.5.0+12087+2208d04cRHSA-2022:0081
Red Hatadvanced_virtualization:8.5::el8libguestfs-winsupport0:8.2-2.module+el8.5.0+12739+164806c8RHSA-2022:0081
Red Hatadvanced_virtualization:8.5::el8libiscsi, libiscsi-devel, libiscsi-utils and 3 more0:1.18.0-8.module+el8.4.0+8855+a9e237a9RHSA-2022:0081
Red Hatadvanced_virtualization:8.5::el8libnbd, nbdfuse, libnbd-devel and 9 more0:1.6.0-4.module+el8.5.0+11638+3d8f9850RHSA-2022:0081
Red Hatadvanced_virtualization:8.5::el8libtpms, libtpms-devel, libtpms-debuginfo and 1 more0:0.7.4-6.20201106git2452a24dab.module+el8.5.0+12487+f2fa92b4RHSA-2022:0081
Red Hatadvanced_virtualization:8.5::el8libvirt, libvirt-nss, libvirt-docs and 48 more0:7.6.0-6.module+el8.5.0+13051+7ddbe958RHSA-2022:0081
Red Hatadvanced_virtualization:8.5::el8libvirt-dbus, libvirt-dbus-debuginfo, libvirt-dbus-debugsource0:1.3.0-2.module+el8.4.0+8855+a9e237a9RHSA-2022:0081
Red Hatadvanced_virtualization:8.5::el8libvirt-python, python3-libvirt, python3-libvirt-debuginfo and 1 more0:7.6.0-1.module+el8.5.0+12098+85b3670bRHSA-2022:0081
Red Hatadvanced_virtualization:8.5::el8nbdkit, nbdkit-devel, nbdkit-server and 34 more0:1.24.0-1.module+el8.4.0+9341+96cf2672RHSA-2022:0081
Red Hatadvanced_virtualization:8.5::el8netcf, netcf-libs, netcf-devel and 3 more0:0.2.8-12.module+el8.4.0+8855+a9e237a9RHSA-2022:0081
Red Hatadvanced_virtualization:8.5::el8perl-Sys-Virt, perl-Sys-Virt-debuginfo, perl-Sys-Virt-debugsource0:7.4.0-1.module+el8.5.0+11289+b29e262fRHSA-2022:0081
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 7 moreqemu3.1.1.1-9.27.2SUSE-SU-2021:1918-1
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.47.1SUSE-SU-2021:1240-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
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP3-LTSS and 3 morexen4.9.4_16-3.83.1SUSE-SU-2021:1252-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 High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 moreqemu2.11.2-9.46.1SUSE-SU-2021:1895-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 Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Server Applications 15 SP2qemu4.2.1-11.19.2SUSE-SU-2021:1893-1
SUSELinux Enterprise Point of Sale 11 SP3kvm1.4.2-53.38.1SUSE-SU-2021:14706-1
SUSELinux Enterprise Server 11 SP4-LTSSkvm1.4.2-60.34.1SUSE-SU-2021:14704-1
SUSELinux Enterprise Server 11 SP4-LTSSxen4.4.4_48-61.64.1SUSE-SU-2021:14702-1
9 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.2qemu4.2.1-lp152.9.16.2openSUSE-SU-2021:1043-1
openSUSELeap 15.2qemu, qemu-testsuite, qemu-linux-user4.2.1-lp152.9.12.1openSUSE-SU-2021:0600-1
openSUSELeap 15.2qemu-linux-user4.2.1-lp152.9.16.1openSUSE-SU-2021:1043-1
openSUSELeap 15.2qemu-testsuite4.2.1-lp152.9.16.7openSUSE-SU-2021:1043-1
openSUSETumbleweedqemu6.1.0-32.1openSUSE-SU-2024:11287-1
AlmaLinux8hivex, perl-hivex, ruby-hivex and 2 more1.3.18-21.module_el8.5.0+2608+72063365ALSA-2021:5238
AlmaLinux8libguestfs-winsupport8.2-1.module_el8.5.0+2608+72063365ALSA-2021:5238
AlmaLinux8libiscsi, libiscsi-devel, libiscsi-utils1.18.0-8.module_el8.5.0+2608+72063365ALSA-2021:5238
AlmaLinux8libiscsi, libiscsi-devel, libiscsi-utils1.18.0-8.module_el8.6.0+2880+7d9e3703ALSA-2021:5238
AlmaLinux8libnbd, nbdfuse, libnbd-devel and 1 more1.2.2-1.module_el8.5.0+2608+72063365ALSA-2021:5238
AlmaLinux8libvirt, libvirt-nss, libvirt-docs and 26 more6.0.0-37.module_el8.5.0+2608+72063365ALSA-2021:5238
AlmaLinux8libvirt-dbus1.3.0-2.module_el8.5.0+2608+72063365ALSA-2021:5238
AlmaLinux8libvirt-dbus1.3.0-2.module_el8.6.0+2880+7d9e3703ALSA-2021:5238
AlmaLinux8nbdkit, nbdkit-devel, nbdkit-server and 11 more1.16.2-4.module_el8.5.0+2608+72063365ALSA-2021:5238
AlmaLinux8netcf, netcf-libs, netcf-devel0.2.8-12.module_el8.5.0+2608+72063365ALSA-2021:5238
AlmaLinux8netcf, netcf-libs, netcf-devel0.2.8-12.module_el8.6.0+2880+7d9e3703ALSA-2021:5238
AlmaLinux8perl-Sys-Virt, python3-libvirt6.0.0-1.module_el8.5.0+2608+72063365ALSA-2021:5238
6 more for AlmaLinux in the JSON.
Rocky Linux8hivex0:1.3.18-21.module+el8.4.0+642+7e26f5e1RLSA-2021:5238
Rocky Linux8hivex0:1.3.18-21.module+el8.5.0+670+c4aa478cRLSA-2021:5238
Rocky Linux8libguestfs1:1.40.2-28.module+el8.5.0+670+c4aa478cRLSA-2021:5238
Rocky Linux8libguestfs-winsupport0:8.2-1.module+el8.4.0+534+4680a14eRLSA-2021:5238
Rocky Linux8libiscsi0:1.18.0-8.module+el8.4.0+534+4680a14eRLSA-2021:5238
Rocky Linux8libiscsi0:1.18.0-8.module+el8.6.0+847+b490afddRLSA-2021:5238
Rocky Linux8libiscsi0:1.18.0-8.module+el8.7.0+1084+97b81f61RLSA-2021:5238
Rocky Linux8libnbd0:1.2.2-1.module+el8.4.0+534+4680a14eRLSA-2021:5238
Rocky Linux8libvirt0:6.0.0-37.module+el8.5.0+670+c4aa478cRLSA-2021:5238
Rocky Linux8libvirt-dbus0:1.3.0-2.module+el8.4.0+534+4680a14eRLSA-2021:5238
Rocky Linux8libvirt-dbus0:1.3.0-2.module+el8.6.0+847+b490afddRLSA-2021:5238
Rocky Linux8libvirt-dbus0:1.3.0-2.module+el8.7.0+1084+97b81f61RLSA-2021:5238
11 more for Rocky Linux in the JSON.
Alpinev3.15qemu6.1.1-r0ALPINE-CVE-2021-20257
Azure Linux2qemu6.2.0-2AZL-9068

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; Microsoft's Azure Linux vulnerability data, MIT. 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 affects the version of the qemu-kvm package shipped with Red Hat Enterprise Linux 6, 7 and 8. Future qemu-kvm package updates for Red Hat Enterprise Linux 7 and 8 may address this issue.

This issue has been rated as having Low security impact and is not currently planned to be addressed in future updates of Red Hat Enterprise Linux 5 and 6. For additional information, refer

to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.

ProductPackageStateAdvisory
Advanced Virtualization for RHEL 8.5.0.Zvirt:av-8050020211203164130.c5368500Fixed 2022-01-11RHSA-2022:0081
Advanced Virtualization for RHEL 8.5.0.Zvirt-devel:av-8050020211203164130.c5368500Fixed 2022-01-11RHSA-2022:0081
Red Hat Enterprise Linux 8virt-devel:rhel-8050020211203195115.c5368500Fixed 2021-12-21RHSA-2021:5238
Red Hat Enterprise Linux 8virt:rhel-8050020211203195115.c5368500Fixed 2021-12-21RHSA-2021:5238
Red Hat Enterprise Linux 6qemu-kvmOut of support scope
Red Hat Enterprise Linux 7qemu-kvmFix deferred
Red Hat Enterprise Linux 7qemu-kvm-maNot affected
Red Hat Enterprise Linux 7qemu-kvm-rhevFix deferred
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:8.2/qemu-kvmWill not fix
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:8.3/qemu-kvmWill not fix
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-20257.

References

Check your stackJSON