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

- Priority: **Insufficient evidence**
- Reason: No CVSS vector published; no exploitation reported by the 5 checked sources
- Next step: Check the vendor advisory
- Status: published
- Published: 2026-11-20 · Modified: 2026-11-20
- Aliases: DEBIAN-CVE-2026-99621, UBUNTU-CVE-2026-99621, CGA-4f9c-hmmw-q966, CGA-58jf-6jxp-49h8, CGA-6qc9-f8xw-q4vh, CGA-873c-64ff-98gr, CGA-8hvf-j79r-2qqm, CGA-gv88-xj39-gvjv, CGA-jff5-vwgx-6gfw, CGA-pmqc-vrhx-522r, CGA-rx43-rvxw-rfm9, CGA-wf2q-v9xc-r76h, CGA-5fw4-mh73-85gp, CGA-5p38-r9rv-2xrp, CGA-73fp-fmvf-g4gm, CGA-f4p3-jmg8-92fm, CGA-hr99-g6m5-fj35, CGA-jfcx-98hx-859v, CGA-w593-qrg3-fq3r, CGA-3mxr-pv64-7vh2, CGA-f2q7-mm78-5f4f
- Record: https://cvemate.com/vulnerability/CVE-2026-99621 · JSON: https://cvemate.com/vulnerability/CVE-2026-99621/json

## Description

```text
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)
```

## Signals

- CVSS: none published
- EPSS: 0.156%, percentile 4.938%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 133)

- chainguard linux-desktop-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-modules (Chainguard): All versions (No fix recorded)
- debian linux (Debian): All versions (No fix recorded) \| \< 7.3.5-1
- ubuntu linux (Ubuntu): All versions (No fix recorded)
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/1ae594845217ce740b27ec5a202e9e8cb144e0aa>
- <https://git.kernel.org/stable/c/e0a1404b34e0002f03f7979cdb791a9b5c3963f5>
- <https://security-tracker.debian.org/tracker/CVE-2026-99621>
- <https://ubuntu.com/security/CVE-2026-99621>
- <https://www.cve.org/CVERecord?id=CVE-2026-99621>
- <https://git.kernel.org/linus/e0a1404b34e0002f03f7979cdb791a9b5c3963f5>

---

Data as of 2026-12-05T14:03:29.554Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
