Skip to contentSkip to conversation

CVE-2022-50535: drm/amd/display: Fix potential null-deref in dm_resume

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 7, 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: Fix potential null-deref in dm_resume

[Why]
Fixing smatch error:
dm_resume() error: we previously assumed 'aconnector->dc_link' could be null

[How]
Check if dc_link null at the beginning of the loop, so further checks can be dropped.

The Linux kernel CVE team has assigned CVE-2022-50535 to this issue.

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

	Fixed in 4.19.276 with commit fd79b61af2782f8875c78f50cdb8630ec43e2990
	Fixed in 5.4.235 with commit d236103782de25736996a45bd36ac2a89bdc93c6
	Fixed in 5.10.173 with commit 9f73793b81637c60ccc83cc508645310b8ab7d80
	Fixed in 5.15.99 with commit bb9a5562beb982aa5ebb73c521c49596ff8b8030
	Fixed in 6.1.16 with commit 8e365f1bd672cc9320a936f6ae6f8087aa40e9bc
	Fixed in 6.2.3 with commit 00b655fa96b4e941351cc4bf5ca755a65ae94a8e
	Fixed in 6.3 with commit 7a7175a2cd84b7874bebbf8e59f134557a34161b

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-2022-50535

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/fd79b61af2782f8875c78f50cdb8630ec43e2990
	https://git.kernel.org/stable/c/d236103782de25736996a45bd36ac2a89bdc93c6
	https://git.kernel.org/stable/c/9f73793b81637c60ccc83cc508645310b8ab7d80
	https://git.kernel.org/stable/c/bb9a5562beb982aa5ebb73c521c49596ff8b8030
	https://git.kernel.org/stable/c/8e365f1bd672cc9320a936f6ae6f8087aa40e9bc
	https://git.kernel.org/stable/c/00b655fa96b4e941351cc4bf5ca755a65ae94a8e
	https://git.kernel.org/stable/c/7a7175a2cd84b7874bebbf8e59f134557a34161b