CVE-2025-39706

drm/amdkfd: Destroy KFD debugfs after destroy KFD wq

No CVSS score yet EPSS 0.17%

Published 5 Sep 2025 Updated 12 May 2026 CNA: Linux

Check your servers for CVE-2025-39706

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-39706 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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)

Exploitation

EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.06% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 4a488a7ad71401169cecee75dc94bcce642e2c53, before fc35c955da799ba62f6f977d58e0866d0251e3f8
affected from 4a488a7ad71401169cecee75dc94bcce642e2c53, before 74ee7445c3b61c3bd899a54bd82c1982cb3a8206
affected from 4a488a7ad71401169cecee75dc94bcce642e2c53, before 96609a51e6134542bf90e053c2cd2fe4f61ebce3
affected from 4a488a7ad71401169cecee75dc94bcce642e2c53, before 910735ded17cc306625e7e1cdcc8102f7ac60994
affected from 4a488a7ad71401169cecee75dc94bcce642e2c53, before 2e58401a24e7b2d4ec619104e1a76590c1284a4c
Other versions: unaffected
Linux
affected 3.19
unaffected before 3.19
unaffected from 6.1.149 up to and including 6.1.*
unaffected from 6.6.103 up to and including 6.6.*
unaffected from 6.12.44 up to and including 6.12.*
unaffected from 6.16.4 up to and including 6.16.*
unaffected 6.17 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-39706 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-39706

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-39706
trivy image --scanners vuln IMAGE | grep CVE-2025-39706

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-39706 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.