Skip to main content
Vulnerability Database/CVE-2026-98786

CVE-2026-98786: Linux Kernel DRM AMD Display Race Condition

CVE-2026-98786 is a race condition flaw in Linux kernel's AMD display driver affecting MST mode validation. Unguarded dc_sink dereferences can occur during asynchronous teardown. This article covers technical details, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98786 Overview

CVE-2026-98786 is a NULL pointer dereference vulnerability in the Linux kernel's AMD display driver (drm/amd/display). The flaw affects MultiStream Transport (MST) mode validation paths that dereference aconnector->dc_sink without a NULL check. The dc_sink pointer is cleared asynchronously when an MST monitor is unplugged, creating a race condition with the connector probe worker's ->mode_valid callback and a compositor's atomic check.

Critical Impact

A race between MST unplug teardown and mode validation can crash the kernel through a NULL pointer dereference, resulting in a local denial of service on affected AMD GPU systems.

Affected Products

  • Linux kernel versions containing the AMD display driver (drm/amd/display) prior to the fix
  • Systems using AMD GPUs with DisplayPort MultiStream Transport (MST) configurations
  • Distributions shipping stable kernels before backport of commit 7c3db8da4e03

Discovery Timeline

  • 2026-10-18 - CVE-2026-98786 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-98786

Vulnerability Analysis

The vulnerability resides in two functions within the AMD display driver's DisplayPort MST handling code. dm_dp_mst_is_port_support_mode() reads aconnector->dc_sink->dsc_caps for the Display Stream Compression (DSC) branch-throughput check. Additionally, get_conv_frl_bw() reads aconnector->dc_sink->edid_caps.max_frl_rate on the HDMI-PCON Fixed Rate Link (FRL) bandwidth path. Both reads occur without validating that dc_sink is non-NULL.

The dc_sink field is cleared asynchronously when an MST device is unplugged. Neither calling path holds the MST manager lock used by the teardown routine, so the pointer can transition from valid to NULL mid-access. The existing dsc_aux NULL check does not cover this case because dsc_aux is not reliably cleared in every teardown path that clears dc_sink.

Root Cause

The root cause is a race condition [CWE-362] between asynchronous MST unplug teardown and synchronous mode validation callbacks. Specifically, this is a time-of-check to time-of-use (TOCTOU) issue combined with missing NULL pointer validation [CWE-476] on a pointer that may be concurrently cleared by another thread.

Attack Vector

The vulnerability is triggered when an MST sink device is unplugged while the connector probe worker or a compositor's atomic check is executing mode validation. A local user with access to display configuration or physical access to disconnect an MST device can induce the race. Successful triggering causes a kernel NULL pointer dereference, resulting in an oops and potential system instability.

No verified exploit code examples are available. See the kernel commit references for the applied patch logic.

Detection Methods for CVE-2026-98786

Indicators of Compromise

  • Kernel oops messages referencing dm_dp_mst_is_port_support_mode or get_conv_frl_bw in dmesg output
  • NULL pointer dereference traces originating from the amdgpu module in drm/amd/display paths
  • System crashes or display subsystem hangs correlated with DisplayPort MST hot-unplug events

Detection Strategies

  • Monitor kernel ring buffer (dmesg, /var/log/kern.log) for AMD display driver panic signatures following MST device disconnection
  • Audit installed kernel versions against distribution advisories for the backported fix (upstream commit 7c3db8da4e03)
  • Correlate display topology change events with subsequent kernel instability on systems with AMD GPUs driving MST hub configurations

Monitoring Recommendations

  • Collect kernel crash dumps via kdump on workstations with AMD GPUs and MST docking stations for post-crash analysis
  • Track display hotplug events via udev logs alongside kernel error telemetry to identify race condition triggers
  • Centralize endpoint kernel logs for review of recurring amdgpu fault patterns across the fleet

How to Mitigate CVE-2026-98786

Immediate Actions Required

  • Apply the latest stable Linux kernel update from your distribution vendor containing the backported fix
  • Prioritize patching of workstations and laptops with AMD discrete or integrated GPUs that use MST docking stations or daisy-chained displays
  • Validate kernel versions against the two upstream stable commits that carry the fix

Patch Information

The fix is applied in the upstream Linux kernel via commit 7c3db8da4e039698ae198c870712428644e965c7. The patch adds NULL checks for dc_sink in both dm_dp_mst_is_port_support_mode() and get_conv_frl_bw(), causing the port-support check to fail and the FRL conversion path to be skipped when the sink is already gone. The fix has been cherry-picked to stable branches as documented in Kernel Git Commit 217f64f and Kernel Git Commit daa0437f.

Workarounds

  • Avoid unplugging MST hubs or daisy-chained DisplayPort monitors while the system is actively enumerating or validating display modes
  • Where feasible, use single-stream (SST) DisplayPort connections instead of MST configurations until patched kernels are deployed
  • Restrict local user access on multi-user systems with AMD GPUs to reduce the window for triggering the race condition
bash
# Verify running kernel includes the fix
uname -r
# Check distribution advisory status for your kernel package
# Example for Debian/Ubuntu:
apt list --installed 2>/dev/null | grep linux-image
# Example for RHEL/Fedora:
rpm -q kernel

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.