CVE-2021-20181: QEMU Plan 9 File System Time-Of-Check Time-Of-Use Privilege Escalation Vulnerability

Published Feb 9, 2021
·
Updated

A flaw was found in QEMU in the way it handles a list of open file descriptors. Improper synchronization of this list can lead to a use-after-free.

Reference: https://bugs.launchpad.net/qemu/+bug/1911666

Upstream patch: https://git.qemu.org/?p=qemu.git;a=commit;h=89fbea8737e8f7b954745a1ffc4238d377055305

Other sources

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.

Launchpad

This vulnerability allows local attackers to execute arbitrary code on affected installations of QEMU. An attacker must first obtain the ability to execute high-privileged code on the target guest system in order to exploit this vulnerability. The specific flaw exists within the handling of file descriptor maps. The issue results from the lack of proper locking when performing operations on an object. An attacker can leverage this vulnerability to escalate privileges and execute code in the context of the hypervisor.

ZDI

Affected Software

5 affected componentsFixes available
Qemu Qemu
Qemu Qemu<=5.2.0
Debian Debian Linux=9.0
Debian Debian Linux=10.0
debian/qemu
1:5.2+dfsg-11+deb11u31:5.2+dfsg-11+deb11u21:7.2+dfsg-7+deb12u121:9.2.2+ds-11:10.0.0~rc1+ds-2

Event History

Feb 9, 2021
Data Sourced
via Red Hat·08:14 PM
DescriptionSeverityAffected Software
May 13, 2021
CVE Published
via MITRE·03:24 PM
Data Sourced
via MITRE·03:24 PM
DescriptionWeakness
Jan 11, 2024
Data Sourced
via Launchpad·11:53 PM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·02:30 AM
RemedyDescriptionSeverityAffected Software
Feb 26, 2025
Advisory Published
via ZDI·11:55 PM

Frequently Asked Questions

1

What is CVE-2021-20181?

CVE-2021-20181 is a vulnerability in QEMU that allows local attackers to execute arbitrary code on affected installations.

2

How severe is CVE-2021-20181?

CVE-2021-20181 has a severity rating of 7.5 (High).

3

Which software is affected by CVE-2021-20181?

QEMU versions up to and including 5.2.0 are affected. Additionally, Debian Linux versions 9.0 and 10.0 are affected as well.

4

How can an attacker exploit CVE-2021-20181?

To exploit CVE-2021-20181, an attacker must first obtain the ability to execute high-privileged code on the target guest system.

5

Are there any known fixes for CVE-2021-20181?

Yes, fixes for CVE-2021-20181 are available. Please refer to the relevant vendor or distribution for the specific fixes.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203