CVE-2026-99633
drm/amdgpu: keep the CS user fence BO in GTT
What happened?
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: keep the CS user fence BO in GTT
The CS ioctl hands the GPU the GART address of the user fence BO, but since the BO keeps its own preferred and allowed domains, it no longer makes sure the BO is in GTT. A user fence in a VRAM BO, which only needs to be a page in size, gets its address from amdgpu_bo_gpu_offset(), which warns about non-contiguous VRAM. On navi31, a CS with a user fence in a 4K VRAM BO, or in one created with AMDGPU_GEM_CREATE_VM_ALWAYS_VALID:
WARNING: amdgpu_object.c:1531 at amdgpu_bo_gpu_offset+0x86/0xb0 [amdgpu], CPU#11: cs_gem_checks/18393 RIP: 0010:amdgpu_bo_gpu_offset+0x86/0xb0 [amdgpu] Call Trace: <TASK> amdgpu_cs_parser_bos.isra.0+0x4eb/0x850 [amdgpu] amdgpu_cs_ioctl+0x97e/0x2510 [amdgpu] drm_ioctl_kernel+0xac/0x110 [drm] drm_ioctl+0x2c6/0x5b0 [drm] __x64_sys_ioctl+0xa0/0xf0 do_syscall_64+0xa3/0x4d0 entry_SYSCALL_64_after_hwframe+0x76/0x7e
and BOs which can't be in GTT at all, like GWS or OA ones of a page in size, pass the checks as well.
Only take BOs which can't be anywhere else than in GTT as user fence, which the CS then validates there along with its other BOs. While at it, detect userptrs with amdgpu_ttm_tt_is_userptr(); amdgpu_ttm_tt_get_usermm() returns NULL once the task which created the userptr is gone.
v2: only take BOs which can only be in GTT instead of special casing the user fence BO in the validation, use amdgpu_ttm_tt_is_userptr() (Christian)
(cherry picked from commit f16989def9561d04d0f2e77216f5319112d29bf1)
Affected software and versions
| Software | Version information | Fixed version |
|---|---|---|
| LinuxLinux | affected: 1ea863fd736eed8217a0b7bc5d0bd0de6b267b80 to < 1a986bea283c22398fdc08cdb7b0fd674829fb2e; affected: 1ea863fd736eed8217a0b7bc5d0bd0de6b267b80 to < 32de880a6d81ecd6a4c9cce3a96ae88aa60a6cdb; affected: 1ea863fd736eed8217a0b7bc5d0bd0de6b267b80 to < de2887eb1c72060895a533af9e19bed9982e953c; affected: 1ea863fd736eed8217a0b7bc5d0bd0de6b267b80 to < 4ec2fa9f4e09610028f1f571fcb1f515cafd3306; affected: 1ea863fd736eed8217a0b7bc5d0bd0de6b267b80 to < b4a1229ab05f0ba7fa1a52032686e32e801fcc04; affected: 1ea863fd736eed8217a0b7bc5d0bd0de6b267b80 to < 69a46cbe11b6eb15f6d48591a67217ac634ddc3d; affected: 1ea863fd736eed8217a0b7bc5d0bd0de6b267b80 to < 2c7bd4568f5d19d63241ccdf930b15e619af7c2b; affected: 1ea863fd736eed8217a0b7bc5d0bd0de6b267b80 to < 7a56d929dc2304edaa6231e1eb5eb82b7e8b74a9 | See vendor advisory |
| LinuxLinux | affected: 4.6; unaffected: 0 to < 4.6; unaffected: 5.10.275 to ≤ 5.10.*; unaffected: 5.15.226 to ≤ 5.15.*; unaffected: 6.1.193 to ≤ 6.1.*; unaffected: 6.6.163 to ≤ 6.6.*; unaffected: 6.12.118 to ≤ 6.12.*; unaffected: 6.18.64 to ≤ 6.18.*; unaffected: 7.3.5 to ≤ 7.3.*; unaffected: 7.4-rc2 to ≤ * | See vendor advisory |
Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.
Is it being exploited?
This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.
How to respond
- Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
- Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
- Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.
Sources and remediation references
- https://www.cve.org/CVERecord?id=CVE-2026-99633
- https://git.kernel.org/stable/c/1a986bea283c22398fdc08cdb7b0fd674829fb2e
- https://git.kernel.org/stable/c/32de880a6d81ecd6a4c9cce3a96ae88aa60a6cdb
- https://git.kernel.org/stable/c/de2887eb1c72060895a533af9e19bed9982e953c
- https://git.kernel.org/stable/c/4ec2fa9f4e09610028f1f571fcb1f515cafd3306
- https://git.kernel.org/stable/c/b4a1229ab05f0ba7fa1a52032686e32e801fcc04
- https://git.kernel.org/stable/c/69a46cbe11b6eb15f6d48591a67217ac634ddc3d
- https://git.kernel.org/stable/c/2c7bd4568f5d19d63241ccdf930b15e619af7c2b
- https://git.kernel.org/stable/c/7a56d929dc2304edaa6231e1eb5eb82b7e8b74a9