CVEfocus › CVE database › CVE-2024-45818

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

CVSS 6.5 MediumEPSS 0.3% (higher than 12% of CVEs)Published 2024-12-19Updated 2024-12-31Assigner: XEN

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.

CWE-667

What to do

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

11Fixed
3Fix pending
3Under investigation
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10xenFix pendingUBUNTU-CVE-2024-45818
Ubuntu 26.04xenUnder investigationUBUNTU-CVE-2024-45818
Ubuntu 25.10xenWill not fix
hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary
UBUNTU-CVE-2024-45818
Ubuntu 24.04xenUnder investigationUBUNTU-CVE-2024-45818
Ubuntu 22.04xenUnder investigationUBUNTU-CVE-2024-45818
Ubuntu 20.04xenWill not fix
hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary
UBUNTU-CVE-2024-45818
Ubuntu 18.04xenFix pendingUBUNTU-CVE-2024-45818
Ubuntu 16.04xenFix pendingUBUNTU-CVE-2024-45818
Debian 14xenFixed4.19.1-1DEBIAN-CVE-2024-45818
Debian 13xenFixed4.19.1-1DEBIAN-CVE-2024-45818
Debian 12xenFixed4.17.5+23-ga4e5191dc0-1DEBIAN-CVE-2024-45818
Alpine Linux 3.24xenFixed4.19.0-r1ALPINE-CVE-2024-45818
Alpine Linux 3.23xenFixed4.19.0-r1ALPINE-CVE-2024-45818
Alpine Linux 3.22xenFixed4.19.0-r1ALPINE-CVE-2024-45818
Alpine Linux 3.21xenFixed4.19.0-r1ALPINE-CVE-2024-45818
Alpine Linux 3.20xenFixed4.18.3-r2ALPINE-CVE-2024-45818
Alpine Linux 3.19xenFixed4.18.3-r2ALPINE-CVE-2024-45818
Alpine Linux 3.18xenFixed4.17.5-r2ALPINE-CVE-2024-45818
Alpine Linux 3.17xenFixed4.16.6-r3ALPINE-CVE-2024-45818

What the vendor says

As published in the CVE record by XEN, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Running only PV or PVH guests will avoid this vulnerability.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.