# CVE-2026-99621: drm/amdgpu: unlock the VM and BO when attaching a KFD BO fails

- 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.16%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-11-20T05:49:41.407Z
- Modified: 2026-11-20T06:17:54.757Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/amdgpu: unlock the VM and BO when attaching a KFD BO fails

kfd_mem_attach() locks the page directory and the BO with a drm_exec
transaction on its stack, but leaves through the unwind label without
drm_exec_fini() when locking fails, e.g. when MAP_MEMORY_TO_GPU gets a
signal while the page directory or the BO is busy. Reservations already
acquired then remain locked with their ww_acquire_ctx pointing into the
expired stack frame.

With one thread doing GEM_VA map/unmap on the KFD VM and
another one mapping KFD BOs while getting SIGUSR1 every 20 us:

  BUG: KASAN: stack-out-of-bounds in __ww_mutex_lock.constprop.0+0x34f5/0x3da0
   ww_mutex_lock_interruptible+0x2f/0x150
   drm_exec_lock_obj+0x107/0x2d0 [drm_exec]
   kfd_mem_attach+0x4dd/0x1b60 [amdgpu]

and the process ends up in D state.

Finish the transaction before unwinding.

(cherry picked from commit 7b885fa27e4b9fa5cbdc64e66fc35872aee296f5)

(As written by CVE List.)

## Affected

- Linux Linux: from fd1fa48b935f22c7d99713bf33846e14a6bb6ab9 before 1ae594845217ce740b27ec5a202e9e8cb144e0aa; from fd1fa48b935f22c7d99713bf33846e14a6bb6ab9 before e0a1404b34e0002f03f7979cdb791a9b5c3963f5; 7.0 (not affected: before 7.0; from 7.3.5 up to 7.3.*; from 7.4-rc2 up to *)

## References

- <https://git.kernel.org/stable/c/1ae594845217ce740b27ec5a202e9e8cb144e0aa>
- <https://git.kernel.org/stable/c/e0a1404b34e0002f03f7979cdb791a9b5c3963f5>

## Sources

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

---

Page: https://cve.day/CVE-2026-99621 · Whole record: https://cve.day/CVE-2026-99621.json · Rebuilt by cve.day 2026-11-25T22:59:52.283Z
