# CVE-2026-99148: drm/amdgpu: keep the eviction fence until the last handle is closed

- Severity: High 7.0 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-10-28T10:35:04.360Z
- Modified: 2026-10-31T13:17:57.317Z
- Assigned by: Linux

## Description

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

drm/amdgpu: keep the eviction fence until the last handle is closed

amdgpu_gem_object_close() detaches the user queue eviction fence from
the BO before it checks bo_va->ref_count, so closing any handle of a BO
removes the fence, even when the file still has another handle to the
BO and the bo_va with its GPU mappings stays. The BO can then be evicted
without suspending the user queues of the file, which keep accessing it
through mappings that are only marked for update.

Seen on navi31 with a SDMA user queue: a BO opened twice in the same
file (GEM_FLINK + GEM_OPEN) loses its eviction fence when the second
handle is closed (traced attach/detach of the fence):

  attach bo=ffff8c78a6c84c00
  GEM_CLOSE handle=7
  detach bo=ffff8c78a6c84c00

while handle 6 and the mapping are still in use.

Only detach the fence when the last reference to the bo_va goes away,
matching amdgpu_gem_object_open(), which attaches it only when the
bo_va is created. With this the fence stays until the file is closed.

(cherry picked from commit 8387982f03d4026b7dc11b0b5e3118298eee4d6a)

(As written by CVE List.)

## Affected

- Linux Linux: from 31f7efcdca4d1caaa3a0babc33377e27e6f9b593 before dce8f7f03a47b1744dccf506268f9229b67fab47; from 31f7efcdca4d1caaa3a0babc33377e27e6f9b593 before 6467c4cc83b94850bfea614e9f98276edf9a7c3f; from 31f7efcdca4d1caaa3a0babc33377e27e6f9b593 before 3c44cbcec5eb370713bbd2c315ed7c34d8ccec2b; 6.16 (not affected: before 6.16; from 6.18.59 up to 6.18.*; from 7.2.13 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/dce8f7f03a47b1744dccf506268f9229b67fab47>
- <https://git.kernel.org/stable/c/6467c4cc83b94850bfea614e9f98276edf9a7c3f>
- <https://git.kernel.org/stable/c/3c44cbcec5eb370713bbd2c315ed7c34d8ccec2b>

## Sources

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

---

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