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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-09-05T17:21:12.841Z
- Modified: 2026-10-19T21:10:00.160Z
- Weaknesses: CWE-476
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 4a488a7ad71401169cecee75dc94bcce642e2c53 before fc35c955da799ba62f6f977d58e0866d0251e3f8; from 4a488a7ad71401169cecee75dc94bcce642e2c53 before 74ee7445c3b61c3bd899a54bd82c1982cb3a8206; from 4a488a7ad71401169cecee75dc94bcce642e2c53 before 96609a51e6134542bf90e053c2cd2fe4f61ebce3; from 4a488a7ad71401169cecee75dc94bcce642e2c53 before 910735ded17cc306625e7e1cdcc8102f7ac60994; from 4a488a7ad71401169cecee75dc94bcce642e2c53 before 2e58401a24e7b2d4ec619104e1a76590c1284a4c; 3.19 (not affected: before 3.19; from 6.1.149 up to 6.1.*; from 6.6.103 up to 6.6.*; from 6.12.44 up to 6.12.*; from 6.16.4 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 3.19 before 6.1.149; from 6.2 before 6.6.103; from 6.7 before 6.12.44; from 6.13 before 6.16.4
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/fc35c955da799ba62f6f977d58e0866d0251e3f8> (patch)
- <https://git.kernel.org/stable/c/74ee7445c3b61c3bd899a54bd82c1982cb3a8206> (patch)
- <https://git.kernel.org/stable/c/96609a51e6134542bf90e053c2cd2fe4f61ebce3> (patch)
- <https://git.kernel.org/stable/c/910735ded17cc306625e7e1cdcc8102f7ac60994> (patch)
- <https://git.kernel.org/stable/c/2e58401a24e7b2d4ec619104e1a76590c1284a4c> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (mailing-list, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>

## Sources

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

---

Page: https://cve.day/CVE-2025-39706 · Whole record: https://cve.day/CVE-2025-39706.json · Rebuilt by cve.day 2026-11-25T22:59:04.272Z
