Mobile & Hardened Systems

Qubes OS ships Xen 4.19.6-7 to fix grant unmapping flaw in HVM and PVH qubes (XSA-543)

Key Takeaway

Xen's grant unmapping path failed to distinguish read-only from writable mappings for HVM/PVH guests, letting a compromised qube retain a writable mapping Xen no longer accounts for and potentially escalate toward dom0.

Summary

The Qubes Security Team has published QSB-126 covering XSA-543 (CVE-2026-142564), a Xen flaw in how x86 HVM and PVH guests unmap grant mappings. When a guest asks Xen to remove a grant mapping, the hypervisor verifies that the supplied address refers to a mapping of the correct page but does not check whether that mapping is the read-only or the writable variant. A domain that holds the same page mapped both ways can therefore request removal of its writable mapping while naming the read-only one, leaving Xen's accounting without a writable mapping even though the guest still possesses it.

All supported Qubes OS releases are affected. The bulletin states that a compromised HVM or PVH qube could attempt to exploit the bug to compromise other qubes, including dom0. Qubes 4.3 users receive the fix through Xen packages version 4.19.6-7 in dom0, which move from the security-testing repositories to the stable repositories after community testing; installing them requires a dom0 restart, and Anti Evil Maid users must reseal their secret passphrase because PCR18+19 change when Xen binaries are updated.

How the grant unmapping check fails in Xen

  • Grant mapping semantics: Xen grants let one domain map another domain's pages either read-only or writable; the unmap path is supposed to verify the guest-supplied address corresponds to a grant mapping of the right page, but XSA-543 shows the read-only versus writable distinction was not enforced for x86 HVM and PVH guests.
  • Accounting desynchronization: A guest holding the same page mapped both writable and read-only can name the read-only mapping when asking Xen to drop the writable one, so the hypervisor stops tracking a writable mapping that the guest still retains.
  • Prior art: The advisory notes this is the same class of problem that XSA-234 previously fixed for PV guests, meaning the HVM/PVH path lagged behind the earlier PV correction.
  • Qubes exposure: Because Qubes isolates workloads as HVM or PVH qubes, a compromised qube on an affected system can attempt to leverage the retained writable mapping against other qubes, up to and including dom0.
  • Remediation mechanics: The fix ships as Xen 4.19.6-7 in dom0 for Qubes 4.3, requires a dom0 reboot to take effect, and invalidates Anti Evil Maid PCR18+19 measurements, so the secret passphrase must be resealed.

Why it matters

Qubes OS depends on Xen's grant mechanism as the memory-sharing primitive between qubes, so a flaw in unmap accounting directly weakens the compartmentalization model that defines the distribution. The bulletin also illustrates the lag between a Xen Project advisory and a tested dom0 package: users who keep security-testing repositories disabled wait one to two weeks for the stable migration unless the release is expedited. Administrators running Qubes 4.3 should schedule the dom0 restart and, where Anti Evil Maid is deployed, plan the PCR reseal as part of the update.

What to do

  • Update Qubes OS via the Qubes Update tool or command-line equivalents to install Xen packages version 4.19.6-7 in dom0.
  • Restart dom0 to apply the security updates.
  • If you use Anti Evil Maid, reseal your secret passphrase to the new PCR values.

Original reference: www.qubes-os.org →