cve.bz

CVE-2021-20181 Race Condition

7.5 highEPSS 0.3%Fix available

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

On this page
A race condition flaw was found in the 9pfs server implementation of QEMU up to and including 5.2.0. This flaw allows a malicious 9p client to cause a use-after-free error, potentially escalating their privileges on the system. The highest threat from this vulnerability is to confidentiality, integrity as well as system availability.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/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; 27th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
OWASP Top 10
A06:2025 Insecure Design
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-20181 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20181?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20181?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-20181 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 5.2.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-20181
Ubuntu16.04:LTSqemu1:2.5+dfsg-5ubuntu10.49UBUNTU-CVE-2021-20181 USN-4725-1
Ubuntu18.04:LTSqemu1:2.11+dfsg-1ubuntu7.35UBUNTU-CVE-2021-20181 USN-4725-1
Ubuntu20.04:LTSqemu1:4.2-3ubuntu6.12UBUNTU-CVE-2021-20181 USN-4725-1
UbuntuPro:14.04:LTSqemu2.0.0+dfsg-2ubuntu1.47+esm6UBUNTU-CVE-2021-20181
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
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.38.1SUSE-SU-2021:14706-1
SUSELinux Enterprise Server 11 SP4-LTSSkvm1.4.2-60.34.1SUSE-SU-2021:14704-1
SUSELinux Enterprise Server 12 SP2-BCLqemu2.6.2-41.62.1SUSE-SU-2021:1305-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
Alpinev3.16, v3.17, v3.18 and 6 moreqemu6.0.0-r1ALPINE-CVE-2021-20181

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue does not affect the versions of `qemu-kvm` as shipped with Red Hat products, as they do not include support for the virtio 9p backend.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6qemu-kvmNot affected
Red Hat Enterprise Linux 7qemu-kvmNot affected
Red Hat Enterprise Linux 7qemu-kvm-maNot affected
Red Hat Enterprise Linux 8virt:rhel/qemu-kvmNot affected
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:8.2/qemu-kvmNot affected
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:8.3/qemu-kvmNot affected
Red Hat Enterprise Linux 9qemu-kvmNot affected
Red Hat OpenStack Platform 10 (Newton)qemu-kvm-rhevNot affected
Red Hat OpenStack Platform 13 (Queens)qemu-kvm-rhevNot affected
Red Hat Virtualization 4qemu-kvm-rhevNot affected

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

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High
  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High

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

References

Check your stackJSON