CVE-2026-23338: drm/amdgpu/userq: Do not allow userspace to trivially triger kernel warnings
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu/userq: Do not allow userspace to trivially triger kernel warnings
Userspace can either deliberately pass in the too small num_fences, or the required number can legitimately grow between the two calls to the userq wait ioctl. In both cases we do not want the emit the kernel warning backtrace since nothing is wrong with the kernel and userspace will simply get an errno reported back. So lets simply drop the WARN_ONs.
(cherry picked from commit 2c333ea579de6cc20ea7bc50e9595ef72863e65c)
The Linux kernel CVE team has assigned CVE-2026-23338 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.16 with commit a292fdecd72834b3bec380baa5db1e69e7f70679 and fixed in 6.18.17 with commit 1753f5f81ab60a553287f9ee659a6ac363adf8d7 Issue introduced in 6.16 with commit a292fdecd72834b3bec380baa5db1e69e7f70679 and fixed in 6.19.7 with commit 7321302edca3a349ddaea689df95b986beee6c4a Issue introduced in 6.16 with commit a292fdecd72834b3bec380baa5db1e69e7f70679 and fixed in 7.0-rc2 with commit 7b7d7693a55d606d700beb9549c9f7f0e5d9c24f
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-23338
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/amd/amdgpu/amdgpu_userq_fence.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/1753f5f81ab60a553287f9ee659a6ac363adf8d7 https://git.kernel.org/stable/c/7321302edca3a349ddaea689df95b986beee6c4a https://git.kernel.org/stable/c/7b7d7693a55d606d700beb9549c9f7f0e5d9c24f