CVE-2022-26356
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-26356 (XSA-397) is a vulnerability in the Xen hypervisor discovered by Roger Pau Monné of Citrix and publicly disclosed on April 5, 2022. The vulnerability affects all Xen versions from at least 4.0 onwards, specifically impacting x86 systems using Hardware Assisted Paging (HAP) (Xen Advisory).

Technical details

The vulnerability stems from a race condition between dirty vram tracking and paging log dirty hypercalls. Specifically, the activation of log dirty mode through XENDMOPtrackdirtyvram (previously HVMOPtrackdirtyvram before Xen 4.9) can race with ongoing log dirty hypercalls. When a call to XENDMOPtrackdirtyvram occurs while another CPU is dismantling structures from a previously enabled log dirty mode (XENDOMCTLSHADOWOP_OFF), entries can be added to already freed slots due to lack of proper mutual exclusion locking (Xen Advisory).

Impact

The vulnerability allows an attacker to cause Xen to leak memory, which can eventually lead to a Denial of Service (DoS) condition affecting the entire host system. The impact is limited to domains controlling x86 HVM guests using Hardware Assisted Paging, typically affecting domains that run device models on behalf of guests (Xen Advisory).

Mitigation and workarounds

Several mitigation options are available: using only PV or PVH guests, running HVM guests in shadow mode, or applying the provided security patches. Patches were released for multiple Xen versions including 4.12.x, 4.14.x, and 4.16.x. Various Linux distributions have also released updated packages to address this vulnerability (Debian Advisory, Fedora Update).

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-12819HIGH8.1
  • NixOSNixOS
  • pgbouncer
NoYesDec 03, 2025
CVE-2025-20777MEDIUM6.7
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-65105MEDIUM5.3
  • NixOSNixOS
  • apptainer
NoYesDec 02, 2025
CVE-2025-20789MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-20788MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 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