CVE-2026-52976: drm/xe: Fix error cleanup in xe_exec_queue_create_ioctl()
In the Linux kernel, the following vulnerability has been resolved:
drm/xe: Fix error cleanup in xeexecqueuecreateioctl()
Two error handling issues exist in xeexecqueuecreateioctl():
1. When xehwenginegroupaddexecqueue() fails, the error path jumps to putexecqueue which skips xeexecqueuekill(). If the VM is in preempt fence mode, xevmaddcomputeexecqueue() has already added the queue to the VM's compute exec queue list. Skipping the kill leaves the queue on that list, leading to a dangling pointer after the queue is freed.
2. When xaalloc() fails after xehwenginegroupaddexecqueue() has succeeded, the error path does not call xehwenginegroupdelexecqueue() to remove the queue from the hw engine group list. The queue is then freed while still linked into the hw engine group, causing a use-after-free.
Fix both by: - Changing the xehwenginegroupaddexecqueue() failure path to jump to killexecqueue so that xeexecqueuekill() properly removes the queue from the VM's compute list. - Adding a delhwenginegroup label before killexecqueue for the xaalloc() failure path, which removes the queue from the hw engine group before proceeding with the rest of the cleanup.
(cherry picked from commit 37c831f401746a45d510b312b0ed7a77b1e06ec8)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Apply the drm/xe patch that fixes the two xe_exec_queue_create_ioctl() error handling issues: (1) add the 'del_hw_engine_group' label before calling 'kill_exec_queue' so cleanup removes the queue from the hw engine group list; (2) change the xe_hw_engine_group_add_exec_queue() failure path to jump to the cleanup path that calls the necessary queue removal (so the queue is not left linked/dangling, preventing use-after-free).
Linux kernel (drm/xe) xe_exec_queue_create_ioctl() error cleanup = Fix error cleanup by ensuring the proper kill/remove sequence on failure paths
Event History
Frequently Asked Questions
What is the severity of CVE-2026-52976?
CVE-2026-52976 has a risk score of 47, indicating a medium-level severity.
How do I fix CVE-2026-52976?
To mitigate CVE-2026-52976, users should update their Linux kernel to the latest patched version.
What systems are affected by CVE-2026-52976?
CVE-2026-52976 affects the Linux kernel, specifically in the drm/xe component.
What is the nature of the vulnerability in CVE-2026-52976?
CVE-2026-52976 pertains to error handling issues that can lead to a use-after-free condition.
When was CVE-2026-52976 published?
CVE-2026-52976 was published on June 24, 2026.