CVE-2021-28704
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-28704 affects Xen versions 4.7 onwards and involves populate-on-demand (PoD) operations on misaligned Guest Frame Numbers (GFNs). The vulnerability was discovered by Jan Beulich of SUSE and disclosed in November 2021. It specifically affects x86 HVM and PVH guests started in PoD mode, which occurs when a guest's configuration specifies a 'maxmem' value larger than the 'memory' value (Xen Advisory).

Technical details

The vulnerability stems from the implementation of hypercalls for PoD not enforcing proper alignment of base page frame numbers when specified with certain page orders. Specifically, the XENMEM_decrease_reservation operation allows guests to control P2M aspects of individual pages via hypercalls that can act on ranges of pages specified via page orders, resulting in a power-of-2 number of pages. The implementation fails to enforce proper alignment requirements, while some PoD handling code assumes such alignment (Xen Advisory). The vulnerability has been assigned a CVSS v3.1 Base Score of 8.8 HIGH with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H (NVD).

Impact

The vulnerability can allow malicious or buggy guest kernels to mount a Denial of Service (DoS) attack affecting the entire system. Additionally, privilege escalation and information leaks cannot be ruled out as potential impacts (Xen Advisory).

Mitigation and workarounds

As a workaround, systems can avoid starting x86 HVM or PVH guests in populate-on-demand mode. For permanent remediation, patches were released for affected versions, including specific patches for Xen 4.15.x and 4.14.x through 4.12.x (Xen Advisory). Multiple distributions have released security updates, including Debian with version 4.14.3+32-g9de3671772-1~deb11u1 (Debian Advisory).

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-69264CRITICAL9.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2026-21885MEDIUM6.5
  • NixOSNixOS
  • miniflux
NoYesJan 08, 2026

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