{"id":"CVE-2026-99874","aliases":["CVE-2026-99874"],"related":[],"kind":"vulnerability","state":"published","title":"drm/amdkfd: Validate the control stack of a restored queue","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: Validate the control stack of a restored queue\n\nkfd_criu_restore_queue() takes the control stack size from the\ncheckpoint image without the topology check create-queue does in\nkfd_queue_acquire_buffers(), which restore stopped calling in\ncommit 1cafa8b29e02 (\"drm/amdkfd: Don't acquire buffers\nduring CRIU queue restore.\"). An image size of 0x300000 is accepted and\nsizes the MQD allocation, and 0xFFFFFFFF trips a page allocator warning\nin kmalloc().\n\nrestore_mqd() also keeps the image's cp_hqd_cntl_stack_size,\ncp_hqd_cntl_stack_offset and cp_hqd_wg_state_offset. With offset > size\nor wave state offset < size, get_wave_state() returns wrapped sizes.\n\nTake the per-XCC size from topology, 0 for queues without a control\nstack, and reject larger images. In restore_mqd(), set the size to it\nand bound both offsets as init_mqd() does.\n\n(cherry picked from commit 92249023caee17bfc6f29c71d6aaa5f2298cf507)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: Validate the control stack of a restored queue\n\nkfd_criu_restore_queue() takes the control stack size from the\ncheckpoint image without the topology check create-queue does in\nkfd_queue_acquire_buffers(), which restore stopped calling in\ncommit 1cafa8b29e02 (\"drm/amdkfd: Don't acquire buffers\nduring CRIU queue restore.\"). An image size of 0x300000 is accepted and\nsizes the MQD allocation, and 0xFFFFFFFF trips a page allocator warning\nin kmalloc().\n\nrestore_mqd() also keeps the image's cp_hqd_cntl_stack_size,\ncp_hqd_cntl_stack_offset and cp_hqd_wg_state_offset. With offset > size\nor wave state offset < size, get_wave_state() returns wrapped sizes.\n\nTake the per-XCC size from topology, 0 for queues without a control\nstack, and reject larger images. In restore_mqd(), set the size to it\nand bound both offsets as init_mqd() does.\n\n(cherry picked from commit 92249023caee17bfc6f29c71d6aaa5f2298cf507)","source":"cvelist"}],"published":"2026-11-30T13:17:51.900Z","modified":"2026-12-01T06:17:55.110Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"626f7b3190b4c07917f0262162cb7fef7272c34d","fixed":"a3e9af053b5e881025eb9358946a51ab4c61d22a","status":"affected"},{"type":"git","introduced":"626f7b3190b4c07917f0262162cb7fef7272c34d","fixed":"250e92ce55aa3c37ab0a7a6b8aad688e7bb8b25e","status":"affected"},{"type":"git","introduced":"626f7b3190b4c07917f0262162cb7fef7272c34d","fixed":"9cfce679d88f6f83d15e99fdba0d5769120f0faf","status":"affected"},{"type":"git","introduced":"626f7b3190b4c07917f0262162cb7fef7272c34d","fixed":"90d91a192751cd9a7d9d2286299bc72ec1c28179","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.18","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/a3e9af053b5e881025eb9358946a51ab4c61d22a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/250e92ce55aa3c37ab0a7a6b8aad688e7bb8b25e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9cfce679d88f6f83d15e99fdba0d5769120f0faf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/90d91a192751cd9a7d9d2286299bc72ec1c28179","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99874","url":"https://www.cve.org/CVERecord?id=CVE-2026-99874","licence":"CVE Terms of Use","modified":"2026-12-01T05:43:59.059Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99874","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99874","licence":"Public domain","modified":"2026-12-01T06:17:55.110Z"}],"updatedAt":"2026-12-01T06:32:27.871Z","epss":{"score":0.00189,"percentile":0.0901,"date":"2026-12-01T12:00:22.000Z"}}