Skip to contentSkip to conversation

CVE-2025-39693: drm/amd/display: Avoid a NULL pointer dereference

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 5, 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/amd/display: Avoid a NULL pointer dereference

[WHY]
Although unlikely drm_atomic_get_new_connector_state() or drm_atomic_get_old_connector_state() can return NULL.

[HOW]
Check returns before dereference.

(cherry picked from commit 1e5e8d672fec9f2ab352be121be971877bff2af9)

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

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

	Fixed in 5.15.190 with commit 9c92d12b5cb9d9d88c12ae71794d3a7382fcdec0
	Fixed in 6.1.149 with commit 6f860abff89417c0354b6ee5bbca188a233c5762
	Fixed in 6.6.103 with commit 36a6b43573d152736eaf2557fe60580dd73e9350
	Fixed in 6.12.44 with commit f653dd30839eb4f573a7539e90b8a58ff9bedf2f
	Fixed in 6.16.4 with commit 0c1a486cbe6f9cb194e3c4a8ade4af2a642ba165
	Fixed in 6.17-rc3 with commit 07b93a5704b0b72002f0c4bd1076214af67dc661

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

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/amd/display/amdgpu_dm/amdgpu_dm.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/9c92d12b5cb9d9d88c12ae71794d3a7382fcdec0
	https://git.kernel.org/stable/c/6f860abff89417c0354b6ee5bbca188a233c5762
	https://git.kernel.org/stable/c/36a6b43573d152736eaf2557fe60580dd73e9350
	https://git.kernel.org/stable/c/f653dd30839eb4f573a7539e90b8a58ff9bedf2f
	https://git.kernel.org/stable/c/0c1a486cbe6f9cb194e3c4a8ade4af2a642ba165
	https://git.kernel.org/stable/c/07b93a5704b0b72002f0c4bd1076214af67dc661