Vulnerability in Xen
CVE-2024-45818
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.
EPSS: 0.003 (19.0th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N.
Affected products
- Xen — versions consult Xen advisory XSA-463
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security@xen.org (Patch, Vendor Advisory)
- af854a3a-2127-422b-91ae-364da2661108 (Patch, Third Party Advisory)
- af854a3a-2127-422b-91ae-364da2661108 (Patch, Vendor Advisory)
Frequently asked questions
- What is CVE-2024-45818?
- CVE-2024-45818 is a medium-severity vulnerability in Xen, classified under Improper Locking. CVSS score: 6.5/10. Published 2024-12-19.
- How severe is CVE-2024-45818?
- Medium severity. CVSS v3 base score is 6.5 out of 10.
- Is CVE-2024-45818 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.