drm/amdkfd: fix a vulnerability of integer overflow in kfd debugger
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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)
From the CVE record · Linux
The Linux kernel's kfd debugger computes a queue-ID array size using multiplication that can overflow on builds with a 32-bit size_t. The input does not specify how an attacker could reach this code, whether authentication or user interaction is required, or the resulting impact.
Teams running Linux kernel builds with a 32-bit size_t should check whether their kernel includes the kfd debugger fix.