A time-of-check to time-of-use (TOCTOU) race condition was identified and fixed in the Linux kernel's drm/panthor component. The issue occurs in panthor_group_destroy() where a GROUP_REGISTERED check and subsequent xa_erase() call are not performed atomically, allowing a use-after-free scenario if concurrent operations reuse the freed ID.