CVE-2025-37854 drm/amdkfd: Fix mode1 reset crash issue
A use-after-free race condition in the AMD KFD driver allows a local attacker to cause a system crash by exploiting GPU reset timing.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-37854?
CVE-2025-37854 is a high-severity use after free vulnerability in Debian Debian Linux, published on 9 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-416
Which versions are affected by CVE-2025-37854?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2025-37854?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2025-37854 being exploited?
There is no known exploitation of CVE-2025-37854 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as BELL-CVE-2025-37854, DEBIAN-CVE-2025-37854, GHSA-fq6q-p88p-jgr2, ROOT-OS-DEBIAN-11-CVE-2025-37854, ROOT-OS-DEBIAN-12-CVE-2025-37854, ROOT-OS-UBUNTU-2204-CVE-2025-37854 and 2 more.