drm/panthor: Fix TOCTOU race between GROUP_REGISTERED check and erase
NIST has received this entry but not started reviewing it.
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().
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from c6bbec068a9accd6f1df05f3df9a5254c99292ee, before 01806613d39191f530e72926960b20638e8cde93; from c646ebff3fa571e7ea974235286fb9ed3edc260c, before aa0be226ff227b051205d05dcfd6d38c0200e5ae; from eec7e23d848d2194dd8791fcd0f4a54d4378eecd, before 4fa318e637dc83ed621073b058bcf404a2ff0845; from eec7e23d848d2194dd8791fcd0f4a54d4378eecd, before 7764289d76a38c3a2f9b093bf17e193ab54acd70; deb8b2491f6b9882ae02d7dc2651c7bf4f3b7e05; from 6.12.114, before 6.12.117; and 2 more | 01806613d39191f530e72926960b20638e8cde93; aa0be226ff227b051205d05dcfd6d38c0200e5ae; 4fa318e637dc83ed621073b058bcf404a2ff0845; 7764289d76a38c3a2f9b093bf17e193ab54acd70 |
| Linux Linux | Software | 6.19 | not recorded |
The 7.8 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | On the machine | The attacker needs access to the computer itself, for example a login or a file they can get you to open. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 1.8 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.9 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 4 sources for this flaw, none tagged as a vendor patch.