CVE-2021-20263: Low severity qemu vulnerability

Published Mar 1, 2021
·
Updated

A flaw was found in the virtio-fs shared file system daemon (virtiofsd) of QEMU. The new 'xattrmap' option may cause the 'security.capability' xattr in the guest to not drop on file write, potentially leading to a modified, privileged executable in the guest. In rare circumstances, this flaw could be used by a malicious user to elevate their privileges within the guest.

Other sources

The new '-o xattrmap' option in virtiofsd causes some cases in which the 'security.capability' xattr in the guest isn't dropped on write, potentially leading to a modified privileged executable. For the problem to happen virtiofsd needs to be running with '-o xattr' and '-o xattrmap' (to enable and rename xattrs, respectively). The problem only occurs if 'security.capability' is one of the xattrs that is being renamed. Different caching modes cause different guest behavior: '-o cache=none' makes the issue easy to reproduce but it may also occur with '-o cache=auto' as well.

Virtiofsd 'xattrmap' feature in QEMU 5.2: https://gitlab.com/virtio-fs/qemu/-/commit/6084633dff3a05d6317

Upstream fix: https://git.qemu.org/?p=qemu.git;a=commit;h=e586edcb410543768ef009eaa22a2d9dd4a53846

Red Hat

Affected Software

2 affected componentsFixes available
redhat/qemu<5.2.50
5.2.50
Qemu Qemu>=5.0.0<5.2.50

Event History

Mar 9, 2021
CVE Published
via MITRE·05:17 PM
Data Sourced
via MITRE·05:17 PM
DescriptionWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-20263?

CVE-2021-20263 is a vulnerability found in the virtio-fs shared file system daemon (virtiofsd) of QEMU.

2

What is the impact of CVE-2021-20263?

The vulnerability may allow an attacker to create a modified, privileged executable in the guest system.

3

How can I fix CVE-2021-20263?

Update the QEMU package to version 5.2.50 or apply the provided remedy.

4

What is the severity level of CVE-2021-20263?

The severity level of CVE-2021-20263 is low, with a CVSS score of 3.3.

5

What is the Common Weakness Enumeration (CWE) of CVE-2021-20263?

The CWE of CVE-2021-20263 is CWE-281.

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