Vulnerability · Published Dec 27, 2024 · Assigned by Linux

CVE-2024-56552drm/xe/guc_submit: fix race around suspend_pending

High 7.8

In plain English

A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 4% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.1%top 96.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

In the Linux kernel, the following vulnerability has been resolved: drm/xe/guc_submit: fix race around suspend_pending Currently in some testcases we can trigger: xe 0000:03:00.0: [drm] Assertion `exec_queue_destroyed(q)` failed! .... WARNING: CPU: 18 PID: 2640 at drivers/gpu/drm/xe/xe_guc_submit.c:1826 xe_guc_sched_done_handler+0xa54/0xef0 [xe] xe 0000:03:00.0: [drm] *ERROR* GT1: DEREGISTER_DONE: Unexpected engine state 0x00a1, guc_id=57 Looking at a snippet of corresponding ftrace for this GuC id we can see: 162.673311: xe_sched_msg_add: dev=0000:03:00.0, gt=1 guc_id=57, opcode=3 162.673317: xe_sched_msg_recv: dev=0000:03:00.0, gt=1 guc_id=57, opcode=3 162.673319: xe_exec_queue_scheduling_disable: dev=0000:03:00.0, 1:0x2, gt=1, width=1, guc_id=57, guc_state=0x29, flags=0x0 162.674089: xe_exec_queue_kill: dev=0000:03:00.0, 1:0x2, gt=1, width=1, guc_id=57, guc_state=0x29, flags=0x0 162.674108: xe_exec_queue_close: dev=0000:03:00.0, 1:0x2, gt=1, width=1, guc_id=57, guc_state=0xa9, flags=0x0 162.674488: xe_exec_queue_scheduling_done: dev=0000:03:00.0, 1:0x2, gt=1, width=1, guc_id=57, guc_state=0xa9, flags=0x0 162.678452: xe_exec_queue_deregister: dev=0000:03:00.0, 1:0x2, gt=1, width=1, guc_id=57, guc_state=0xa1, flags=0x0 It looks like we try to suspend the queue (opcode=3), setting suspend_pending and triggering a disable_scheduling. The user then closes the queue. However the close will also forcefully signal the suspend fence after killing the queue, later when the G2H response for disable_scheduling comes back we have now cleared suspend_pending when signalling the suspend fence, so the disable_scheduling now incorrectly tries to also deregister the queue. This leads to warnings since the queue has yet to even be marked for destruction. We also seem to trigger errors later with trying to double unregister the same queue. To fix this tweak the ordering when handling the response to ensure we don't race with a disable_scheduling that didn't actually intend to perform an unregister. The destruction path should now also correctly wait for any pending_disable before marking as destroyed. (cherry picked from commit f161809b362f027b6d72bd998e47f8f0bad60a2e)

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:13linux6.12.5-1DEBIAN-CVE-2024-56552
Debian:14linux6.12.5-1DEBIAN-CVE-2024-56552
Ubuntu:24.04:LTSlinux6.8.0-147.147USN-8917-1
Ubuntu:24.04:LTSlinux6.8.0-147.147UBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-aws6.8.0-1067.70UBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-aws6.8.0-1067.70USN-8917-1
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-aws-6.5no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-aws-6.8no fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-azure6.8.0-1071.79USN-8918-1
Ubuntu:24.04:LTSlinux-azure6.8.0-1071.79UBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-azure-6.116.11.0-1012.12~24.04.1UBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-azure-6.5no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-azure-6.8no fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-azure-fde6.8.0-1069.76UBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-azure-fde6.8.0-1069.76USN-8918-1
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-azure-fde-6.8no fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-azure-nvidiano fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-gcp6.8.0-1071.79UBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-gcp6.8.0-1071.79USN-8917-1
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-gcp-6.116.11.0-1011.11~24.04.1UBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-gcp-6.5no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-gcp-6.8no fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-gke6.8.0-1066.74UBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-gke6.8.0-1066.74USN-8917-1
Ubuntu:24.04:LTSlinux-gkeop6.8.0-1052.56USN-8917-1
Ubuntu:24.04:LTSlinux-gkeop6.8.0-1052.56UBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-hwe-6.116.11.0-21.21~24.04.1UBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-hwe-6.116.11.0-21.21~24.04.1USN-7379-1
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-hwe-6.5no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-hwe-6.8no fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-ibm6.8.0-1067.68USN-8917-1
Ubuntu:24.04:LTSlinux-ibm6.8.0-1067.68UBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-ibm-6.8no fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-intelno fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-intel-iot-realtimeno fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-lowlatency6.8.0-147.147.1USN-8917-1
Ubuntu:24.04:LTSlinux-lowlatency6.8.0-147.147.1UBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-lowlatency-hwe-6.116.11.0-1011.12~24.04.1USN-7381-1
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.5no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.8no fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-nvidiano fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-nvidia-6.116.11.0-1007.7UBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-nvidia-6.5no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-nvidia-6.8no fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-nvidia-lowlatencyno fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-nvidia-tegra6.8.0-1035.38USN-8781-1
Ubuntu:24.04:LTSlinux-nvidia-tegra6.8.0-1035.38UBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-oem-6.116.11.0-1017.17USN-7382-1
Ubuntu:24.04:LTSlinux-oem-6.116.11.0-1017.17UBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-oem-6.5no fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-oem-6.8no fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-oracle6.8.0-1064.67USN-8917-1
Ubuntu:24.04:LTSlinux-oracle6.8.0-1064.67UBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-oracle-6.5no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-oracle-6.8no fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-raspino fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-raspi-realtimeno fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-riscv-6.5no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-riscv-6.8no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2024-56552
Ubuntu:22.04:LTSlinux-starfive-6.5no fix listedUBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-vmware6.8.0-1008.8UBUNTU-CVE-2024-56552
Ubuntu:24.04:LTSlinux-xilinxno fix listedUBUNTU-CVE-2024-56552

Affected products (as reported)

VendorProductVersions
Linux Linux dd08ebf6c3525a7ea2186e636df064ea47281987 – before 5ddcb50b700221fa7d7be2adcb3d7d7afe8633dddd08ebf6c3525a7ea2186e636df064ea47281987 – before 87651f31ae4e6e6e7e6c7270b9b469405e747407
Linux Linux 6.8

References