drm/amdkfd: tear down KFD processes before early fini_sw on disconnect

Summary

CVECVE-2026-99873
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:20:21 UTC
Updated2026-12-02 10:17:23 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: tear down KFD processes before early fini_sw on disconnect On surprise removal, amdgpu_device_fini_hw() calls amdgpu_amdkfd_device_fini_sw() when pci_dev_is_disconnected() is true. fini_sw frees kfd.dev, but KFD processes may still be alive and hold references to it: kfd_process_destroy() dereferences kfd.dev via kfd_processes_remove(), and svm_range_list_fini() / kfd_process_free_outstanding_kfd_bos() touch per-device SVM state. The kfd_processes_count wait only happens later in kgd2kfd_teardown_processes(), called from the top-half remove path well after fini_sw. In the observed failure the killed KFD process (SIGBUS on unplug) stuck in D state on its exit path, so kfd_processes_count never drained and the PCIe removal thread wedged permanently in cond_resched(), producing soft-lockup and hung-task splats. Tear KFD processes down before freeing kfd.dev on the disconnect path, and guard kgd2kfd_teardown_processes() against kfd.dev already being gone when it runs a second time. (cherry picked from commit 836f44ba87ed7b1d83e2b7bfc788f8c6437b03a7)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 28695ca09d326461f8078332aa01db516983e8a2 6a0eed6acab0b93df4055548aeae1355dcaf234b git Not specified
CNA Linux Linux affected 28695ca09d326461f8078332aa01db516983e8a2 1233dd17f99c75787a31035656ecfeff80522421 git Not specified
CNA Linux Linux affected a4218ac0bb8e70f7c0896f9df464baf2d5171ee6 git Not specified
CNA Linux Linux affected 8140ac7c55e75093a01c6110a2c4025fe7177c57 git Not specified
CNA Linux Linux affected b705daaf5f8c4ebcd5f963a1c98b159b5a1b103f git Not specified
CNA Linux Linux affected 6.6.122 6.7 semver Not specified
CNA Linux Linux affected 6.12.67 6.13 semver Not specified
CNA Linux Linux affected 6.18.7 6.19 semver Not specified
CNA Linux Linux affected 6.19 Not specified
CNA Linux Linux unaffected 6.19 semver Not specified
CNA Linux Linux unaffected 7.3.4 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/1233dd17f99c75787a31035656ecfeff80522421 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/6a0eed6acab0b93df4055548aeae1355dcaf234b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report