# CVE-2025-37854: drm/amdkfd: Fix mode1 reset crash issue

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-05-09T06:42:00.663Z
- Modified: 2026-08-05T11:57:51.190Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/amdkfd: Fix mode1 reset crash issue

If HW scheduler hangs and mode1 reset is used to recover GPU, KFD signal
user space to abort the processes. After process abort exit, user queues
still use the GPU to access system memory before h/w is reset while KFD
cleanup worker free system memory and free VRAM.

There is use-after-free race bug that KFD allocate and reuse the freed
system memory, and user queue write to the same system memory to corrupt
the data structure and cause driver crash.

To fix this race, KFD cleanup worker terminate user queues, then flush
reset_domain wq to wait for any GPU ongoing reset complete, and then
free outstanding BOs.

(As written by CVE List.)

## Affected

- Linux Linux: from a4c63cafa58b4bd9e15511bab77a4752b93d3aa0 before 57c9dabda80ac167de8cd71231baae37cc2f442d; from a4c63cafa58b4bd9e15511bab77a4752b93d3aa0 before 89af6b39f028c130d4362f57042927f005423e6a; from a4c63cafa58b4bd9e15511bab77a4752b93d3aa0 before ffd37d7d44d7e0b6e769d4fe6590e327f8cc3951; from a4c63cafa58b4bd9e15511bab77a4752b93d3aa0 before 6f30a847432cae84c7428e9b684b3e3fa49b2391; from a4c63cafa58b4bd9e15511bab77a4752b93d3aa0 before 9c4bcdf4068aae3e17e31c144300be405cfa03ff; from a4c63cafa58b4bd9e15511bab77a4752b93d3aa0 before f0b4440cdc1807bb6ec3dce0d6de81170803569b; 5.18 (not affected: before 5.18; from 6.1.135 up to 6.1.*; from 6.6.88 up to 6.6.*; from 6.12.24 up to 6.12.*; from 6.13.12 up to 6.13.*; from 6.14.3 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 5.18 before 6.1.135; from 6.2 before 6.6.88; from 6.7 before 6.12.24; from 6.13 before 6.13.12; from 6.14 before 6.14.3
- debian debian_linux: 11.0

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/57c9dabda80ac167de8cd71231baae37cc2f442d> (patch)
- <https://git.kernel.org/stable/c/89af6b39f028c130d4362f57042927f005423e6a> (patch)
- <https://git.kernel.org/stable/c/ffd37d7d44d7e0b6e769d4fe6590e327f8cc3951> (patch)
- <https://git.kernel.org/stable/c/6f30a847432cae84c7428e9b684b3e3fa49b2391> (patch)
- <https://git.kernel.org/stable/c/9c4bcdf4068aae3e17e31c144300be405cfa03ff> (patch)
- <https://git.kernel.org/stable/c/f0b4440cdc1807bb6ec3dce0d6de81170803569b> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html> (mailing-list)

## Sources

- CVE List: [CVE-2025-37854](https://www.cve.org/CVERecord?id=CVE-2025-37854), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-37854](https://nvd.nist.gov/vuln/detail/CVE-2025-37854), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-37854 · Whole record: https://cve.day/CVE-2025-37854.json · Rebuilt by cve.day 2026-11-25T22:58:57.848Z
