CVE-2021-20221: Medium severity qemu vulnerability

Published Feb 3, 2021
·
Updated

An out-of-bound heap buffer access via an interrupt ID field resulting from undefined behaviour. The Interrupt ID of the SGI to forward to the specified CPU interfaces. The value of this field is the Interrupt ID, in the range 0-15, for example a value of 0b0011 specifies Interrupt ID 3.

It requires unusual kernel start-up with 'kernel-irqchip=off'.

This issue does not affect default configuration ie. kernel-irqchip=on.

Upstream patch: --------------- -> https://gitlab.com/qemu-project/qemu/-/commit/edfe2eb4360cde4ed5d95bda7777edcb3510f76a

Other sources

An out-of-bounds heap buffer access issue was found in the ARM Generic Interrupt Controller emulator of QEMU up to and including qemu 4.2.0on aarch64 platform. The issue occurs because while writing an interrupt ID to the controller memory area, it is not masked to be 4 bits wide. It may lead to the said issue while updating controller state fields and their subsequent processing. A privileged guest user may use this flaw to crash the QEMU process on the host resulting in DoS scenario.

Launchpad

Affected Software

6 affected componentsFixes available
Qemu Qemu<=4.2.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=8.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:10.0.0~rc2+ds-21:10.0.0~rc3+ds-2

Event History

Feb 3, 2021
Data Sourced
via Red Hat·09:48 AM
DescriptionSeverityAffected Software
May 13, 2021
CVE Published
via MITRE·03:34 PM
Data Sourced
via MITRE·03:34 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
Mar 31, 2025
Data Sourced
via Debian·01:07 AM
DescriptionAffected Software

Frequently Asked Questions

1

What is CVE-2021-20221?

CVE-2021-20221 is an out-of-bounds heap buffer access vulnerability in the ARM Generic Interrupt Controller emulator of QEMU.

2

Which software versions are affected by CVE-2021-20221?

QEMU up to and including version 4.2.0 on the aarch64 platform, Redhat Enterprise Linux 8.0, Debian Debian Linux 9.0 and 10.0.

3

What is the severity of CVE-2021-20221?

CVE-2021-20221 has a severity rating of medium (6).

4

How do I fix CVE-2021-20221 for QEMU?

To fix CVE-2021-20221 for QEMU, you should update to version 4.2.1 or later.

5

Where can I find more information about CVE-2021-20221?

You can find more information about CVE-2021-20221 in the referenced links: [Link 1](https://gitlab.com/qemu-project/qemu/-/commit/edfe2eb4360cde4ed5d95bda7777edcb3510f76a), [Link 2](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1924602), [Link 3](https://bugs.launchpad.net/qemu/+bug/1914353)

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