CVE-2026-97496
drm/amdkfd: Fix OOB memory exposure in get_wave_state()
Mitigation
- Upgrade Linux to 7ef144458f48d5589e36f1b3d83e83db2e5c5ba5 or later.
Who should check
- Anyone running Linux >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < e2bef0f168be46692a6b900916ff5da3771480ed; >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < d9183d974ddd5f09d029beaf359275ac20d4d5fe; >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < ec646686613d8ab05b282d1463a7baa49fd6b83b; >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < 7ef144458f48d5589e36f1b3d83e83db2e5c5ba5
- Anyone running Linux 5.18
Vulnerability facts
- Affected
- Linux >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < e2bef0f168be46692a6b900916ff5da3771480ed; >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < d9183d974ddd5f09d029beaf359275ac20d4d5fe; >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < ec646686613d8ab05b282d1463a7baa49fd6b83b; >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < 7ef144458f48d5589e36f1b3d83e83db2e5c5ba5; Linux 5.18
- Fixed in
- Linux 7ef144458f48d5589e36f1b3d83e83db2e5c5ba5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.1 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.13% chance of exploitation in 30 days (percentile 1, 2026-11-26)
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < e2bef0f168be46692a6b900916ff5da3771480ed; >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < d9183d974ddd5f09d029beaf359275ac20d4d5fe; >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < ec646686613d8ab05b282d1463a7baa49fd6b83b; >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < 7ef144458f48d5589e36f1b3d83e83db2e5c5ba5 | — | cvelist |
| Linux | 5.18 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-97496. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-97496.md Affected: Linux >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < e2bef0f168be46692a6b900916ff5da3771480ed; >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < d9183d974ddd5f09d029beaf359275ac20d4d5fe; >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < ec646686613d8ab05b282d1463a7baa49fd6b83b; >= 42c6c48214b726c30918e8d… Fixed in: Linux 7ef144458f48d5589e36f1b3d83e83db2e5c5ba5 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2026-97496 being exploited?
There is no confirmed exploitation: CVE-2026-97496 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.13% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-97496?
High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2026-97496?
Linux >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < e2bef0f168be46692a6b900916ff5da3771480ed; >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < d9183d974ddd5f09d029beaf359275ac20d4d5fe; >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < ec646686613d8ab05b282d1463a7baa49fd6b83b; >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < 7ef144458f48d5589e36f1b3d83e83db2e5c5ba5; Linux 5.18.
Is there a fix for CVE-2026-97496?
Yes. Fixed in Linux 7ef144458f48d5589e36f1b3d83e83db2e5c5ba5. Upgrade Linux to 7ef144458f48d5589e36f1b3d83e83db2e5c5ba5 or later.
How do I check if I'm affected by CVE-2026-97496?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.