CVE-2026-72387: drm/panthor: Fix potential invalid pointer deref in group_process_tiler_oom()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/panthor: Fix potential invalid pointer deref in group_process_tiler_oom()
If heaps is an ERR_PTR(), panthor_heap_pool_put() will deref an invalid pointer. Make sure we set it to NULL in that case.
The Linux kernel CVE team has assigned CVE-2026-72387 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.10 with commit de85488138247d034eb3241840424a54d660926b and fixed in 6.12.97 with commit bfc5b91ab3ddddf636d8c1c050455bf4e14c912b Issue introduced in 6.10 with commit de85488138247d034eb3241840424a54d660926b and fixed in 6.18.40 with commit dd0b2976b7c0f4ea806855ed19ffad967d36610e Issue introduced in 6.10 with commit de85488138247d034eb3241840424a54d660926b and fixed in 7.1.5 with commit 053522ba615888e874adc04e675d9ed2e13f35af Issue introduced in 6.10 with commit de85488138247d034eb3241840424a54d660926b and fixed in 7.2-rc2 with commit b39436d0ba1571dbcda69d20ec567344b3eecfc7
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-72387
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/bfc5b91ab3ddddf636d8c1c050455bf4e14c912b https://git.kernel.org/stable/c/dd0b2976b7c0f4ea806855ed19ffad967d36610e https://git.kernel.org/stable/c/053522ba615888e874adc04e675d9ed2e13f35af https://git.kernel.org/stable/c/b39436d0ba1571dbcda69d20ec567344b3eecfc7