CVE-2022-42335
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-42335 is a vulnerability in Xen's x86 shadow paging system that was publicly disclosed on April 25, 2023. The vulnerability affects Xen version 4.17 running on x86 systems where host-assisted address translation is necessary but Hardware Assisted Paging (HAP) is unavailable. In such environments, Xen runs guests in shadow mode, where a too lax check in one of the hypervisor routines used for shadow page handling allows a guest with a PCI device passed through to cause the hypervisor to access an arbitrary pointer partially under guest control (Xen Advisory).

Technical details

The vulnerability exists in environments where Xen uses shadow mode for guest memory management. The issue stems from insufficient validation in hypervisor routines handling shadow pages, specifically when dealing with PCI device pass-through. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, indicating local access requirements but high potential impact (NVD).

Impact

The vulnerability can lead to Denial of Service conditions and potentially other security issues. More critically, privilege escalation cannot be ruled out as a potential impact. The vulnerability only affects systems where HVM guests are running with shadow paging and have PCI devices passed through (Xen Advisory).

Mitigation and workarounds

Two primary mitigation strategies are available: 1) Not passing through PCI devices to HVM guests, or 2) Running HVM guests only in HAP (Hardware Assisted Paging) mode. For permanent remediation, administrators should apply the provided patch (xsa430.patch) to affected systems. The patch has been prepared for stable branches, though it may not apply cleanly to the most recent release tarball (Xen Advisory).

Community reactions

The vulnerability was discovered by Roger Pau Monné of XenServer, and has been addressed by major distributions including Fedora and Gentoo. Fedora 38 released an update (xen-4.17.0-9.fc38) to address this vulnerability (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-2026-22783HIGH8.1
  • NixOSNixOS
  • iris
NoYesJan 12, 2026
CVE-2026-0821MEDIUM6.9
  • NixOSNixOS
  • quickjs
NoNoJan 10, 2026
CVE-2025-68949MEDIUM5.3
  • NixOSNixOS
  • n8n
NoYesJan 13, 2026
CVE-2026-22784LOW2.3
  • NixOSNixOS
  • lychee
NoYesJan 12, 2026
CVE-2026-23497LOW1.3
  • NixOSNixOS
  • learning
NoYesJan 14, 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