Skip to contentSkip to conversation

CVE-2025-68748: drm/panthor: Fix UAF race between device unplug and FW event processing

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 24, 2025

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 UAF race between device unplug and FW event processing

The function panthor_fw_unplug() will free the FW memory sections. The problem is that there could still be pending FW events which are yet not handled at this point. process_fw_events_work() can in this case try to access said freed memory.

Simply call disable_work_sync() to both drain and prevent future invocation of process_fw_events_work().

The Linux kernel CVE team has assigned CVE-2025-68748 to this issue.

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

	Issue introduced in 6.10 with commit de85488138247d034eb3241840424a54d660926b and fixed in 6.12.63 with commit 31db188355a49337e3e8ec98b99377e482eab22c
	Issue introduced in 6.10 with commit de85488138247d034eb3241840424a54d660926b and fixed in 6.17.13 with commit 5e3ff56d4cb591daea70786d07dc21d06dc34108
	Issue introduced in 6.10 with commit de85488138247d034eb3241840424a54d660926b and fixed in 6.18.2 with commit 6c1da9ae2c123a9ffda5375e64cc81f9ed3cc04a
	Issue introduced in 6.10 with commit de85488138247d034eb3241840424a54d660926b and fixed in 6.19-rc1 with commit 7051f6ba968fa69918d72cc26de4d6cf7ea05b90

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-2025-68748

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/31db188355a49337e3e8ec98b99377e482eab22c
	https://git.kernel.org/stable/c/5e3ff56d4cb591daea70786d07dc21d06dc34108
	https://git.kernel.org/stable/c/6c1da9ae2c123a9ffda5375e64cc81f9ed3cc04a
	https://git.kernel.org/stable/c/7051f6ba968fa69918d72cc26de4d6cf7ea05b90