drm/panthor: Fix race when converting group handle to group object
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.10.146.11.36.12In 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().
From the CVE record · Linux
The Linux kernel's drm/panthor component has a race between retrieving a group object pointer from an XArray and incrementing its reference count. A concurrent removal can occur during that gap. The input does not specify what an attacker could achieve or whether exploitation requires network access, authentication, local access, or user interaction.
Engineers running Linux kernels with drm/panthor should check their versions; affected versions are not specified.