CVE-2026-97497: drm/amdkfd: Check bounds for allocate_sdma_queue restore_sdma_id
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: Check bounds for allocate_sdma_queue restore_sdma_id
allocate_sdma_queue has an option where the sdma queue id can be specified (used by CRIU). We weren't bounds-checking that value.
Confirm it's less than the maximum number of queues.
The Linux kernel CVE team has assigned CVE-2026-97497 to this issue.
Affected and fixed versions
===========================
Fixed in 6.12.111 with commit 42f2bd50236b61ad0aeb2c233c990ee0d615fdad Fixed in 6.18.53 with commit dd2870ca036e1d51baa59f942007b36a595b5890 Fixed in 7.2 with commit bfe9a7545b2a7be1c543f1741e16f2d5ec4116ae
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-97497
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/amdkfd/kfd_device_queue_manager.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/42f2bd50236b61ad0aeb2c233c990ee0d615fdad https://git.kernel.org/stable/c/dd2870ca036e1d51baa59f942007b36a595b5890 https://git.kernel.org/stable/c/bfe9a7545b2a7be1c543f1741e16f2d5ec4116ae