cvelo
P4 · InfoEPSS 0.2%

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

  • CVE-2026-99873
  • GHSA-qq2p-2gwf-9r7x
  • EUVD-2026-138361

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)

Text from the CVE.org record.

Recommendation

  • Linux

    • If you run a version from 6.12.67 to before 6.13update to 6.13 or laterMinor version change: check the release notes
    • If you run a version from 6.6.122 to before 6.7update to 6.7 or laterMinor version change: check the release notes

    Some affected versions have no stated fix.

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Linux

    Affected versionsFixed in
    from 6.12.67 to before 6.136.13
    from 6.6.122 to before 6.76.7
    from 6.18.7 to before 6.19none stated
    6.19none stated
    before 6.19: not affectednone stated
    from 7.3.4 up to 7.3.*: not affectednone stated
    from 7.4-rc1 onwards: not affectednone stated

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.