CVE-2026-80903: drm/xe/oa: Fix sync entry leak on OA config emit failure
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/xe/oa: Fix sync entry leak on OA config emit failure
xe_oa_emit_oa_config() releases the sync entries and the syncs array only on its success path. When it fails before the point of no return (fence allocation, config buffer allocation or batch submission), it returns without touching stream->syncs.
The stream open path handles such failures in the caller, but xe_oa_config_locked() propagates the error without any cleanup, so the syncs array and the fence references held by the parsed entries are leaked. The next config ioctl overwrites stream->syncs, making the memory unreachable for good.
Clean up the parsed syncs when xe_oa_emit_oa_config() fails, matching the cleanup done by the stream open error path.
(cherry picked from commit 8af97b3da2cfce04e6b457c6eb17ed3c1daf912b)
The Linux kernel CVE team has assigned CVE-2026-80903 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.12.18 with commit f0ab9cd205d852a9024b73c71c8d8b217a04e8f0 and fixed in 6.12.105 with commit fcf7943b0a38568c547d7b5702de1d8190480616 Issue introduced in 6.13 with commit 9920c8b88c5cf2e44f4ff508dd3c0c96e4364db0 and fixed in 6.18.46 with commit 948f346fe36e1d02353c3d61b1f6b66c6af91996 Issue introduced in 6.13 with commit 9920c8b88c5cf2e44f4ff508dd3c0c96e4364db0 and fixed in 7.1.10 with commit 027150e24e173a5dffe7f5ab3a6600618f634da2 Issue introduced in 6.13 with commit 9920c8b88c5cf2e44f4ff508dd3c0c96e4364db0 and fixed in 7.2 with commit 8d33c4987cd162527375a3905017ae129ba7c3fe
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-80903
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_oa.c
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/fcf7943b0a38568c547d7b5702de1d8190480616 https://git.kernel.org/stable/c/948f346fe36e1d02353c3d61b1f6b66c6af91996 https://git.kernel.org/stable/c/027150e24e173a5dffe7f5ab3a6600618f634da2 https://git.kernel.org/stable/c/8d33c4987cd162527375a3905017ae129ba7c3fe