Skip to contentSkip to conversation

CVE-2026-98785: drm/amd/display: check dc_state_create_copy() for NULL in dm_suspend

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

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: check dc_state_create_copy() for NULL in dm_suspend

dc_state_create_copy() can return NULL on allocation failure. dm_suspend() only conditionally skips dm_gpureset_toggle_interrupts() and continues execution, returning success. dm_resume() then dereferences the NULL cached_dc_state in link_enc_cfg_copy() and the following dc_state->stream_count loop, crashing during GPU reset recovery.

Return -ENOMEM immediately if the copy fails, so the caller aborts suspend instead of leaving a NULL cached state for resume.

(cherry picked from commit 84b6d7932fdd2857795a257f9f258562a3cddcab)

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

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

	Issue introduced in 6.11 with commit 8092aa3ab8f7b737a34b71f91492c676a843043a and fixed in 6.12.113 with commit 686baa1f4ec43b33e39e3d4b4a4539a91d17e883
	Issue introduced in 6.11 with commit 8092aa3ab8f7b737a34b71f91492c676a843043a and fixed in 6.18.56 with commit 197946faa1b7968046ba475ae2f266847c6f51ed
	Issue introduced in 6.11 with commit 8092aa3ab8f7b737a34b71f91492c676a843043a and fixed in 7.2.10 with commit 7283b78ca07ce491984a63f6288f3f8de5bdcb22
	Issue introduced in 6.11 with commit 8092aa3ab8f7b737a34b71f91492c676a843043a and fixed in 7.3-rc6 with commit 015e72cde567d2450e282c2790773463156b2d0a
	Issue introduced in 5.10.258 with commit ea000e4b4ee5363997715531cb3d024b4e5d561c
	Issue introduced in 5.15.165 with commit d0b8b23b9c2ebec693a36fea518d8f13493ad655
	Issue introduced in 6.1.105 with commit 83c7f509ef087041604e9572938f82e18b724c9d
	Issue introduced in 6.6.46 with commit 4cc2a94d96caeb3c975acdae7351c2f997c32175
	Issue introduced in 6.10.5 with commit 1686675405d07f35eae7ff3d13a530034b899df2

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

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/686baa1f4ec43b33e39e3d4b4a4539a91d17e883
	https://git.kernel.org/stable/c/197946faa1b7968046ba475ae2f266847c6f51ed
	https://git.kernel.org/stable/c/7283b78ca07ce491984a63f6288f3f8de5bdcb22
	https://git.kernel.org/stable/c/015e72cde567d2450e282c2790773463156b2d0a