CVE-2021-20221
NixOS vulnerability analysis and mitigation

Overview

An out-of-bounds heap buffer access vulnerability (CVE-2021-20221) was discovered in the ARM Generic Interrupt Controller emulator of QEMU up to and including version 4.2.0 on aarch64 platform. The vulnerability was disclosed on February 5, 2021. The issue affects the QEMU emulator when writing an interrupt ID to the controller memory area, as it is not masked to be 4 bits wide (OSS Security).

Technical details

The vulnerability occurs in the ARM Generic Interrupt Controller emulator when writing an interrupt ID to the controller memory area. The technical issue stems from the interrupt ID not being properly masked to 4 bits wide, which can lead to out-of-bounds heap buffer access while updating controller state fields and their subsequent processing. This vulnerability specifically requires an unusual kernel start-up configuration with 'kernel-irqchip=off' and does not affect the default configuration where kernel-irqchip is set to 'on' (OSS Security). The vulnerability has been assigned a CVSS v3.1 base score of 6.0 (Medium) (Ubuntu Security).

Impact

When successfully exploited, this vulnerability could allow a privileged guest user to crash the QEMU process on the host, resulting in a denial of service (DoS) scenario (OSS Security).

Mitigation and workarounds

The vulnerability has been fixed in various distributions through security updates. The fix was implemented in QEMU through a patch that properly masks the interrupt ID (OSS Security). For Debian 9 stretch, the fix was included in version 1:2.8+dfsg-6+deb9u13 (Debian LTS).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61609HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management