Skip to content

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

MediumCVSS 6.5 EPSS 0.27%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

16 packages: 12 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/xen(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/xen(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/xen(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/xen(Ubuntu 26.10) All versions No fix listed No fix yet
alpine/xen(Alpine v3.17) >= 4.6.0, < 4.16.6-r3 4.16.6-r3 Fixed
alpine/xen(Alpine v3.18) >= 4.6.0, < 4.17.5-r2 4.17.5-r2 Fixed
alpine/xen(Alpine v3.19) >= 4.6.0, < 4.18.3-r2 4.18.3-r2 Fixed
alpine/xen(Alpine v3.20) >= 4.6.0, < 4.18.3-r2 4.18.3-r2 Fixed
alpine/xen(Alpine v3.21) >= 4.6.0, < 4.19.0-r1 4.19.0-r1 Fixed
alpine/xen(Alpine v3.22) >= 4.6.0, < 4.19.0-r1 4.19.0-r1 Fixed
alpine/xen(Alpine v3.23) >= 4.6.0, < 4.19.0-r1 4.19.0-r1 Fixed
alpine/xen(Alpine v3.24) >= 4.6.0, < 4.19.0-r1 4.19.0-r1 Fixed
debian/xen(Debian 12) < 4.17.5+23-ga4e5191dc0-1; = 4.17.1+2-gb773c48e36-1; = 4.17.2+55-g0b56bed864-1; = 4.17.2+76-ge1f9cb16e2-1 +8 more 4.17.5+23-ga4e5191dc0-1 Fixed
debian/xen(Debian 13) < 4.19.1-1 4.19.1-1 Fixed
debian/xen(Debian 14) < 4.19.1-1 4.19.1-1 Fixed
Xen >= 4.6.0, < 4.20.0 4.20.0 Fixed

Affected products

ProductAffected versionsFixed in
debian/xen(Debian:12) < 4.17.5+23-ga4e5191dc0-1 4.17.5+23-ga4e5191dc0-1
debian/xen(Debian:12) = 4.17.1+2-gb773c48e36-1 No fix listed
debian/xen(Debian:12) = 4.17.2+55-g0b56bed864-1 No fix listed
debian/xen(Debian:12) = 4.17.2+76-ge1f9cb16e2-1 No fix listed
debian/xen(Debian:12) = 4.17.2+76-ge1f9cb16e2-1~deb12u1 No fix listed
debian/xen(Debian:12) = 4.17.2-1 No fix listed
debian/xen(Debian:12) = 4.17.3+10-g091466ba55-1 No fix listed
debian/xen(Debian:12) = 4.17.3+10-g091466ba55-1.1 No fix listed
debian/xen(Debian:12) = 4.17.3+10-g091466ba55-1.1~exp1 No fix listed
debian/xen(Debian:12) = 4.17.3+10-g091466ba55-1.1~exp2 No fix listed
debian/xen(Debian:12) = 4.17.3+10-g091466ba55-1~deb12u1 No fix listed
debian/xen(Debian:12) = 4.17.3+36-g54dacb5c02-1 No fix listed
debian/xen(Debian:13) < 4.19.1-1 4.19.1-1
debian/xen(Debian:14) < 4.19.1-1 4.19.1-1
ubuntu/xen(Ubuntu:22.04) All versions No fix listed
Xen = consult Xen advisory XSA-463 No fix listed
alpine/xen(Alpine:v3.17) >= 4.6.0, < 4.16.6-r3 4.16.6-r3
alpine/xen(Alpine:v3.18) >= 4.6.0, < 4.17.5-r2 4.17.5-r2
alpine/xen(Alpine:v3.19) >= 4.6.0, < 4.18.3-r2 4.18.3-r2
alpine/xen(Alpine:v3.20) >= 4.6.0, < 4.18.3-r2 4.18.3-r2
alpine/xen(Alpine:v3.21) >= 4.6.0, < 4.19.0-r1 4.19.0-r1
alpine/xen(Alpine:v3.22) >= 4.6.0, < 4.19.0-r1 4.19.0-r1
alpine/xen(Alpine:v3.23) >= 4.6.0, < 4.19.0-r1 4.19.0-r1
alpine/xen(Alpine:v3.24) >= 4.6.0, < 4.19.0-r1 4.19.0-r1
ubuntu/xen(Ubuntu:24.04) All versions No fix listed
Show 3 more
ProductAffected versionsFixed in
ubuntu/xen(Ubuntu:26.04) All versions No fix listed
Xen >= 4.6.0, < 4.20.0 4.20.0
ubuntu/xen(Ubuntu:26.10) All versions No fix listed

References