CVE-2026-99874: drm/amdkfd: Validate the control stack of a restored queue
drm/amdkfd: Validate the control stack of a restored queue
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 92249023caee17bfc6f29c71d6aaa5f2298cf507
Event History
Frequently Asked Questions
What conditions are required to trigger this issue?
An attacker needs to provide a crafted CRIU checkpoint image that restores an AMD KFD queue. The crafted image can supply invalid control-stack sizes or offsets, including oversized values and values that cause wrapped size calculations.
Which systems are realistically exposed?
Systems using the Linux kernel's AMD KFD driver and restoring KFD queues through CRIU are exposed. The issue is specifically in the queue restore path, rather than ordinary queue creation.
What can happen if a malicious checkpoint image is restored?
An image with a control-stack size of 0xFFFFFFFF can trigger a page allocator warning during kmalloc(). Invalid control-stack and wave-state offsets can also produce wrapped sizes when wave state is retrieved.
What should be done if updating is not immediately possible?
Do not restore KFD queues from untrusted CRIU checkpoint images. Restrict who can create, modify, or supply checkpoint images used for queue restoration.
How does the fix prevent exploitation?
The fix obtains the allowed control-stack size from hardware topology, uses zero for queues without a control stack, and rejects larger image values. It also replaces image-provided size data and bounds the restored offsets as done during normal MQD initialization.