Skip to contentSkip to conversation

CVE-2025-71103: drm/msm: adreno: fix deferencing ifpc_reglist when not declared

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jan 14

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: adreno: fix deferencing ifpc_reglist when not declared

On plaforms with an a7xx GPU not supporting IFPC, the ifpc_reglist if still deferenced in a7xx_patch_pwrup_reglist() which causes a kernel crash:

Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008
...
pc : a6xx_hw_init+0x155c/0x1e4c [msm]
lr : a6xx_hw_init+0x9a8/0x1e4c [msm]
...
Call trace:
  a6xx_hw_init+0x155c/0x1e4c [msm] (P)
  msm_gpu_hw_init+0x58/0x88 [msm]
  adreno_load_gpu+0x94/0x1fc [msm]
  msm_open+0xe4/0xf4 [msm]
  drm_file_alloc+0x1a0/0x2e4 [drm]
  drm_client_init+0x7c/0x104 [drm]
  drm_fbdev_client_setup+0x94/0xcf0 [drm_client_lib]
  drm_client_setup+0xb4/0xd8 [drm_client_lib]
  msm_drm_kms_post_init+0x2c/0x3c [msm]
  msm_drm_init+0x1a4/0x228 [msm]
  msm_drm_bind+0x30/0x3c [msm]

...

Check the validity of ifpc_reglist before deferencing the table to setup the register values.

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

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

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

	Issue introduced in 6.18 with commit a6a0157cc68ec561392fc81f603b5b9de1a20e4e and fixed in 6.18.3 with commit 19648135e904bce447d368ecb6136e5da809639c
	Issue introduced in 6.18 with commit a6a0157cc68ec561392fc81f603b5b9de1a20e4e and fixed in 6.19-rc3 with commit 129049d4fe22c998ae9fd1ec479fbb4ed5338c15

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

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/19648135e904bce447d368ecb6136e5da809639c
	https://git.kernel.org/stable/c/129049d4fe22c998ae9fd1ec479fbb4ed5338c15