CVE-2026-97496
drm/amdkfd: Fix OOB memory exposure in get_wave_state()
Reported by linux · Published September 24, 2026
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.
EPSS 0.12% · 2.2th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libperf | errata.rockylinux.org | 0:6.12.0-264.17.1.el10_3.x86_64, 0:6.12.0-264.17.1.el10_3.ppc64le |
| kernel-tools | errata.rockylinux.org | 0:6.12.0-264.17.1.el10_3.s390x, 0:6.12.0-264.17.1.el10_3.aarch64 |
| kernel-modules | errata.rockylinux.org | 0:6.12.0-264.17.1.el10_3.x86_64, 0:6.12.0-264.17.1.el10_3.s390x, 0:6.12.0-264.17.1.el10_3.ppc64le |
| kernel-doc | errata.rockylinux.org | 0:6.12.0-264.17.1.el10_3.noarch |
| kernel-tools-libs-devel | errata.rockylinux.org | 0:6.12.0-264.17.1.el10_3.x86_64, 0:6.12.0-264.17.1.el10_3.ppc64le |
| kernel-rt-debug-core | errata.rockylinux.org | 0:6.12.0-264.17.1.el10_3.x86_64, 0:6.12.0-264.17.1.el10_3.aarch64 |
| libperf-debuginfo | errata.rockylinux.org | 0:6.12.0-264.17.1.el10_3.x86_64, 0:6.12.0-264.17.1.el10_3.ppc64le, 0:6.12.0-264.17.1.el10_3.aarch64 |
| rtla-debuginfo | errata.rockylinux.org | 0:6.12.0-264.17.1.el10_3.ppc64le, 0:6.12.0-264.17.1.el10_3.aarch64 |
| rv | errata.rockylinux.org | 0:6.12.0-264.17.1.el10_3.ppc64le, 0:6.12.0-264.17.1.el10_3.aarch64 |
| kernel-core | errata.rockylinux.org | 0:6.12.0-264.17.1.el10_3.s390x, 0:6.12.0-264.17.1.el10_3.ppc64le, 0:6.12.0-264.17.1.el10_3.aarch64 |
| kernel-uki-virt | errata.rockylinux.org | 0:6.12.0-264.17.1.el10_3.aarch64 |
| rv-debuginfo | errata.rockylinux.org | 0:6.12.0-264.17.1.el10_3.x86_64, 0:6.12.0-264.17.1.el10_3.ppc64le |
49 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 42c6c48214b726c30918e8dc80e2168607d13ae4, 42c6c48214b726c30918e8dc80e2168607d13ae4, 42c6c48214b726c30918e8dc80e2168607d13ae4 |
| Linux | Linux | 5.18, 0, 6.6.158 |
| Linux | Linux | 6.6.158, 42c6c48214b726c30918e8dc80e2168607d13ae4, 5.18 |
| linux | linux_kernel | 5.18, 5.18, 5.18 |
Timeline
- Sep 24, 2026 CVE Published
- Sep 25, 2026 EPSS Score (4 in total, the first dated here)
- Oct 3, 2026 CVE Updated
- Nov 22, 2026 Distribution Patch
- Nov 22, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-97496
vulnetix vdb fixes CVE-2026-97496
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-97496/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart