CVE-2025-71314: drm/panthor: Recover from panthor_gpu_flush_caches() failures
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/panthor: Recover from panthor_gpu_flush_caches() failures
We have seen a few cases where the whole memory subsystem is blocked and flush operations never complete. When that happens, we want to:
- schedule a reset, so we can recover from this situation
- in the reset path, we need to reset the pending_reqs so we can send new commands after the reset
- if more panthor_gpu_flush_caches() operations are queued after the timeout, we skip them and return -EIO directly to avoid needless waits (the memory block won't miraculously work again)
Note that we drop the WARN_ON()s because these hangs can be triggered with buggy GPU jobs created by the UMD, and there's no way we can prevent it. We do keep the error messages though.
v2:
- New patch
v3:
- Collect R-b
- Explicitly mention the fact we dropped the WARN_ON()s in the commit message
v4:
- No changes
The Linux kernel CVE team has assigned CVE-2025-71314 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.10 with commit 5cd894e258c4b0b92b9b475309cea244e590d194 and fixed in 6.12.75 with commit 8ec4f1b14a6147db07d6e51aa1d6bcc799649847 Issue introduced in 6.10 with commit 5cd894e258c4b0b92b9b475309cea244e590d194 and fixed in 6.18.14 with commit 57753f2c64c033a21a7400b3a2192db1cd6c890e Issue introduced in 6.10 with commit 5cd894e258c4b0b92b9b475309cea244e590d194 and fixed in 6.19.4 with commit 2c899c6026fc9d39286735b30c4d8550d4ea075b Issue introduced in 6.10 with commit 5cd894e258c4b0b92b9b475309cea244e590d194 and fixed in 7.0 with commit 3c0a60195b37af83bbbaf223cd3a78945bace49e
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-71314
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_gpu.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/8ec4f1b14a6147db07d6e51aa1d6bcc799649847 https://git.kernel.org/stable/c/57753f2c64c033a21a7400b3a2192db1cd6c890e https://git.kernel.org/stable/c/2c899c6026fc9d39286735b30c4d8550d4ea075b https://git.kernel.org/stable/c/3c0a60195b37af83bbbaf223cd3a78945bace49e