CVE-2021-28708

Vulnerability in xen

No CVSS score yet EPSS 0.35%

Published 24 Nov 2021 Updated 18 Nov 2024 CNA: XEN

Check your servers for CVE-2021-28708

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-28708 affects xen, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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).

Exploitation

EPSS 0.35%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 30.9% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 18 Nov 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Affected products

As the CNA lists them.

ProductVersions
xen
affected xen-unstable
xen
unknown before 4.12
affected from 4.12.x, before unspecified
unaffected from next of 4.14.x, before unspecified
xen
affected 4.15.x

Is my server affected?

Find the installed version of xen and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i xen
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2021-28708 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2021-28708

RHEL, Rocky, Alma, Fedora

rpm -q xen
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2021-28708

Alpine

apk list --installed | grep -i xen

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2021-28708
trivy image --scanners vuln IMAGE | grep CVE-2021-28708

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Advisories

Other references

Source: the record CVE-2021-28708 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.