Linux DRM GEM: race between gem_change_handle and gem_close leaves a freed object in the handle table
Impact
The GEM handle-change ioctl races with gem_close on the same DRM file, so a local process with an open render node can get the IDR slot to keep a reference to an object that has already been released, or steal a reference the ioctl inherited. The upstream fix is explicit that three earlier attempts at this race were wrong, and the ioctl is disabled outright in this commit rather than repaired. On a GPU node any tenant process holding /dev/dri/renderD* reaches this path, so on shared nodes a container that is only supposed to submit work gets a use-after-free primitive in the kernel. NVD scores it 7.8 local with high confidentiality, integrity and availability impact; Red Hat tracks it for RHEL 8, 9 and 10.
Who can reach it
Local user or container with an open DRM render node (/dev/dri/renderD*) - no special privilege beyond the device access any GPU workload already has. Not reachable remotely.
What to do
Take the stable kernel containing the fix - it disables DRM_IOCTL_GEM_CHANGE_HANDLE until the race is settled on-list, so applications that call the ioctl will start getting an error rather than a corrupted handle table. No userspace-only mitigation is published. Rolling the fix means drain and reboot each GPU node, or reboot after the distro kernel update; Red Hat has not published fixed RHEL versions in this record.
References
Related entries
- Linux accel/ivpu: signed truncation of firmware data_size overflows a stack buffer on IPC receiveCVE-2026-53202 · Linux kernel accel/ivpu (Intel NPU driver, IPC receive path)High
- Linux drm/xe: use-after-free when closing an EU stall sampling streamCVE-2026-53290 · Linux kernel drm/xe EU stall sampling (xe_eu_stall_stream_close)High
- Linux kernel amdgpu kernel driver core (drm/amdgpu/jpeg): A correctness defect in the amdgpu kernel driver coreCVE-2026-63840 · Linux kernel amdgpu kernel driver core (drm/amdgpu/jpeg)High
- Linux kernel amdgpu RAS / GPU reset and recovery path (drm/amdgpu/jpeg): A correctness defect in the amdgpu RAS / GPUCVE-2026-63841 · Linux kernel amdgpu RAS / GPU reset and recovery path (drm/amdgpu/jpeg)High
- Linux kernel amdgpu kernel driver core (drm/amdgpu/jpeg): A correctness defect in the amdgpu kernel driver coreCVE-2026-63842 · Linux kernel amdgpu kernel driver core (drm/amdgpu/jpeg)High
- Linux kernel amdgpu kernel driver core (drm/amdgpu/jpeg): A correctness defect in the amdgpu kernel driver coreCVE-2026-63843 · Linux kernel amdgpu kernel driver core (drm/amdgpu/jpeg)High
This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.