CVE-2026-63881: drm/amdkfd: fix a vulnerability of integer overflow in kfd debugger
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: fix a vulnerability of integer overflow in kfd debugger
get_queue_ids() computes array_size = num_queues * sizeof(uint32_t), which could overflow on 32-bit size_t build. using array_size() instead, it saturates to SIZE_MAX on overflow.
(cherry picked from commit 2d57a0475f085c08b49312dfd8edcb461845f285)
The Linux kernel CVE team has assigned CVE-2026-63881 to this issue.
Affected and fixed versions
===========================
Fixed in 6.6.143 with commit 4e5f808b454167cc58d7084a407a554d8ddc694d Fixed in 6.12.93 with commit de70a80992396ee306ee3a2810ad28aa1608ba9b Fixed in 6.18.35 with commit 5cf4a41aa0d74e4c83f82d2ce233b5189ed4b43c Fixed in 7.0.12 with commit 4f9eeedc3d3151f8a226fd676c314a813edda5a1 Fixed in 7.1 with commit 93f5534b35a05ef8a0109c1eefa800062fee810a
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-63881
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/4e5f808b454167cc58d7084a407a554d8ddc694d https://git.kernel.org/stable/c/de70a80992396ee306ee3a2810ad28aa1608ba9b https://git.kernel.org/stable/c/5cf4a41aa0d74e4c83f82d2ce233b5189ed4b43c https://git.kernel.org/stable/c/4f9eeedc3d3151f8a226fd676c314a813edda5a1 https://git.kernel.org/stable/c/93f5534b35a05ef8a0109c1eefa800062fee810a