Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-20221

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-20221
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 06:10 UTC · Revision 1

Source evidence

CVE-2021-20221

core-osv · Original source

Published 13 May 2021, 16:15 UTC

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.

osv:CVE-2021-20221
Complete source record
{
  "id": "e4fbfcd93c676c0e766d7b64f1bb1df7f41f7468bb76a60dac157186cbc26efb",
  "url": "https://osv.dev/vulnerability/CVE-2021-20221",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-20221",
    "summary": "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.",
    "evidence": "osv:CVE-2021-20221",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-20221",
      "aliases": [
        "CVE-2021-20221"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/qemu/qemu",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "b0ca999a43a22b38158a222233d3f5881648bb4f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:qemu:qemu:*:*:*:*:*:*:arm64:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "4.2.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v4.2.0",
            "v4.2.0-rc5",
            "v4.2.0-rc4",
            "v4.2.0-rc3",
            "v4.2.0-rc2",
            "v4.2.0-rc1",
            "v4.2.0-rc0",
            "v4.1.0",
            "v4.0.0",
            "v4.1.0-rc5",
            "v4.1.0-rc4",
            "v4.1.0-rc3",
            "v4.1.0-rc2",
            "v4.1.0-rc1",
            "v4.1.0-rc0",
            "v4.0.0-rc4",
            "v4.0.0-rc3",
            "v4.0.0-rc2",
            "v4.0.0-rc1",
            "v3.1.0",
            "v4.0.0-rc0",
            "v3.0.0",
            "v3.1.0-rc5",
            "v3.1.0-rc4",
            "v3.1.0-rc3",
            "v3.1.0-rc2",
            "v3.1.0-rc1",
            "v3.1.0-rc0",
            "v3.0.0-rc4",
            "v3.0.0-rc3",
            "v3.0.0-rc2",
            "v3.0.0-rc1",
            "v3.0.0-rc0",
            "v2.12.0",
            "v2.12.0-rc4",
            "v2.12.0-rc3",
            "v2.12.0-rc2",
            "v2.12.0-rc1",
            "v2.12.0-rc0",
            "v2.11.0",
            "v2.11.0-rc5",
            "v2.11.0-rc4",
            "v2.11.0-rc3",
            "v2.11.0-rc2",
            "v2.11.0-rc1",
            "v2.11.0-rc0",
            "v2.10.0",
            "v2.10.0-rc4",
            "v2.10.0-rc3",
            "v2.10.0-rc2",
            "v2.10.0-rc1",
            "v2.9.0",
            "v2.10.0-rc0",
            "v2.9.0-rc5",
            "v2.9.0-rc4",
            "v2.9.0-rc3",
            "v2.9.0-rc2",
            "v2.9.0-rc1",
            "v2.8.0",
            "v2.9.0-rc0",
            "v2.8.0-rc4",
            "v2.8.0-rc3",
            "v2.8.0-rc2",
            "v2.8.0-rc1",
            "v2.8.0-rc0",
            "v2.7.0",
            "v2.7.0-rc5",
            "v2.7.0-rc4",
            "v2.7.0-rc3",
            "v2.7.0-rc2",
            "v2.6.0",
            "v2.7.0-rc1",
            "v2.7.0-rc0",
            "v2.6.0-rc5",
            "v2.6.0-rc4",
            "v2.6.0-rc3",
            "v2.6.0-rc2",
            "v2.6.0-rc1",
            "v2.6.0-rc0",
            "v2.5.0",
            "v2.5.0-rc4",
            "v2.5.0-rc3",
            "v2.5.0-rc2",
            "v2.5.0-rc1",
            "v2.5.0-rc0",
            "v2.4.0",
            "v2.4.0-rc4",
            "v2.4.0-rc3",
            "v2.3.0",
            "v2.4.0-rc2",
            "v2.4.0-rc1",
            "v2.4.0-rc0",
            "v2.3.0-rc4",
            "v2.3.0-rc3",
            "v2.3.0-rc2",
            "v2.3.0-rc1",
            "v2.3.0-rc0",
            "v2.2.0",
            "v2.2.0-rc3",
            "v2.2.0-rc5",
            "v2.2.0-rc4",
            "v2.2.0-rc2",
            "v2.2.0-rc1",
            "v2.2.0-rc0",
            "v2.1.0",
            "v2.1.0-rc5",
            "v2.1.0-rc4",
            "v2.1.0-rc2",
            "v2.1.0-rc3",
            "v2.0.0",
            "v2.1.0-rc1",
            "v2.1.0-rc0",
            "v2.0.0-rc3",
            "v2.0.0-rc2",
            "v2.0.0-rc1",
            "v2.0.0-rc0",
            "v1.7.0",
            "v1.7.0-rc2",
            "v1.7.0-rc1",
            "v1.7.0-rc0",
            "v1.6.0",
            "v1.6.0-rc3",
            "v1.6.0-rc2",
            "v1.6.0-rc1",
            "v1.6.0-rc0",
            "v1.5.0",
            "v1.5.0-rc3",
            "v1.5.0-rc2",
            "v1.5.0-rc1",
            "v1.5.0-rc0",
            "v1.4.0",
            "v1.4.0-rc2",
            "v1.4.0-rc1",
            "v1.4.0-rc0",
            "v1.3.0",
            "v1.3.0-rc2",
            "v1.3.0-rc1",
            "v1.3.0-rc0",
            "v1.2.0",
            "v1.2.0-rc3",
            "v1.2.0-rc2",
            "v1.2.0-rc1",
            "v1.2.0-rc0",
            "v1.1.0",
            "v1.1.0-rc4",
            "v1.1.0-rc3",
            "v1.1.0-rc2",
            "v1.1-rc2",
            "v1.1-rc1",
            "v1.1-rc0",
            "v1.0",
            "v1.0-rc4",
            "v1.0-rc3",
            "v1.0-rc2",
            "v1.0-rc1",
            "v1.0-rc0",
            "v0.14.0-rc0",
            "v0.13.0-rc0",
            "v0.12.0-rc0",
            "v0.11.0-rc0",
            "v0.5.0",
            "v0.4.4",
            "v0.4.3",
            "v0.4.2",
            "v0.4.1",
            "v0.4.0",
            "v0.3.0",
            "v0.2.0",
            "v0.1.6",
            "v0.1.5",
            "v0.1.4",
            "v0.1.3",
            "v0.1.1",
            "v0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-20221.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://gitlab.com/qemu-project/qemu",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "b0ca999a43a22b38158a222233d3f5881648bb4f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:qemu:qemu:*:*:*:*:*:*:arm64:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "4.2.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v4.2.0",
            "v4.2.0-rc5",
            "v4.2.0-rc4",
            "v4.2.0-rc3",
            "v4.2.0-rc2",
            "v4.2.0-rc1",
            "v4.2.0-rc0",
            "v4.1.0",
            "v4.0.0",
            "v4.1.0-rc5",
            "v4.1.0-rc4",
            "v4.1.0-rc3",
            "v4.1.0-rc2",
            "v4.1.0-rc1",
            "v4.1.0-rc0",
            "v4.0.0-rc4",
            "v4.0.0-rc3",
            "v4.0.0-rc2",
            "v4.0.0-rc1",
            "v3.1.0",
            "v4.0.0-rc0",
            "v3.0.0",
            "v3.1.0-rc5",
            "v3.1.0-rc4",
            "v3.1.0-rc3",
            "v3.1.0-rc2",
            "v3.1.0-rc1",
            "v3.1.0-rc0",
            "v3.0.0-rc4",
            "v3.0.0-rc3",
            "v3.0.0-rc2",
            "v3.0.0-rc1",
            "v3.0.0-rc0",
            "v2.12.0",
            "v2.12.0-rc4",
            "v2.12.0-rc3",
            "v2.12.0-rc2",
            "v2.12.0-rc1",
            "v2.12.0-rc0",
            "v2.11.0",
            "v2.11.0-rc5",
            "v2.11.0-rc4",
            "v2.11.0-rc3",
            "v2.11.0-rc2",
            "v2.11.0-rc1",
            "v2.11.0-rc0",
            "v2.10.0",
            "v2.10.0-rc4",
            "v2.10.0-rc3",
            "v2.10.0-rc2",
            "v2.10.0-rc1",
            "v2.9.0",
            "v2.10.0-rc0",
            "v2.9.0-rc5",
            "v2.9.0-rc4",
            "v2.9.0-rc3",
            "v2.9.0-rc2",
            "v2.9.0-rc1",
            "v2.8.0",
            "v2.9.0-rc0",
            "v2.8.0-rc4",
            "v2.8.0-rc3",
            "v2.8.0-rc2",
            "v2.8.0-rc1",
            "v2.8.0-rc0",
            "v2.7.0",
            "v2.7.0-rc5",
            "v2.7.0-rc4",
            "v2.7.0-rc3",
            "v2.7.0-rc2",
            "v2.6.0",
            "v2.7.0-rc1",
            "v2.7.0-rc0",
            "v2.6.0-rc5",
            "v2.6.0-rc4",
            "v2.6.0-rc3",
            "v2.6.0-rc2",
            "v2.6.0-rc1",
            "v2.6.0-rc0",
            "v2.5.0",
            "v2.5.0-rc4",
            "v2.5.0-rc3",
            "v2.5.0-rc2",
            "v2.5.0-rc1",
            "v2.5.0-rc0",
            "v2.4.0",
            "v2.4.0-rc4",
            "v2.4.0-rc3",
            "v2.3.0",
            "v2.4.0-rc2",
            "v2.4.0-rc1",
            "v2.4.0-rc0",
            "v2.3.0-rc4",
            "v2.3.0-rc3",
            "v2.3.0-rc2",
            "v2.3.0-rc1",
            "v2.3.0-rc0",
            "v2.2.0",
            "v2.2.0-rc3",
            "v2.2.0-rc5",
            "v2.2.0-rc4",
            "v2.2.0-rc2",
            "v2.2.0-rc1",
            "v2.2.0-rc0",
            "v2.1.0",
            "v2.1.0-rc5",
            "v2.1.0-rc4",
            "v2.1.0-rc2",
            "v2.1.0-rc3",
            "v2.0.0",
            "v2.1.0-rc1",
            "v2.1.0-rc0",
            "v2.0.0-rc3",
            "v2.0.0-rc2",
            "v2.0.0-rc1",
            "v2.0.0-rc0",
            "v1.7.0",
            "v1.7.0-rc2",
            "v1.7.0-rc1",
            "v1.7.0-rc0",
            "v1.6.0",
            "v1.6.0-rc3",
            "v1.6.0-rc2",
            "v1.6.0-rc1",
            "v1.6.0-rc0",
            "v1.5.0",
            "v1.5.0-rc3",
            "v1.5.0-rc2",
            "v1.5.0-rc1",
            "v1.5.0-rc0",
            "v1.4.0",
            "v1.4.0-rc2",
            "v1.4.0-rc1",
            "v1.4.0-rc0",
            "v1.3.0",
            "v1.3.0-rc2",
            "v1.3.0-rc1",
            "v1.3.0-rc0",
            "v1.2.0",
            "v1.2.0-rc3",
            "v1.2.0-rc2",
            "v1.2.0-rc1",
            "v1.2.0-rc0",
            "v1.1.0",
            "v1.1.0-rc4",
            "v1.1.0-rc3",
            "v1.1.0-rc2",
            "v1.1-rc2",
            "v1.1-rc1",
            "v1.1-rc0",
            "v1.0",
            "v1.0-rc4",
            "v1.0-rc3",
            "v1.0-rc2",
            "v1.0-rc1",
            "v1.0-rc0",
            "v0.14.0-rc0",
            "v0.13.0-rc0",
            "v0.12.0-rc0",
            "v0.11.0-rc0",
            "v0.5.0",
            "v0.4.4",
            "v0.4.3",
            "v0.4.2",
            "v0.4.1",
            "v0.4.0",
            "v0.3.0",
            "v0.2.0",
            "v0.1.6",
            "v0.1.5",
            "v0.1.4",
            "v0.1.3",
            "v0.1.1",
            "v0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-20221.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:36.273367545Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2021/02/msg00024.html",
        "https://lists.debian.org/debian-lts-announce/2022/09/msg00008.html",
        "https://security.netapp.com/advisory/ntap-20210708-0005/",
        "https://bugzilla.redhat.com/show_bug.cgi?id=1924601"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  },
                  {
                    "introduced": "10.0"
                  },
                  {
                    "last_affected": "10.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:-:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:advanced_virtualization:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  },
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-20221",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 433925,
  "published_at": "2021-05-13T16:15:07.697+00:00"
}