{"api_version":"1","generated_at":"2026-12-01T06:50:18+00:00","cve":"CVE-2026-99874","urls":{"html":"https://cve.report/CVE-2026-99874","api":"https://cve.report/api/cve/CVE-2026-99874.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99874","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99874"},"summary":{"title":"drm/amdkfd: Validate the control stack of a restored queue","description":"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)","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:20:21","updated_at":"2026-12-01 06:17:55"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.1","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.1","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","data":{"baseScore":7.1,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/250e92ce55aa3c37ab0a7a6b8aad688e7bb8b25e","name":"https://git.kernel.org/stable/c/250e92ce55aa3c37ab0a7a6b8aad688e7bb8b25e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a3e9af053b5e881025eb9358946a51ab4c61d22a","name":"https://git.kernel.org/stable/c/a3e9af053b5e881025eb9358946a51ab4c61d22a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/90d91a192751cd9a7d9d2286299bc72ec1c28179","name":"https://git.kernel.org/stable/c/90d91a192751cd9a7d9d2286299bc72ec1c28179","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9cfce679d88f6f83d15e99fdba0d5769120f0faf","name":"https://git.kernel.org/stable/c/9cfce679d88f6f83d15e99fdba0d5769120f0faf","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99874","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99874","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 626f7b3190b4c07917f0262162cb7fef7272c34d a3e9af053b5e881025eb9358946a51ab4c61d22a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 626f7b3190b4c07917f0262162cb7fef7272c34d 250e92ce55aa3c37ab0a7a6b8aad688e7bb8b25e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 626f7b3190b4c07917f0262162cb7fef7272c34d 9cfce679d88f6f83d15e99fdba0d5769120f0faf git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 626f7b3190b4c07917f0262162cb7fef7272c34d 90d91a192751cd9a7d9d2286299bc72ec1c28179 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.18","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.18 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.h","drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c","drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c","drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c","drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c","drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c","drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c","drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"a3e9af053b5e881025eb9358946a51ab4c61d22a","status":"affected","version":"626f7b3190b4c07917f0262162cb7fef7272c34d","versionType":"git"},{"lessThan":"250e92ce55aa3c37ab0a7a6b8aad688e7bb8b25e","status":"affected","version":"626f7b3190b4c07917f0262162cb7fef7272c34d","versionType":"git"},{"lessThan":"9cfce679d88f6f83d15e99fdba0d5769120f0faf","status":"affected","version":"626f7b3190b4c07917f0262162cb7fef7272c34d","versionType":"git"},{"lessThan":"90d91a192751cd9a7d9d2286299bc72ec1c28179","status":"affected","version":"626f7b3190b4c07917f0262162cb7fef7272c34d","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.h","drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c","drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c","drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c","drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c","drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c","drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c","drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.18"},{"lessThan":"5.18","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"5.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"5.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"5.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.18","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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)"}],"metrics":[{"cvssV3_1":{"baseScore":7.1,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - Bad data enters through the AMDKFD_IOC_CRIU_OP KFD_CRIU_OP_RESTORE ioctl on /dev/kfd (kfd_ioctl_criu -> criu_restore -> kfd_criu_restore_queue -> pqm_create_queue -> restore_mqd), where q_data->ctl_stack_size and the MQD's cp_hqd_cntl_stack_size/offset come from the caller's priv_data blob. No network protocol carries them.\nAC:L - The caller supplies both the BO-sizing q_data->ctl_stack_size (e.g. 0, a one-page v9 MQD BO) and an independent large cp_hqd_cntl_stack_size in one restore blob. Then KFD_CRIU_OP_PROCESS_INFO and CHECKPOINT on the still-inactive queue make checkpoint_mqd() read past the BO deterministically, with no race and without running the GPU.\nPR:L - kfd_ioctl() admits CRIU_OP only with capable(CAP_CHECKPOINT_RESTORE) or capable(CAP_SYS_ADMIN) in the init namespace, so user namespaces don't reach it. CAP_CHECKPOINT_RESTORE is the narrow capability meant for delegation to non-root CRIU tooling, which matches the PR:L given to the sibling CRIU-restore CVEs.\nUI:N - The attacker restores, pauses and checkpoints its own KFD process with its own /dev/kfd and render-node fds; nobody else has to mount, open or approve anything.\nS:U - The over-read and the oops stay in host kernel memory (the vmap'd/kmap'd MQD BO and its neighbours) within the same kernel authority. No VM, IOMMU or sandbox boundary is crossed.\nC:H - checkpoint_mqd() clamps only to topology mm->ctl_stack_size, not the image-sized BO. On arm64/ppc64 drm_arch_can_wc_memory() masks USWC, so the one-page BO is kmap'd from the direct map and the next physical page is copied to the user's checkpoint buffer. In trees before CVE-2026-97496 (all 6.1.y), v9 get_wave_state() copy_to_user()s the unclamped cp_hqd_cntl_stack_size.\nI:N - CPU-side restore_mqd() copies the image control stack into a BO that allocate_mqd() sized from the same qp->ctl_stack_size, so nothing is written out of bounds. The wrapped get_wave_state() header sizes only go into the caller's own buffer, and any GPU CP overrun from the bogus MQD fields is firmware behaviour that can't be shown from the kernel code.\nA:H - On x86 the USWC MQD BO is vmap'd with a guard page, so checkpoint_mqd()'s memcpy from mqd+4K past a one-page BO faults and oopses with dqm_lock held, wedging KFD queue management. A ctl_stack_size of 0xFFFFFFFF also hits the page allocator's WARN in kmalloc(), which panics under panic_on_warn."}]}],"providerMetadata":{"dateUpdated":"2026-12-01T05:43:59.059Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/a3e9af053b5e881025eb9358946a51ab4c61d22a"},{"url":"https://git.kernel.org/stable/c/250e92ce55aa3c37ab0a7a6b8aad688e7bb8b25e"},{"url":"https://git.kernel.org/stable/c/9cfce679d88f6f83d15e99fdba0d5769120f0faf"},{"url":"https://git.kernel.org/stable/c/90d91a192751cd9a7d9d2286299bc72ec1c28179"}],"title":"drm/amdkfd: Validate the control stack of a restored queue","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99874","datePublished":"2026-11-30T13:17:51.900Z","dateReserved":"2026-09-25T10:25:14.440Z","dateUpdated":"2026-12-01T05:43:59.059Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:20:21","lastModifiedDate":"2026-12-01 06:17:55","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.2}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99874","Ordinal":"1","Title":"drm/amdkfd: Validate the control stack of a restored queue","CVE":"CVE-2026-99874","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99874","Ordinal":"1","NoteData":"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)","Type":"Description","Title":"drm/amdkfd: Validate the control stack of a restored queue"}]}}}