{"id":"CVE-2026-99873","aliases":["CVE-2026-99873"],"related":[],"kind":"vulnerability","state":"published","title":"drm/amdkfd: tear down KFD processes before early fini_sw on disconnect","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: tear down KFD processes before early fini_sw on disconnect\n\nOn surprise removal, amdgpu_device_fini_hw() calls\namdgpu_amdkfd_device_fini_sw() when pci_dev_is_disconnected() is true.\nfini_sw frees kfd.dev, but KFD processes may still be alive and hold\nreferences to it: kfd_process_destroy() dereferences kfd.dev via\nkfd_processes_remove(), and svm_range_list_fini() /\nkfd_process_free_outstanding_kfd_bos() touch per-device SVM state.\n\nThe kfd_processes_count wait only happens later in\nkgd2kfd_teardown_processes(), called from the top-half remove path\nwell after fini_sw. In the observed failure the killed KFD process\n(SIGBUS on unplug) stuck in D state on its exit path, so\nkfd_processes_count never drained and the PCIe removal thread wedged\npermanently in cond_resched(), producing soft-lockup and hung-task\nsplats.\n\nTear KFD processes down before freeing kfd.dev on the disconnect\npath, and guard kgd2kfd_teardown_processes() against kfd.dev already\nbeing gone when it runs a second time.\n\n(cherry picked from commit 836f44ba87ed7b1d83e2b7bfc788f8c6437b03a7)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: tear down KFD processes before early fini_sw on disconnect\n\nOn surprise removal, amdgpu_device_fini_hw() calls\namdgpu_amdkfd_device_fini_sw() when pci_dev_is_disconnected() is true.\nfini_sw frees kfd.dev, but KFD processes may still be alive and hold\nreferences to it: kfd_process_destroy() dereferences kfd.dev via\nkfd_processes_remove(), and svm_range_list_fini() /\nkfd_process_free_outstanding_kfd_bos() touch per-device SVM state.\n\nThe kfd_processes_count wait only happens later in\nkgd2kfd_teardown_processes(), called from the top-half remove path\nwell after fini_sw. In the observed failure the killed KFD process\n(SIGBUS on unplug) stuck in D state on its exit path, so\nkfd_processes_count never drained and the PCIe removal thread wedged\npermanently in cond_resched(), producing soft-lockup and hung-task\nsplats.\n\nTear KFD processes down before freeing kfd.dev on the disconnect\npath, and guard kgd2kfd_teardown_processes() against kfd.dev already\nbeing gone when it runs a second time.\n\n(cherry picked from commit 836f44ba87ed7b1d83e2b7bfc788f8c6437b03a7)","source":"cvelist"}],"published":"2026-11-30T13:17:51.341Z","modified":"2026-11-30T14:20:21.600Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"6a0eed6acab0b93df4055548aeae1355dcaf234b","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"1233dd17f99c75787a31035656ecfeff80522421","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.3.4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/6a0eed6acab0b93df4055548aeae1355dcaf234b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1233dd17f99c75787a31035656ecfeff80522421","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99873","url":"https://www.cve.org/CVERecord?id=CVE-2026-99873","licence":"CVE Terms of Use","modified":"2026-11-30T13:17:51.341Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99873","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99873","licence":"Public domain","modified":"2026-11-30T14:20:21.600Z"}],"updatedAt":"2026-11-30T14:33:43.039Z","epss":{"score":0.00198,"percentile":0.09982,"date":"2026-12-01T12:00:22.000Z"}}