CVEfocus › CVE database › CVE-2021-28687

CVE-2021-28687

CVSS 5.5 MediumEPSS 0.3% (higher than 17% of CVEs)Published 2021-06-11Updated 2024-08-03Assigner: XEN

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.

What to do

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

16Fixed
1Fix pending
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04xenNot affected
vulnerable_code_not_present
Ubuntu 18.04xenNot affected
vulnerable_code_not_present
Ubuntu 16.04xenNot affected
vulnerable_code_not_present
Ubuntu 14.04xenFix pending
Debian 14xenFixed4.14.2+25-gb6a8c4f72d-1DEBIAN-CVE-2021-28687
Debian 13xenFixed4.14.2+25-gb6a8c4f72d-1DEBIAN-CVE-2021-28687
Debian 12xenFixed4.14.2+25-gb6a8c4f72d-1DEBIAN-CVE-2021-28687
Alpine Linux 3.24xenFixed4.15.0-r0ALPINE-CVE-2021-28687
Alpine Linux 3.23xenFixed4.15.0-r0ALPINE-CVE-2021-28687
Alpine Linux 3.22xenFixed4.15.0-r0ALPINE-CVE-2021-28687
Alpine Linux 3.21xenFixed4.15.0-r0ALPINE-CVE-2021-28687
Alpine Linux 3.20xenFixed4.15.0-r0ALPINE-CVE-2021-28687
Alpine Linux 3.19xenFixed4.15.0-r0ALPINE-CVE-2021-28687
Alpine Linux 3.18xenFixed4.15.0-r0ALPINE-CVE-2021-28687
Alpine Linux 3.17xenFixed4.15.0-r0ALPINE-CVE-2021-28687
Alpine Linux 3.16xenFixed4.15.0-r0ALPINE-CVE-2021-28687
Alpine Linux 3.15xenFixed4.15.0-r0ALPINE-CVE-2021-28687
Alpine Linux 3.14xenFixed4.15.0-r0ALPINE-CVE-2021-28687
Alpine Linux 3.12xenFixed4.13.3-r0ALPINE-CVE-2021-28687
Alpine Linux 3.11xenFixed4.13.3-r0ALPINE-CVE-2021-28687

What the vendor says

As published in the CVE record by XEN, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.