Skip to contentSkip to conversation

CVE-2026-99480: drm/panthor: Fix TOCTOU race between GROUP_REGISTERED check and erase

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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().

The Linux kernel CVE team has assigned CVE-2026-99480 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.12.114 with commit c6bbec068a9accd6f1df05f3df9a5254c99292ee and fixed in 6.12.117 with commit 01806613d39191f530e72926960b20638e8cde93
	Issue introduced in 6.18.2 with commit c646ebff3fa571e7ea974235286fb9ed3edc260c and fixed in 6.18.61 with commit aa0be226ff227b051205d05dcfd6d38c0200e5ae
	Issue introduced in 6.19 with commit eec7e23d848d2194dd8791fcd0f4a54d4378eecd and fixed in 7.3.2 with commit 4fa318e637dc83ed621073b058bcf404a2ff0845
	Issue introduced in 6.19 with commit eec7e23d848d2194dd8791fcd0f4a54d4378eecd and fixed in 7.4-rc1 with commit 7764289d76a38c3a2f9b093bf17e193ab54acd70
	Issue introduced in 6.17.13 with commit deb8b2491f6b9882ae02d7dc2651c7bf4f3b7e05

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99480

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/gpu/drm/panthor/panthor_sched.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/01806613d39191f530e72926960b20638e8cde93
	https://git.kernel.org/stable/c/aa0be226ff227b051205d05dcfd6d38c0200e5ae
	https://git.kernel.org/stable/c/4fa318e637dc83ed621073b058bcf404a2ff0845
	https://git.kernel.org/stable/c/7764289d76a38c3a2f9b093bf17e193ab54acd70