Skip to contentSkip to conversation

CVE-2026-98786: drm/amd/display: guard dc_sink dereferences in MST mode validation

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: guard dc_sink dereferences in MST mode validation

dm_dp_mst_is_port_support_mode() reads aconnector->dc_sink->dsc_caps... for the DSC branch-throughput check, and get_conv_frl_bw()'s HDMI-PCON FRL-bandwidth path reads aconnector->dc_sink->edid_caps.max_frl_rate, both without a NULL check. dc_sink is cleared asynchronously on MST unplug, and both functions run from paths that the driver's own comments document as racing that teardown: the connector probe worker's ->mode_valid callback and a compositor's atomic check, neither of which holds the MST manager lock that the teardown path uses. The former does have an existing dsc_aux NULL check, but dsc_aux isn't reliably cleared in every path that clears dc_sink, so it doesn't cover this.

Fail the port-support check and skip the FRL conversion path when the sink is already gone.

(cherry picked from commit 7c3db8da4e039698ae198c870712428644e965c7)

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

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

	Issue introduced in 6.0 with commit f04d275d94e164d24516c32437c988a323018f63 and fixed in 7.2.10 with commit daa0437fe5e451856aaf8fda602a9fc2105bbd54
	Issue introduced in 6.0 with commit f04d275d94e164d24516c32437c988a323018f63 and fixed in 7.3-rc6 with commit 217f64f348c90cba62164e7ff38e0ccf78a5ca09

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

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_mst_types.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/daa0437fe5e451856aaf8fda602a9fc2105bbd54
	https://git.kernel.org/stable/c/217f64f348c90cba62164e7ff38e0ccf78a5ca09