CVE-2026-97496
published high CVSS 3.1 · 7.1drm/amdkfd: Fix OOB memory exposure in get_wave_state()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux42c6c48214b726c30918e8dc80e2168607d13ae4 to < e2bef0f168be46692a6b900916ff5da3771480ed · 42c6c48214b726c30918e8dc80e2168607d13ae4 to < d9183d974ddd5f09d029beaf359275ac20d4d5fe · 42c6c48214b726c30918e8dc80e2168607d13ae4 to < ec646686613d8ab05b282d1463a7baa49fd6b83b · 42c6c48214b726c30918e8dc80e2168607d13ae4 to < 7ef144458f48d5589e36f1b3d83e83db2e5c5ba5 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.18 (affected) · 0 to < 5.18 (unaffected · semver) · 6.6.158 through 6.6.* (unaffected · semver) · 6.12.111 through 6.12.* (unaffected · semver) · 6.18.53 through 6.18.* (unaffected · semver) · 7.2 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 |
| AlmaLinux | 10 | kernel | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-64k | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-64k-core | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-64k-debug | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 10 | kernel-64k-debug-core | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-64k-debug-devel | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-64k-debug-devel-matched | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-64k-debug-modules | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-64k-debug-modules-core | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-64k-debug-modules-extra | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-64k-devel | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-64k-devel-matched | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-64k-modules | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-64k-modules-core | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-64k-modules-extra | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-abi-stablelists | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-core | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-cross-headers | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-debug | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-debug-core | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-debug-devel | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-debug-devel-matched | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-debug-modules | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-debug-modules-core | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-debug-modules-extra | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-debug-uki-virt | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-devel | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-devel-matched | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-doc | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-headers | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-modules | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-modules-core | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-modules-extra | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-modules-extra-matched | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-64k | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-64k-core | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-64k-debug | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-64k-debug-core | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-64k-debug-devel | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-64k-debug-modules | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-64k-debug-modules-core | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-64k-debug-modules-extra | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-64k-devel | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-64k-modules | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-64k-modules-core | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-64k-modules-extra | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-core | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-debug | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-debug-core | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-debug-devel | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-debug-modules | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-debug-modules-core | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-debug-modules-extra | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-devel | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-modules | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-modules-core | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-rt-modules-extra | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-tools | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-tools-libs | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-tools-libs-devel | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-uki-virt | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-uki-virt-addons | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-zfcpdump | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-zfcpdump-core | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-zfcpdump-devel | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-zfcpdump-devel-matched | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-zfcpdump-modules | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-zfcpdump-modules-core | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | kernel-zfcpdump-modules-extra | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | libperf | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | perf | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | python3-perf | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | rtla | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 10 | rv | Advisory build | 6.12.0-264.17.1.el10_3 | ALSA-2026:100661 |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-741.26.1.el9_9 | ALSA-2026:102167 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Fix OOB memory exposure in get_wave_state() The get_wave_state() function for v9 trusts cp_hqd_cntl_stack_size and cp_hqd_cntl_stack_offset values read directly from the MQD, which are written by GPU microcode and fully attacker-controlled on the CRIU-restore path (via AMDKFD_IOC_RESTORE_PROCESS with H3). this leads to an unbounded copy_to_user() that can leak adjacent GTT/kernel memory. If offset > size, integer underflow produces a ~4 GiB read length, if size is set to 1 MiB against a 4 KiB allocation, we leak 1 MiB of adjacent kernel memory (other queues' MQDs, ring buffers, KASLR pointers). Fix by clamping both cp_hqd_cntl_stack_size to the actual allocated buffer size (q->ctl_stack_size) and cp_hqd_cntl_stack_offset to the clamped size before performing arithmetic and copy_to_user(). This ensures we never read beyond the allocated kernel BO regardless of attacker-supplied MQD field values.
Related advisories
Vendor advisories explicitly linked to 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 - Attacker-controlled cp_hqd_cntl_stack_size/offset enter via AMDKFD_IOC_CRIU_OP KFD_CRIU_OP_RESTORE (kfd_ioctl_criu → criu_restore → kfd_criu_restore_queue → restore_mqd memcpy of the user MQD), then v9 get_wave_state() runs from kfd_ioctl_get_queue_wave_state (AMDKFD_IOC_GET_QUEUE_WAVE_STATE) on /dev/kfd; no remote protocol carries those fields. AC:L - restore_mqd() installs the crafted MQD then sets qp->is_active=0, so AMDKFD_IOC_GET_QUEUE_WAVE_STATE deterministically passes dqm get_wave_state()'s !is_active and cwsr_enabled checks (cwsr_enable defaults to 1) and v9 get_wave_state() copy_to_user()s using unclamped size-offset; no race or firmware quirk is required. PR:L - AMDKFD_IOC_GET_QUEUE_WAVE_STATE has ioctl flags 0, but the MQD size/offset that make get_wave_state() over-read are attacker-controlled only after KFD_CRIU_OP_RESTORE; kfd_ioctl() admits that op only with capable(CAP_CHECKPOINT_RESTORE) or capable(CAP_SYS_ADMIN), a delegated non-root cap routinely granted to CRIU/container checkpoint services. UI:N - The attacker opens /dev/kfd and issues KFD_CRIU_OP_RESTORE then AMDKFD_IOC_GET_QUEUE_WAVE_STATE against its own KFD process; no other user must mount a filesystem, open a file, or otherwise interact. S:U - The unbounded copy_to_user() from the kernel MQD control-stack BO in v9 get_wave_state() discloses host kernel/GTT memory inside the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - Pre-fix v9 get_wave_state() copy_to_user()s (cp_hqd_cntl_stack_size - cp_hqd_cntl_stack_offset) bytes from mqd+AMDGPU_GPU_PAGE_SIZE without clamping to q->ctl_stack_size, so a restored 1MiB size against a 4KiB allocate_mqd() BO (or offset>size underflow to ~4GiB) dumps adjacent GTT/kernel memory including other MQDs and KASLR pointers. I:N - The defective operation is copy_to_user() from the kernel control-stack BO to the caller's ctl_stack_address; restore_mqd() writes only sizeof(struct v9_mqd) plus ctl_stack_size into the buffer allocate_mqd() sized from q->ctl_stack_size, so this bug does not modify kernel memory out of bounds. A:H - A restored cp_hqd_cntl_stack_size of ~1MiB or an offset>size underflow to ~4GiB makes get_wave_state() copy_to_user() walk off the small kmap/vmap GTT/VRAM BO into unmapped kernel VA (and can trip CONFIG_HARDENED_USERCOPY), producing a kernel oops.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 42c6c48214b726c30918e8dc80e2168607d13ae4 to < e2bef0f168be46692a6b900916ff5da3771480ed (affected · git)42c6c48214b726c30918e8dc80e2168607d13ae4 to < d9183d974ddd5f09d029beaf359275ac20d4d5fe (affected · git)42c6c48214b726c30918e8dc80e2168607d13ae4 to < ec646686613d8ab05b282d1463a7baa49fd6b83b (affected · git)42c6c48214b726c30918e8dc80e2168607d13ae4 to < 7ef144458f48d5589e36f1b3d83e83db2e5c5ba5 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.18 (affected)0 to < 5.18 (unaffected · semver)6.6.158 through 6.6.* (unaffected · semver)6.12.111 through 6.12.* (unaffected · semver)6.18.53 through 6.18.* (unaffected · semver)7.2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
drm/amdkfd: Fix OOB memory exposure in get_wave_state()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d10ff9cc7563bd2aedcb63e5ca6439de541fce6f1242ff9c114edf8951346586
- Ingested
- 03 Oct 2026, 11:47:00 UTC
- Source record
- Official CVE record