# CVE-2026-99873: drm/amdkfd: tear down KFD processes before early fini_sw on disconnect

- Severity: not scored yet
- 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.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-11-30T13:17:51.341Z
- Modified: 2026-11-30T14:20:21.600Z
- Assigned by: Linux

## Description

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

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 6a0eed6acab0b93df4055548aeae1355dcaf234b; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 1233dd17f99c75787a31035656ecfeff80522421; before 7.3.4 (not affected: from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/6a0eed6acab0b93df4055548aeae1355dcaf234b>
- <https://git.kernel.org/stable/c/1233dd17f99c75787a31035656ecfeff80522421>

## Sources

- CVE List: [CVE-2026-99873](https://www.cve.org/CVERecord?id=CVE-2026-99873), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-99873](https://nvd.nist.gov/vuln/detail/CVE-2026-99873), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-99873 · Whole record: https://cve.day/CVE-2026-99873.json · Rebuilt by cve.day 2026-11-30T14:33:43.039Z
