Skip to contentSkip to conversation

CVE-2023-54138: drm/msm: fix NULL-deref on irq uninstall

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/msm: fix NULL-deref on irq uninstall

In case of early initialisation errors and on platforms that do not use the DPU controller, the deinitilisation code can be called with the kms pointer set to NULL.

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

The Linux kernel CVE team has assigned CVE-2023-54138 to this issue.

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

	Issue introduced in 5.15 with commit f026e431cf861197dc03217d1920b38b80b31dd9 and fixed in 5.15.112 with commit e2d1cc82ad509c07a9ab0ab4bf88b6613fbf784b
	Issue introduced in 5.15 with commit f026e431cf861197dc03217d1920b38b80b31dd9 and fixed in 6.1.29 with commit dd8ce825b165acf997689c5ffa45d6a7a1fc0260
	Issue introduced in 5.15 with commit f026e431cf861197dc03217d1920b38b80b31dd9 and fixed in 6.2.16 with commit bafa985acff9b0ed53957beff33c18be08d6b9a6
	Issue introduced in 5.15 with commit f026e431cf861197dc03217d1920b38b80b31dd9 and fixed in 6.3.3 with commit 72092e34742e8b34accdadfa7bd9a13cf255a531
	Issue introduced in 5.15 with commit f026e431cf861197dc03217d1920b38b80b31dd9 and fixed in 6.4 with commit cd459c005de3e2b855a8cc7768e633ce9d018e9f

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-2023-54138

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/msm_drv.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/e2d1cc82ad509c07a9ab0ab4bf88b6613fbf784b
	https://git.kernel.org/stable/c/dd8ce825b165acf997689c5ffa45d6a7a1fc0260
	https://git.kernel.org/stable/c/bafa985acff9b0ed53957beff33c18be08d6b9a6
	https://git.kernel.org/stable/c/72092e34742e8b34accdadfa7bd9a13cf255a531
	https://git.kernel.org/stable/c/cd459c005de3e2b855a8cc7768e633ce9d018e9f