Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-99874

published high CVSS 3.1 · 7.1

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

Published
30 Nov 2026, 13:17:51 UTC
Updated
01 Dec 2026, 05:43:59 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux626f7b3190b4c07917f0262162cb7fef7272c34d to < a3e9af053b5e881025eb9358946a51ab4c61d22a · 626f7b3190b4c07917f0262162cb7fef7272c34d to < 250e92ce55aa3c37ab0a7a6b8aad688e7bb8b25e · 626f7b3190b4c07917f0262162cb7fef7272c34d to < 9cfce679d88f6f83d15e99fdba0d5769120f0faf · 626f7b3190b4c07917f0262162cb7fef7272c34d to < 90d91a192751cd9a7d9d2286299bc72ec1c28179 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.18 (affected) · 0 to < 5.18 (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

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)

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.1 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Scenarios
en: 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. AC: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. PR: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. UI: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. S: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. C: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. I: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. A: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.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 626f7b3190b4c07917f0262162cb7fef7272c34d to < a3e9af053b5e881025eb9358946a51ab4c61d22a (affected · git)626f7b3190b4c07917f0262162cb7fef7272c34d to < 250e92ce55aa3c37ab0a7a6b8aad688e7bb8b25e (affected · git)626f7b3190b4c07917f0262162cb7fef7272c34d to < 9cfce679d88f6f83d15e99fdba0d5769120f0faf (affected · git)626f7b3190b4c07917f0262162cb7fef7272c34d to < 90d91a192751cd9a7d9d2286299bc72ec1c28179 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.18 (affected)0 to < 5.18 (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

1

Linux · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
4702e30b11b5d3d38ef71b7b003daaacb07a3138b4258ab9a99b48851b1c287f
Ingested
01 Dec 2026, 05:47:23 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected