cve.bz

CVE-2024-45818 xen xen: Improper Locking

6.5 mediumEPSS 0.3%Fix available

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

On this page
The hypervisor contains code to accelerate VGA memory accesses for HVM guests, when the (virtual) VGA is in "standard" mode. Locking involved there has an unusual discipline, leaving a lock acquired past the return from the function that acquired it. This behavior results in a problem when emulating an instruction with two memory accesses, both of which touch VGA memory (plus some further constraints which aren't relevant here). When emulating the 2nd access, the lock that is already being held would be attempted to be re-acquired, resulting in a deadlock. This deadlock was already found when the code was first introduced, but was analysed incorrectly and the fix was incomplete. Analysis in light of the new finding cannot find a way to make the existing locking discipline work. In staging, this logic has all been removed because it was discovered to be accidentally disabled since Xen 4.7. Therefore, we are fixing the locking problem by backporting the removal of most of the feature. Note that even with the feature disabled, the lock would still be acquired for any accesses to the VGA MMIO region.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
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; 12th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-12-31. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-667 Improper Locking
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-45818 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-45818?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-45818?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-2024-45818 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 NVD's CPE matches.

ProductAffected
xen:xenfrom 4.6.0 before 4.20.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12xen4.17.5+23-ga4e5191dc0-1DEBIAN-CVE-2024-45818 DSA-5836-1
Debian13, 14xen4.19.1-1DEBIAN-CVE-2024-45818
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 morexenno fix listedUBUNTU-CVE-2024-45818
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Micro 5.1 and 3 morexen4.14.6_22-150300.3.84.1SUSE-SU-2024:3977-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2xen4.13.5_16-150200.3.99.1SUSE-SU-2024:4073-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 5 morexen4.16.6_06-150400.4.65.1SUSE-SU-2024:4116-1
SUSELinux Enterprise Micro 5.5, Linux Enterprise Module for Basesystem 15 SP5, Linux Enterprise Module for Server Applications 15 SP5xen4.17.5_06-150500.3.42.1SUSE-SU-2024:3980-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Server Applications 15 SP6xen4.18.3_06-150600.3.12.1SUSE-SU-2024:4163-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5xen4.12.4_58-3.124.1SUSE-SU-2024:3979-1
openSUSELeap 15.5, Leap Micro 5.5xen4.17.5_06-150500.3.42.1SUSE-SU-2024:3980-1
openSUSELeap 15.6xen4.18.3_06-150600.3.12.1SUSE-SU-2024:4163-1
openSUSETumbleweedxen4.19.0_06-1.1openSUSE-SU-2024:14530-1
Alpinev3.17xen4.16.6-r3ALPINE-CVE-2024-45818
Alpinev3.18xen4.17.5-r2ALPINE-CVE-2024-45818
Alpinev3.19, v3.20xen4.18.3-r2ALPINE-CVE-2024-45818
Alpinev3.21, v3.22, v3.23 and 1 morexen4.19.0-r1ALPINE-CVE-2024-45818

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; 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 · Ubuntu · SUSE · openSUSE · Alpine.

Attack patterns (CAPEC)

  • CAPEC-25 Forced Deadlock Likelihood: Low · Severity: High
  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON