CVE-2021-28687

Vulnerability in xen

No CVSS score yet EPSS 0.31%

Published 11 Jun 2021 Updated 3 Aug 2024 CNA: XEN

Check your servers for CVE-2021-28687

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-28687 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

HVM soft-reset crashes toolstack libxl requires all data structures passed across its public interface to be initialized before use and disposed of afterwards by calling a specific set of functions. Many internal data structures also require this initialize / dispose discipline, but not all of them. When the "soft reset" feature was implemented, the libxl__domain_suspend_state structure didn't require any initialization or disposal. At some point later, an initialization function was introduced for the structure; but the "soft reset" path wasn't refactored to call the initialization function. When a guest nwo initiates a "soft reboot", uninitialized data structure leads to an assert() when later code finds the structure in an unexpected state. The effect of this is to crash the process monitoring the guest. How this affects the system depends on the structure of the toolstack. For xl, this will have no security-relevant effect: every VM has its own independent monitoring process, which contains no state. The domain in question will hang in a crashed state, but can be destroyed by `xl destroy` just like any other non-cooperating domain. For daemon-based toolstacks linked against libxl, such as libvirt, this will crash the toolstack, losing the state of any in-progress operations (localized DoS), and preventing further administrator operations unless the daemon is configured to restart automatically (system-wide DoS). If crashes "leak" resources, then repeated crashes could use up resources, also causing a system-wide DoS.

Exploitation

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

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.13.x, before unspecified
xen
affected 4.14.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-28687 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2021-28687

RHEL, Rocky, Alma, Fedora

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

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-28687
trivy image --scanners vuln IMAGE | grep CVE-2021-28687

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-28687 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.