# CVE-2026-99985: drm/amdkfd: don't drop an SVM CWSR reference that was never taken

- 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.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2026-11-30T13:18:53.463Z
- Modified: 2026-11-30T14:20:41.567Z
- Assigned by: Linux

## Description

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

drm/amdkfd: don't drop an SVM CWSR reference that was never taken

When kfd_queue_acquire_buffers() fails, its error path calls
kfd_queue_release_buffers(), which also drops a queue_refcount on the
SVM range at ctx_save_restore_area_address. The SVM range is the last
buffer acquired, and kfd_queue_buffer_svm_get() takes no reference when
it fails, so on every error path this reference was never taken. If
another queue of the process uses that CWSR range, its reference is
dropped instead, and unmapping the range no longer evicts that queue
while its CWSR area is unmapped from the GPU.

On navi31, with queue A using an SVM CWSR range: munmap() of the range
logs

  Freeing queue vital buffer 0x..., queue evicted

but after a CREATE_QUEUE that reuses A's CWSR address with an unmapped
write pointer (-EINVAL), the same munmap() leaves A running without the
message.

Only put the BOs on the acquire error path. The warning and the eviction
are back after the failed CREATE_QUEUE.

(cherry picked from commit 9a08122e6361ef73f4b512d5db9596d561305519)

(As written by CVE List.)

## Affected

- Linux Linux: from b049504e211e8f4dbcd40434f2dcab2215ea1039 before 25ee77d64ae14e1f4c3035fd867364537a0f3690; from b049504e211e8f4dbcd40434f2dcab2215ea1039 before 1436e441ad19a475ce3fdaacee7efe670405cae9; from b049504e211e8f4dbcd40434f2dcab2215ea1039 before 861337bf1a6a0fb64daffdfbc5bb165c1d6ce3aa; from b049504e211e8f4dbcd40434f2dcab2215ea1039 before 030d47cc6720e0f07b502876cdbd266e309f9461; 6.12 (not affected: before 6.12; from 6.12.117 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/25ee77d64ae14e1f4c3035fd867364537a0f3690>
- <https://git.kernel.org/stable/c/1436e441ad19a475ce3fdaacee7efe670405cae9>
- <https://git.kernel.org/stable/c/861337bf1a6a0fb64daffdfbc5bb165c1d6ce3aa>
- <https://git.kernel.org/stable/c/030d47cc6720e0f07b502876cdbd266e309f9461>

## Sources

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

---

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