Bug 2586270 (CVE-2026-99874) - CVE-2026-99874 kernel: kernel: Denial of Service via invalid queue control stack in amdkfd
Summary: CVE-2026-99874 kernel: kernel: Denial of Service via invalid queue control st...
Keywords:
Status: NEW
Alias: CVE-2026-99874
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-30 13:39 UTC by OSIDB Bzimport
Modified: 2026-11-30 19:03 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-30 13:39:13 UTC
In the Linux kernel, the following vulnerability has been resolved:

drm/amdkfd: Validate the control stack of a restored queue

kfd_criu_restore_queue() takes the control stack size from the
checkpoint image without the topology check create-queue does in
kfd_queue_acquire_buffers(), 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().

restore_mqd() also keeps the image's cp_hqd_cntl_stack_size,
cp_hqd_cntl_stack_offset and cp_hqd_wg_state_offset. With offset > size
or wave state offset < size, get_wave_state() returns wrapped sizes.

Take the per-XCC size from topology, 0 for queues without a control
stack, and reject larger images. In restore_mqd(), set the size to it
and bound both offsets as init_mqd() does.

(cherry picked from commit 92249023caee17bfc6f29c71d6aaa5f2298cf507)


Note You need to log in before you can comment on or make changes to this bug.