Linux
drm/gem: fix race between change_handle and handle_delete
In the Linux kernel, the following vulnerability has been resolved: drm/gem: fix race between change_handle and handle_delete drm_gem_change_handle_ioctl leaves the old handle live in the IDR during the window between spin_unlock(table_lock) and the final spin_lock(table_lock). A concurrent drm_gem_handle_delete on the old handle succeeds in this window, decrements handle_count to 0, and frees the GEM object while the new handle's IDR entry still references it. NULL the old handle's IDR entry before dropping table_lock so that any concurrent GEM_CLOSE on the old handle sees NULL and returns -EINVAL. Restore the old entry on the prime-bookkeeping error path.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 672464dd53231509c9c771110798c56d4660e19e, < 0dfa42cfe4dbe114533480503934f43e33c1e83d
- >= 61bd96d3e5472c253f9c1ab77608f0c8aaa9d025, < cde2c9257cbe8463b9dcf7b1075177b72b5fd938
- >= 5e28b7b94408897e41c63477aabc9e1db439bc8c, < 7164d78559b0ff29931a366a840a9e5dd53d4b7c
Fixed in 0dfa42cfe4dbe114533480503934f43e33c1e83d, cde2c9257cbe8463b9dcf7b1075177b72b5fd938, 7164d78559b0ff29931a366a840a9e5dd53d4b7c
- >= 6.18.32, < 6.18.35
- >= 7.0.9, < 7.0.12
Fixed in 6.18.35, 7.0.12
Mitigation
Upgrade Linux to 0dfa42cfe4dbe114533480503934f43e33c1e83d or cde2c9257cbe8463b9dcf7b1075177b72b5fd938 or 7164d78559b0ff29931a366a840a9e5dd53d4b7c or later.
Upgrade Linux to 6.18.35 or 7.0.12 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.