CVE-2021-28687
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 20.04 | xen | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | xen | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | xen | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | xen | Fix pending | ||
| Debian 14 | xen | Fixed | 4.14.2+25-gb6a8c4f72d-1 | DEBIAN-CVE-2021-28687 |
| Debian 13 | xen | Fixed | 4.14.2+25-gb6a8c4f72d-1 | DEBIAN-CVE-2021-28687 |
| Debian 12 | xen | Fixed | 4.14.2+25-gb6a8c4f72d-1 | DEBIAN-CVE-2021-28687 |
| Alpine Linux 3.24 | xen | Fixed | 4.15.0-r0 | ALPINE-CVE-2021-28687 |
| Alpine Linux 3.23 | xen | Fixed | 4.15.0-r0 | ALPINE-CVE-2021-28687 |
| Alpine Linux 3.22 | xen | Fixed | 4.15.0-r0 | ALPINE-CVE-2021-28687 |
| Alpine Linux 3.21 | xen | Fixed | 4.15.0-r0 | ALPINE-CVE-2021-28687 |
| Alpine Linux 3.20 | xen | Fixed | 4.15.0-r0 | ALPINE-CVE-2021-28687 |
| Alpine Linux 3.19 | xen | Fixed | 4.15.0-r0 | ALPINE-CVE-2021-28687 |
| Alpine Linux 3.18 | xen | Fixed | 4.15.0-r0 | ALPINE-CVE-2021-28687 |
| Alpine Linux 3.17 | xen | Fixed | 4.15.0-r0 | ALPINE-CVE-2021-28687 |
| Alpine Linux 3.16 | xen | Fixed | 4.15.0-r0 | ALPINE-CVE-2021-28687 |
| Alpine Linux 3.15 | xen | Fixed | 4.15.0-r0 | ALPINE-CVE-2021-28687 |
| Alpine Linux 3.14 | xen | Fixed | 4.15.0-r0 | ALPINE-CVE-2021-28687 |
| Alpine Linux 3.12 | xen | Fixed | 4.13.3-r0 | ALPINE-CVE-2021-28687 |
| Alpine Linux 3.11 | xen | Fixed | 4.13.3-r0 | ALPINE-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.
- xen: affected: xen-unstable
- xen: affected: 4.12.x to before unspecified
- xen: affected: 4.14.x
Vendor advisories:
- https://security.gentoo.org/glsa/202107-30 (vendor-advisory)
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.