{"id":"CVE-2026-68258","state":"PUBLISHED","title":"drm/amdkfd: Check bounds on CRIU restore queue type and mqd size","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: Check bounds on CRIU restore queue type and mqd size\n\nWe weren't checking whether the values provided in the private\ndata in kfd CRIU restore were within bounds.\n\nFor queue type, add a KFD_QUEUE_TYPE_MAX and ensure the provided\ntype is less than it.\n\nFor mqd_size, add new function mqd_size_from_queue_type and confirm\nthat the provided mqd_size matches expectations.\n\n(cherry picked from commit f19d8086f6644083c913d70bfdeee20e1b6f46a5)","publishedAt":"2026-08-10T12:01:32.149Z","updatedAt":"2026-10-30T12:28:16.935Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"42c6c48214b726c30918e8dc80e2168607d13ae4","status":"affected","lessThan":"dcd8f5e049ff31e73f91fbccd9a9b9d725a2ff3e","versionType":"git"},{"version":"42c6c48214b726c30918e8dc80e2168607d13ae4","status":"affected","lessThan":"2b817c0dfc653bf33d0e0ab8155ff7807a617487","versionType":"git"},{"version":"42c6c48214b726c30918e8dc80e2168607d13ae4","status":"affected","lessThan":"1956aa246c65c5895589664ccb37d0710aa8d304","versionType":"git"},{"version":"42c6c48214b726c30918e8dc80e2168607d13ae4","status":"affected","lessThan":"fd1691ec62701c982ea32e749678988c67fd4c21","versionType":"git"},{"version":"42c6c48214b726c30918e8dc80e2168607d13ae4","status":"affected","lessThan":"cc10a5839756982504ee8568fc1e1625962ab7f8","versionType":"git"},{"version":"42c6c48214b726c30918e8dc80e2168607d13ae4","status":"affected","lessThan":"47ea05f246bebc81c7796f56265cffd812cf0601","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c","drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.h","drivers/gpu/drm/amd/amdkfd/kfd_priv.h","drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.114","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.42","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.6","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c","drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.h","drivers/gpu/drm/amd/amdkfd/kfd_priv.h","drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c"]}],"references":["https://git.kernel.org/stable/c/dcd8f5e049ff31e73f91fbccd9a9b9d725a2ff3e","https://git.kernel.org/stable/c/2b817c0dfc653bf33d0e0ab8155ff7807a617487","https://git.kernel.org/stable/c/1956aa246c65c5895589664ccb37d0710aa8d304","https://git.kernel.org/stable/c/fd1691ec62701c982ea32e749678988c67fd4c21","https://git.kernel.org/stable/c/cc10a5839756982504ee8568fc1e1625962ab7f8","https://git.kernel.org/stable/c/47ea05f246bebc81c7796f56265cffd812cf0601"],"weaknesses":["CWE-20"],"ingestedAt":"2026-10-30T12:46:06.359Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/68xxx/CVE-2026-68258.json","commit":"1f312381e38164a43607eebab851b151dd16861e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-68258","state":"PUBLISHED","datePublished":"2026-08-10T12:01:32.149Z","dateUpdated":"2026-10-30T12:28:16.935Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-30T09:28:09.378Z"},"containers":{"cna":{"title":"drm/amdkfd: Check bounds on CRIU restore queue type and mqd size","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: Check bounds on CRIU restore queue type and mqd size\n\nWe weren't checking whether the values provided in the private\ndata in kfd CRIU restore were within bounds.\n\nFor queue type, add a KFD_QUEUE_TYPE_MAX and ensure the provided\ntype is less than it.\n\nFor mqd_size, add new function mqd_size_from_queue_type and confirm\nthat the provided mqd_size matches expectations.\n\n(cherry picked from commit f19d8086f6644083c913d70bfdeee20e1b6f46a5)"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"42c6c48214b726c30918e8dc80e2168607d13ae4","status":"affected","lessThan":"dcd8f5e049ff31e73f91fbccd9a9b9d725a2ff3e","versionType":"git"},{"version":"42c6c48214b726c30918e8dc80e2168607d13ae4","status":"affected","lessThan":"2b817c0dfc653bf33d0e0ab8155ff7807a617487","versionType":"git"},{"version":"42c6c48214b726c30918e8dc80e2168607d13ae4","status":"affected","lessThan":"1956aa246c65c5895589664ccb37d0710aa8d304","versionType":"git"},{"version":"42c6c48214b726c30918e8dc80e2168607d13ae4","status":"affected","lessThan":"fd1691ec62701c982ea32e749678988c67fd4c21","versionType":"git"},{"version":"42c6c48214b726c30918e8dc80e2168607d13ae4","status":"affected","lessThan":"cc10a5839756982504ee8568fc1e1625962ab7f8","versionType":"git"},{"version":"42c6c48214b726c30918e8dc80e2168607d13ae4","status":"affected","lessThan":"47ea05f246bebc81c7796f56265cffd812cf0601","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c","drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.h","drivers/gpu/drm/amd/amdkfd/kfd_priv.h","drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.114","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.42","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.6","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c","drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.h","drivers/gpu/drm/amd/amdkfd/kfd_priv.h","drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/dcd8f5e049ff31e73f91fbccd9a9b9d725a2ff3e"},{"url":"https://git.kernel.org/stable/c/2b817c0dfc653bf33d0e0ab8155ff7807a617487"},{"url":"https://git.kernel.org/stable/c/1956aa246c65c5895589664ccb37d0710aa8d304"},{"url":"https://git.kernel.org/stable/c/fd1691ec62701c982ea32e749678988c67fd4c21"},{"url":"https://git.kernel.org/stable/c/cc10a5839756982504ee8568fc1e1625962ab7f8"},{"url":"https://git.kernel.org/stable/c/47ea05f246bebc81c7796f56265cffd812cf0601"}],"metrics":[{"cvssV3_1":{"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"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable code is reached only through the AMDKFD_IOC_CRIU_OP ioctl on the local /dev/kfd character device; there is no remote or adjacent-network path into amdkfd CRIU restore handling.\nAC:L - The attacker directly supplies mqd_size and type in the CRIU private data, so a single ioctl deterministically triggers the over-read or the ZERO_SIZE_PTR dereference; restore runs under p->mutex so no race must be won.\nPR:L - The attacker needs /dev/kfd access (render group) plus CAP_CHECKPOINT_RESTORE or CAP_SYS_ADMIN; CAP_CHECKPOINT_RESTORE is a delegated, non-root capability routinely granted to CRIU tooling and container checkpoint/restore services, so this is a limited privilege rather than full administrative control.\nUI:N - The attacker issues the CRIU restore and checkpoint ioctls entirely against its own KFD process context; no action by another user or victim process is required.\nS:U - The out-of-bounds read and resulting crash stay within the kernel's own security authority on the host; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - restore_mqd() memcpy's a full ASIC MQD (e.g. sizeof(struct v9_mqd)) out of a kmalloc buffer sized by the attacker's smaller mqd_size, and criu_checkpoint_queues_device() then copies the entire MQD back to userspace, disclosing adjacent kernel slab contents.\nI:N - The destination MQD buffer is allocated by the mqd manager at its own correct size and ctl_stack_size is validated against node_props, so nothing is written out of bounds; the defect is purely a source-side over-read.\nA:H - With mqd_size and ctl_stack_size both zero, kmalloc(0) returns ZERO_SIZE_PTR and the memcpy faults reading address 0x10 while dqm_lock is held, oopsing the kernel; an out-of-range queue type also trips WARN(), panicking systems with panic_on_warn."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:28:16.935Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.12.114"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.18.42"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"7.1.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-68258","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-10-16T15:46:19.338740Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","lang":"en","type":"CWE","description":"CWE-20 Improper Input Validation"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-19T20:58:58.519Z"}}]}}}