cve.bz

CVE-2021-28687 xen xen: Missing Initialization of Resource

5.5 mediumEPSS 0.3%Fix available

Medium (5.5) in xen xen. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 17th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-909 Missing Initialization of Resource
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-28687 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-28687?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-28687?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-28687 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
xenxen-unstable
xenfrom 4.12.x before unspecified
xen4.14.x

Fixed in

ProductFixed in
xennext of 4.13.x

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14xen4.14.2+25-gb6a8c4f72d-1DEBIAN-CVE-2021-28687
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 6 morexen4.12.4_08-3.43.3SUSE-SU-2021:1460-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Server Applications 15 SP2xen4.13.2_08-3.25.3SUSE-SU-2021:1028-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5xen4.12.4_09-3.39.3SUSE-SU-2021:1023-1
openSUSETumbleweedxen4.15.1_01-1.2openSUSE-SU-2024:11520-1
Alpinev3.11, v3.12xen4.13.3-r0ALPINE-CVE-2021-28687
Alpinev3.14, v3.15, v3.16 and 8 morexen4.15.0-r0ALPINE-CVE-2021-28687

From the distributions' data via OSV.dev: the Debian Security Tracker; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · SUSE · openSUSE · Alpine.

References

Check your stackJSON