Xen Security Advisory 507 v2 (CVE-2026-62434) - PoD: Don't try to reclaim special pages
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Xen Security Advisory CVE-2026-62434 / XSA-507
version 2
PoD: Don't try to reclaim special pages
UPDATES IN VERSION 2
====================
Public release.
ISSUE DESCRIPTION
=================
A guest started with Populated on Demand enabled (PoD) can attempt to reclaim pages which aren't regular guest RAM. This can cause corruption of memory management state in Xen.
IMPACT
======
A buggy or malicious guest can cause corruption of Xen's state, leading to crashes or other malfunctions. Information leak and privilege escalation cannot be ruled out.
VULNERABLE SYSTEMS
==================
All Xen versions from 3.4 onwards are vulnerable. Xen versions 3.3 and earlier are not vulnerable.
Only x86 systems are vulnerable.
Only x86 HVM and PVH guests started in populate-on-demand mode are believed to be able to leverage the vulnerability. Populate-on-demand mode is activated when the guest's xl configuration file specifies a "maxmem" value which is larger than the "memory" value.
MITIGATION
==========
Running only PV guests or HVM/PVH guests without PoD will avoid the vulnerability.
RESOLUTION
==========
Applying the attached patch resolves this issue.
Note that patches for released versions are generally prepared to apply to the stable branches, and may not apply cleanly to the most recent release tarball. Downstreams are encouraged to update to the tip of the stable branch before applying these patches.
xsa507.patch xen-unstable - Xen 4.17.x
$ sha256sum xsa507* 41485ddf0912cfa53fa05e236aa27c3c6490919ac2dab5b9f57ed69f5b38f60a xsa507.patch $
DEPLOYMENT DURING EMBARGO
=========================
Deployment of the patches and/or mitigations described above (or others which are substantially similar) is permitted during the embargo, even on public-facing systems with untrusted guest users and administrators.
But: Distribution of updated software is prohibited (except to other members of the predisclosure list).
Predisclosure list members who wish to deploy significantly different patches and/or mitigations, please contact the Xen Project Security Team.
(Note: this during-embargo deployment notice is retained in post-embargo publicly released Xen Project advisories, even though it is then no longer applicable. This is to enable the community to have oversight of the Xen Project Security Team's decisionmaking.)
For more information about permissible uses of embargoed information, consult the Xen Project community's agreed Security Policy:
http://www.xenproject.org/security-policy.html
-----BEGIN PGP SIGNATURE-----
iQFABAEBCAAqFiEEI+MiLBRfRHX6gGCng/4UyVfoK9kFAmpomr4MHHBncEB4ZW4u b3JnAAoJEIP+FMlX6CvZ+04H/i3UMWbGcPG2kp978waMmF3Gtfb/r8mw3UBzVGCi cIOBWf/FizjWu54SQEQtjwYPfi0nKftFN1UPqAGs+OUtyiZ8EcPL5x9i7arrqA2T uGfpCTb3NtFmacBbrpGnqkNahMtSLWtE8aSVEQhLxvZcLTPB6OPzIi/MVPGyA7jl /LSGWs4vd99Y8ZvAN20rhxaEAjYynfd7N4tXn38EoW9WiQBuPZ5eNzsbieah8PEo Ajntyx774ipvtYYStA4fhsLwO+6LyqH7okDR1g8Xkq6IVrOshP194mxnsuEfcMIO 4TCkWbzhmspfxQ1E2aW2VVPzIC2X2b+i8JieUK/z3mmrRSU=
=AfG5
-----END PGP SIGNATURE-----
From c1fe7d10e8b489dd66ad5a2d7508e98e9c8dabc6 Mon Sep 17 00:00:00 2001
From: Roger Pau Monne <[email protected]>
Date: Tue, 14 Jul 2026 17:05:45 +0200
Subject: x86/pod: do not reclaim special pages for PoD cache
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
When doing PoD cache reclaim as part of a decrease reservation call, avoid reclaiming special pages for the PoD cache. Otherwise such pages get moved from the domain ->xenpage_list to the ->page_list, while still being referenced in ->shared_info domain field.
Prevent PoD cache from reclaiming special pages, as nothing good can come out of it.
This is XSA-507 / CVE-2026-62434.
--- xen/arch/x86/mm/p2m-pod.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
xen/arch/x86/mm/p2m-pod.c +6 -2
@@ -536,12 +536,13 @@ decrease_reservation(struct domain *d, gfn_t gfn, unsigned int order)p2m_access_t a;p2m_type_t t;unsigned int cur_order; +mfn_t mfn = p2m->get_entry (p2m,gfn_add (gfn, i), &t, &a,0 , &cur_order, +NULL ); - p2m->get_entry (p2m,gfn_add (gfn, i), &t, &a,0 , &cur_order,NULL ); n =1UL <<min (order, cur_order);if (p2m_is_pod (t) ) pod += n; -else if (p2m_is_ram (t) ) +else if (p2m_is_ram (t) && !is_special_page (mfn_to_page (mfn)) ) ram += n; }
@@ -644,6 +645,9 @@ decrease_reservation(struct domain *d, gfn_t gfn, unsigned int order)ASSERT (mfn_valid (mfn)); page =mfn_to_page (mfn); +if (is_special_page (page) ) +/* Do not touch special pages, let generic code handle them. */ +continue ;/* This shouldn't be able to fail */ if ( p2m_set_entry(p2m, gfn_add(gfn, i), INVALID_MFN, cur_order,
Signature · 1 line
2.53.0