In the Linux kernel, the following vulnerability has been resolved: drm/panthor: Fix race when converting group handle to group object XArray provides it's own internal lock which protects the internal array when entries are being simultaneously added and removed. However there is still a race between retrieving the pointer from the XArray and incrementing the reference count. To avoid this race simply hold the internal XArray lock when incrementing the reference count, this ensures there cannot be a racing call to xa_erase().
https://git.kernel.org/stable/c/cac075706f298948898b1f63e81709df42afa75d
https://git.kernel.org/stable/c/8a585d553c11965332d7a2d74e79ef92a42bfc87
https://git.kernel.org/stable/c/44742138d151c3a945460ae7beff8ae45ac0bf58