# CVE-2026-97496: drm/amdkfd: Fix OOB memory exposure in get\_wave\_state()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.13% (percentile 1, 2026-11-26)
- **Published:** 2026-09-24T16:04:43.625Z
- **Modified:** 2026-10-03T11:17:59.480Z

## Who should check

- Anyone running Linux \>= 42c6c48214b726c30918e8dc80e2168607d13ae4, \< e2bef0f168be46692a6b900916ff5da3771480ed; \>= 42c6c48214b726c30918e8dc80e2168607d13ae4, \< d9183d974ddd5f09d029beaf359275ac20d4d5fe; \>= 42c6c48214b726c30918e8dc80e2168607d13ae4, \< ec646686613d8ab05b282d1463a7baa49fd6b83b; \>= 42c6c48214b726c30918e8dc80e2168607d13ae4, \< 7ef144458f48d5589e36f1b3d83e83db2e5c5ba5
- Anyone running Linux 5.18

## 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

- Linux: \>= 42c6c48214b726c30918e8dc80e2168607d13ae4, \< e2bef0f168be46692a6b900916ff5da3771480ed; \>= 42c6c48214b726c30918e8dc80e2168607d13ae4, \< d9183d974ddd5f09d029beaf359275ac20d4d5fe; \>= 42c6c48214b726c30918e8dc80e2168607d13ae4, \< ec646686613d8ab05b282d1463a7baa49fd6b83b; \>= 42c6c48214b726c30918e8dc80e2168607d13ae4, \< 7ef144458f48d5589e36f1b3d83e83db2e5c5ba5 (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- Upgrade Linux to 7ef144458f48d5589e36f1b3d83e83db2e5c5ba5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- other: <https://git.kernel.org/stable/c/e2bef0f168be46692a6b900916ff5da3771480ed>
- other: <https://git.kernel.org/stable/c/d9183d974ddd5f09d029beaf359275ac20d4d5fe>
- other: <https://git.kernel.org/stable/c/ec646686613d8ab05b282d1463a7baa49fd6b83b>
- other: <https://git.kernel.org/stable/c/7ef144458f48d5589e36f1b3d83e83db2e5c5ba5>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-97496>

HTML: <https://flawdb.com/CVE-2026-97496> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-97496>
