Qubes OS QSB-125: Xen p2m flush ordering flaw (XSA-535) lets compromised Intel qubes attack dom0
Xen frees pages removed from the p2m before the deferred TLB flush completes, so stale TLB entries let a compromised HVM/PVH qube on Intel HAP systems reach memory that has already been reused.
Summary
The Qubes Security Team published Qubes Security Bulletin 125 on 2026-11-26, covering Xen advisory XSA-535, "x86: Incorrect ordering of page-freeing and p2m flush." The flaw is tracked as CVE-2026-119781, CVE-2026-119782 and CVE-2026-119783. For HVM and PVH guests running on HAP, Xen batches the TLB flush that follows a p2m change until the p2m lock is released, but some page-removal paths drop the final page reference before that flush happens. The page is then freed and can be reused while stale TLB entries still let the guest access it.
All supported Qubes OS releases are affected, but only Intel systems. A compromised PVH or HVM qube could try to exploit the ordering bug to compromise other qubes, including dom0. Qubes 4.3 users get Xen packages version 4.19.6-6 in dom0; the update lands in security-testing first and migrates to the stable repositories after community testing, typically within one to two weeks. Installing the packages requires a dom0 restart, and Anti Evil Maid users must reseal their secret passphrase to the new PCR18+19 values because the Xen binaries changed.
How the p2m flush ordering bug works in Xen
- Deferred TLB flush: Xen postpones the TLB invalidation that follows a p2m change until the p2m lock is released, so multiple changes inside one locked region produce a single flush instead of one per update.
- Premature page release: Certain paths that remove a page from the p2m drop the last reference to that page before the deferred flush runs, so the page returns to the allocator while the guest's stale TLB entries still map it.
- Attack surface: The stale mapping lets an HVM or PVH guest on HAP read or write memory that has since been handed to another owner, which is the primitive a compromised qube needs to reach other qubes or dom0.
- Operational follow-up: The update must be installed through the Qubes Update tool or its CLI equivalents, dom0 must be restarted, and Anti Evil Maid users must reseal their passphrase because PCR18+19 change when Xen binaries are updated.
Why it matters
Qubes OS relies on Xen's isolation guarantees as its entire security model, so a p2m/TLB ordering bug that crosses qube boundaries is a direct threat to the compartmentalization users depend on. Because the fix lives in dom0's Xen packages rather than in templates, administrators must plan a dom0 reboot and, for Anti Evil Maid setups, a reseal of the passphrase. The security-testing-first rollout also means users who leave those repositories disabled will wait one to two weeks for the stable migration unless the Qubes team expedites it.
What to do
- Update via the Qubes Update tool or its command-line equivalents to install Xen packages version 4.19.6-6 in dom0.
- Restart dom0 to apply the security updates.
- If you use Anti Evil Maid, reseal your secret passphrase to the new PCR18+19 values.
Original reference: www.qubes-os.org →