Skip to content

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

MediumCVSS 5.5 EPSS 0.31%
Published
Updated
Exploit status
No public exploit known
Technology
Debian

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.

Upgrade path

17 packages: 16 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
Xen = 4.14.x; = 4.15.0-rc1; = xen-unstable; >= 4.12, <= 4.15.0 +1 more after 4.15.0 Partially fixed
alpine/xen(Alpine v3.11) >= 4.12, < 4.13.3-r0 4.13.3-r0 Fixed
alpine/xen(Alpine v3.12) >= 4.12, < 4.13.3-r0 4.13.3-r0 Fixed
alpine/xen(Alpine v3.14) >= 4.12, < 4.15.0-r0 4.15.0-r0 Fixed
alpine/xen(Alpine v3.15) >= 4.12, < 4.15.0-r0 4.15.0-r0 Fixed
alpine/xen(Alpine v3.16) >= 4.12, < 4.15.0-r0 4.15.0-r0 Fixed
alpine/xen(Alpine v3.17) >= 4.12, < 4.15.0-r0 4.15.0-r0 Fixed
alpine/xen(Alpine v3.18) >= 4.12, < 4.15.0-r0 4.15.0-r0 Fixed
alpine/xen(Alpine v3.19) >= 4.12, < 4.15.0-r0 4.15.0-r0 Fixed
alpine/xen(Alpine v3.20) >= 4.12, < 4.15.0-r0 4.15.0-r0 Fixed
alpine/xen(Alpine v3.21) >= 4.12, < 4.15.0-r0 4.15.0-r0 Fixed
alpine/xen(Alpine v3.22) >= 4.12, < 4.15.0-r0 4.15.0-r0 Fixed
alpine/xen(Alpine v3.23) >= 4.12, < 4.15.0-r0 4.15.0-r0 Fixed
alpine/xen(Alpine v3.24) >= 4.12, < 4.15.0-r0 4.15.0-r0 Fixed
debian/xen(Debian 12) < 4.14.2+25-gb6a8c4f72d-1 4.14.2+25-gb6a8c4f72d-1 Fixed
debian/xen(Debian 13) < 4.14.2+25-gb6a8c4f72d-1 4.14.2+25-gb6a8c4f72d-1 Fixed
debian/xen(Debian 14) < 4.14.2+25-gb6a8c4f72d-1 4.14.2+25-gb6a8c4f72d-1 Fixed

Affected products

ProductAffected versionsFixed in
debian/xen(Debian:12) < 4.14.2+25-gb6a8c4f72d-1 4.14.2+25-gb6a8c4f72d-1
debian/xen(Debian:13) < 4.14.2+25-gb6a8c4f72d-1 4.14.2+25-gb6a8c4f72d-1
debian/xen(Debian:14) < 4.14.2+25-gb6a8c4f72d-1 4.14.2+25-gb6a8c4f72d-1
Xen >= 4.12, <= 4.15.0 No fix listed
Xen = 4.15.0-rc1 No fix listed
alpine/xen(Alpine:v3.11) >= 4.12, < 4.13.3-r0 4.13.3-r0
alpine/xen(Alpine:v3.12) >= 4.12, < 4.13.3-r0 4.13.3-r0
alpine/xen(Alpine:v3.14) >= 4.12, < 4.15.0-r0 4.15.0-r0
alpine/xen(Alpine:v3.15) >= 4.12, < 4.15.0-r0 4.15.0-r0
alpine/xen(Alpine:v3.16) >= 4.12, < 4.15.0-r0 4.15.0-r0
alpine/xen(Alpine:v3.17) >= 4.12, < 4.15.0-r0 4.15.0-r0
alpine/xen(Alpine:v3.18) >= 4.12, < 4.15.0-r0 4.15.0-r0
alpine/xen(Alpine:v3.19) >= 4.12, < 4.15.0-r0 4.15.0-r0
alpine/xen(Alpine:v3.20) >= 4.12, < 4.15.0-r0 4.15.0-r0
alpine/xen(Alpine:v3.21) >= 4.12, < 4.15.0-r0 4.15.0-r0
alpine/xen(Alpine:v3.22) >= 4.12, < 4.15.0-r0 4.15.0-r0
alpine/xen(Alpine:v3.23) >= 4.12, < 4.15.0-r0 4.15.0-r0
alpine/xen(Alpine:v3.24) >= 4.12, < 4.15.0-r0 4.15.0-r0
Xen = xen-unstable No fix listed
Xen < 4.12 4.12
Xen >= 4.12.x No fix listed
Xen = 4.14.x No fix listed

References