{"id":"CVE-2024-45818","details":"The hypervisor contains code to accelerate VGA memory accesses for HVM\nguests, when the (virtual) VGA is in \"standard\" mode.  Locking involved\nthere has an unusual discipline, leaving a lock acquired past the\nreturn from the function that acquired it.  This behavior results in a\nproblem when emulating an instruction with two memory accesses, both of\nwhich touch VGA memory (plus some further constraints which aren't\nrelevant here).  When emulating the 2nd access, the lock that is already\nbeing held would be attempted to be re-acquired, resulting in a\ndeadlock.\n\nThis deadlock was already found when the code was first introduced, but\nwas analysed incorrectly and the fix was incomplete.  Analysis in light\nof the new finding cannot find a way to make the existing locking\ndiscipline work.\n\nIn staging, this logic has all been removed because it was discovered\nto be accidentally disabled since Xen 4.7.  Therefore, we are fixing the\nlocking problem by backporting the removal of most of the feature.  Note\nthat even with the feature disabled, the lock would still be acquired\nfor any accesses to the VGA MMIO region.","modified":"2026-04-16T04:30:39.826121371Z","published":"2024-12-19T12:15:16.540Z","related":["SUSE-SU-2024:3977-1","SUSE-SU-2024:3979-1","SUSE-SU-2024:3980-1","SUSE-SU-2024:4073-1","SUSE-SU-2024:4116-1","SUSE-SU-2024:4163-1","openSUSE-SU-2024:14530-1"],"references":[{"type":"FIX","url":"https://xenbits.xenproject.org/xsa/advisory-463.html"},{"type":"FIX","url":"http://www.openwall.com/lists/oss-security/2024/11/12/2"},{"type":"FIX","url":"http://xenbits.xen.org/xsa/advisory-463.html"}],"affected":[{"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-45818.json","unresolved_ranges":[{"events":[{"introduced":"4.6.0"},{"fixed":"4.20.0"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N"}]}