Skip to contentSkip to conversation

CVE-2025-38188: drm/msm/a7xx: Call CP_RESET_CONTEXT_STATE

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 4, 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/msm/a7xx: Call CP_RESET_CONTEXT_STATE

Calling this packet is necessary when we switch contexts because there are various pieces of state used by userspace to synchronize between BR and BV that are persistent across submits and we need to make sure that they are in a "safe" state when switching contexts. Otherwise a userspace submission in one context could cause another context to function incorrectly and hang, effectively a denial of service (although without leaking data). This was missed during initial a7xx bringup.

Patchwork: https://patchwork.freedesktop.org/patch/654924/

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

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

	Issue introduced in 6.7 with commit af66706accdf5afef45204afc87037f876e0665c and fixed in 6.12.35 with commit 8a1f52651dd8203695d293c6824d8f6c067877d1
	Issue introduced in 6.7 with commit af66706accdf5afef45204afc87037f876e0665c and fixed in 6.15.4 with commit 35fe72f3c425bbf1d580bd9066e2456b1dbae4a8
	Issue introduced in 6.7 with commit af66706accdf5afef45204afc87037f876e0665c and fixed in 6.16-rc3 with commit 2b520c6104f34e3a548525173c38ebca4402cac3

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-38188

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/msm/adreno/a6xx_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/8a1f52651dd8203695d293c6824d8f6c067877d1
	https://git.kernel.org/stable/c/35fe72f3c425bbf1d580bd9066e2456b1dbae4a8
	https://git.kernel.org/stable/c/2b520c6104f34e3a548525173c38ebca4402cac3