Skip to contentSkip to conversation

CVE-2026-93175: drm/amd/display: Fix dangling pointer in CRTC reset function

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

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: Fix dangling pointer in CRTC reset function

amdgpu_dm_crtc_reset_state() frees the old state before allocating a new one. If kzalloc() fails, the function returns without updating the state pointer, leaving a dangling pointer to already freed memory.

Fix this by allocating the new state first. On allocation failure, the old state remains untouched and the function safely returns.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

[adjust for movement around current amd-staging-drm-next]

The Linux kernel CVE team has assigned CVE-2026-93175 to this issue.

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

	Issue introduced in 4.15 with commit e7b07ceef2a650e5ed8ca37997689e086c680daf and fixed in 7.2.6 with commit 32bd68edbc6cbcfac0e4033b64f0bcadbf0efef5
	Issue introduced in 4.15 with commit e7b07ceef2a650e5ed8ca37997689e086c680daf and fixed in 7.3-rc1 with commit 0aeed866cb938943908c3ba46422128e49d2d080

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-2026-93175

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_crtc.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/32bd68edbc6cbcfac0e4033b64f0bcadbf0efef5
	https://git.kernel.org/stable/c/0aeed866cb938943908c3ba46422128e49d2d080