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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | xen | 4.18.3-r2 | ALPINE-CVE-2024-45818 |
| Alpine:v3.21 | xen | 4.19.0-r1 | ALPINE-CVE-2024-45818 |
| Alpine:v3.22 | xen | 4.19.0-r1 | ALPINE-CVE-2024-45818 |
| Alpine:v3.23 | xen | 4.19.0-r1 | ALPINE-CVE-2024-45818 |
| Alpine:v3.24 | xen | 4.19.0-r1 | ALPINE-CVE-2024-45818 |
| Debian:12 | xen | 4.17.5+23-ga4e5191dc0-1 | DEBIAN-CVE-2024-45818 |
| Debian:12 | xen | 4.17.5+23-ga4e5191dc0-1 | DSA-5836-1 |
| Debian:13 | xen | 4.19.1-1 | DEBIAN-CVE-2024-45818 |
| Debian:14 | xen | 4.19.1-1 | DEBIAN-CVE-2024-45818 |
| Ubuntu:22.04:LTS | xen | no fix listed | UBUNTU-CVE-2024-45818 |
| Ubuntu:24.04:LTS | xen | no fix listed | UBUNTU-CVE-2024-45818 |
| Ubuntu:25.10 | xen | no fix listed | UBUNTU-CVE-2024-45818 |
| Ubuntu:26.04:LTS | xen | no fix listed | UBUNTU-CVE-2024-45818 |
| Ubuntu:26.10 | xen | no fix listed | UBUNTU-CVE-2024-45818 |
Affected products (as reported)
Weakness: CWE-667 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N