CVE-2024-45818 Affecting xen-tools-xendomains-wait-disk package, versions <4.17.5_06-150500.3.42.1


Severity

Recommended
high

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-SLES155-XENTOOLSXENDOMAINSWAITDISK-8367174
  • published13 Nov 2024
  • disclosed12 Nov 2024

Introduced: 12 Nov 2024

CVE-2024-45818  (opens in a new tab)

How to fix?

Upgrade SLES:15.5 xen-tools-xendomains-wait-disk to version 4.17.5_06-150500.3.42.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream xen-tools-xendomains-wait-disk package and not the xen-tools-xendomains-wait-disk package as distributed by SLES. See How to fix? for SLES:15.5 relevant fixed versions and status.

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.

CVSS Scores

version 3.1