Linux kernel use-after-free in Panthor group destruction
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/panthor: Fix TOCTOU race between GROUP_REGISTERED check and erase
panthor_group_destroy() checks the GROUP_REGISTERED mark and then calls xa_erase() without holding the xarray lock across both. If the handle is destroyed by another thread in between, and a concurrent GROUP_CREATE reuses the freed ID, the first destroy erases and releases the new, still-initializing group, leading to a use-after-free in panthor_group_create().
Do the mark check and erase atomically under xa_lock().
From the CVE record · Linux
A race in the Linux kernel’s drm/panthor group handling can cause a use-after-free. It requires concurrent group destruction and creation that reuses a freed ID; the input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with drm/panthor should check their kernel versions against the vendor advisory; affected versions are not specified.