AZL-117370: CVE-2026-99874 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: Validate the control stack of a restored queue
kfdcriurestorequeue() takes the control stack size from the checkpoint image without the topology check create-queue does in kfdqueueacquirebuffers(), which restore stopped calling in commit 1cafa8b29e02 ("drm/amdkfd: Don't acquire buffers during CRIU queue restore."). An image size of 0x300000 is accepted and sizes the MQD allocation, and 0xFFFFFFFF trips a page allocator warning in kmalloc().
restoremqd() also keeps the image's cphqdcntlstacksize, cphqdcntlstackoffset and cphqdwgstateoffset. With offset > size or wave state offset < size, getwavestate() returns wrapped sizes.
Take the per-XCC size from topology, 0 for queues without a control stack, and reject larger images. In restoremqd(), set the size to it and bound both offsets as initmqd() does.
(cherry picked from commit 92249023caee17bfc6f29c71d6aaa5f2298cf507)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 92249023caee17bfc6f29c71d6aaa5f2298cf507
Event History
Frequently Asked Questions
What systems are exposed to this issue?
Systems using the affected Azure Linux kernel package and restoring AMD KFD queues from CRIU checkpoint images are exposed. The issue is in the queue-restore path, not described as affecting ordinary queue creation.
What does an attacker need to exploit it?
An attacker needs to supply or cause restoration of a crafted CRIU checkpoint image containing queue control-stack sizes or offsets that do not match the GPU topology. Malformed size values can drive inappropriate allocations, while invalid offsets can cause wrapped wave-state sizes.
What should be done if the updated kernel cannot be deployed immediately?
Do not restore untrusted CRIU checkpoint images containing AMD KFD queues. Restrict who can create, modify, and restore CRIU images, especially on systems where AMD GPU compute queues are available.
How can I determine whether I may already be affected?
Review whether the system restores CRIU images with AMD KFD queues and whether those images can originate from untrusted or insufficiently controlled sources. The provided data does not identify a specific detection signature or runtime indicator.