Vulnerability · Published Dec 19, 2024 · Assigned by XEN

CVE-2024-45818Deadlock in x86 HVM standard VGA handling

Medium 6.5

In plain English

A medium-severity security flaw in Xen from Xen. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 19% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.3%top 80.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20xen4.18.3-r2ALPINE-CVE-2024-45818
Alpine:v3.21xen4.19.0-r1ALPINE-CVE-2024-45818
Alpine:v3.22xen4.19.0-r1ALPINE-CVE-2024-45818
Alpine:v3.23xen4.19.0-r1ALPINE-CVE-2024-45818
Alpine:v3.24xen4.19.0-r1ALPINE-CVE-2024-45818
Debian:12xen4.17.5+23-ga4e5191dc0-1DEBIAN-CVE-2024-45818
Debian:12xen4.17.5+23-ga4e5191dc0-1DSA-5836-1
Debian:13xen4.19.1-1DEBIAN-CVE-2024-45818
Debian:14xen4.19.1-1DEBIAN-CVE-2024-45818
Ubuntu:22.04:LTSxenno fix listedUBUNTU-CVE-2024-45818
Ubuntu:24.04:LTSxenno fix listedUBUNTU-CVE-2024-45818
Ubuntu:25.10xenno fix listedUBUNTU-CVE-2024-45818
Ubuntu:26.04:LTSxenno fix listedUBUNTU-CVE-2024-45818
Ubuntu:26.10xenno fix listedUBUNTU-CVE-2024-45818

Affected products (as reported)

VendorProductVersions
Xen Xen see references

Weakness: CWE-667 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

References