Vulnerability · Published Nov 24, 2021 · Assigned by XEN

CVE-2021-28704

High 8.8

In plain English

A high-severity security flaw in xen from Xen. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 29% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)8.8High
Exploit odds (30 days)0.4%top 70.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

PoD operations on misaligned GFNs T[his CNA information record relates to multiple CVEs; the text explains which aspects/vulnerabilities correspond to which CVE.] x86 HVM and PVH guests may be started in populate-on-demand (PoD) mode, to provide a way for them to later easily have more memory assigned. Guests are permitted to control certain P2M aspects of individual pages via hypercalls. These hypercalls may act on ranges of pages specified via page orders (resulting in a power-of-2 number of pages). The implementation of some of these hypercalls for PoD does not enforce the base page frame number to be suitably aligned for the specified order, yet some code involved in PoD handling actually makes such an assumption. These operations are XENMEM_decrease_reservation (CVE-2021-28704) and XENMEM_populate_physmap (CVE-2021-28707), the latter usable only by domains controlling the guest, i.e. a de-privileged qemu or a stub domain. (Patch 1, combining the fix to both these two issues.) In addition handling of XENMEM_decrease_reservation can also trigger a host crash when the specified page order is neither 4k nor 2M nor 1G (CVE-2021-28708, patch 2).

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20xen4.15.1-r2ALPINE-CVE-2021-28704
Alpine:v3.21xen4.15.1-r2ALPINE-CVE-2021-28704
Alpine:v3.22xen4.15.1-r2ALPINE-CVE-2021-28704
Alpine:v3.23xen4.15.1-r2ALPINE-CVE-2021-28704
Alpine:v3.24xen4.15.1-r2ALPINE-CVE-2021-28704
Debian:12xen4.14.3+32-g9de3671772-1DEBIAN-CVE-2021-28704
Debian:13xen4.14.3+32-g9de3671772-1DEBIAN-CVE-2021-28704
Debian:14xen4.14.3+32-g9de3671772-1DEBIAN-CVE-2021-28704
Ubuntu:22.04:LTSxenno fix listedUBUNTU-CVE-2021-28704
Ubuntu:24.04:LTSxenno fix listedUBUNTU-CVE-2021-28704
Ubuntu:25.10xenno fix listedUBUNTU-CVE-2021-28704
Ubuntu:26.04:LTSxenno fix listedUBUNTU-CVE-2021-28704
Ubuntu:26.10xenno fix listedUBUNTU-CVE-2021-28704

Affected products (as reported)

VendorProductVersions
Xen xen xen-unstable
Xen xen 4.12.x – before unspecified
Xen xen 4.15.x

References