CVE-2026-23350: drm/xe/queue: Call fini on exec queue creation fail
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/xe/queue: Call fini on exec queue creation fail
Every call to queue init should have a corresponding fini call. Skipping this would mean skipping removal of the queue from GuC list (which is part of guc_id allocation). A damaged queue stored in exec_queue_lookup list would lead to invalid memory reference, sooner or later.
Call fini to free guc_id. This must be done before any internal LRCs are freed.
Since the finalization with this extra call became very similar to __xe_exec_queue_fini(), reuse that. To make this reuse possible, alter xe_lrc_put() so it can survive NULL parameters, like other similar functions.
v2: Reuse _xe_exec_queue_fini(). Make xe_lrc_put() aware of NULLs.
(cherry picked from commit 393e5fea6f7d7054abc2c3d97a4cfe8306cd6079)
The Linux kernel CVE team has assigned CVE-2026-23350 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.19 with commit 3c1fa4aa60b146d1fa73b2b87064303f8e4b7952 and fixed in 6.19.7 with commit fae65b8a4449ae556990efcde8d74bec4adc5925 Issue introduced in 6.19 with commit 3c1fa4aa60b146d1fa73b2b87064303f8e4b7952 and fixed in 7.0-rc3 with commit 99f9b5343cae80eb0dfe050baf6c86d722b3ba2e
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-23350
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/gpu/drm/xe/xe_exec_queue.c
drivers/gpu/drm/xe/xe_lrc.h
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/fae65b8a4449ae556990efcde8d74bec4adc5925 https://git.kernel.org/stable/c/99f9b5343cae80eb0dfe050baf6c86d722b3ba2e