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-98785 Overview
CVE-2026-98785 is a NULL pointer dereference vulnerability in the Linux kernel's AMD display driver (drm/amd/display). The flaw resides in the dm_suspend() function, which calls dc_state_create_copy() without validating the return value. When memory allocation fails, the function returns NULL but dm_suspend() continues execution and reports success. During the subsequent dm_resume() call, the kernel dereferences the NULL cached_dc_state pointer in link_enc_cfg_copy() and the following dc_state->stream_count loop, triggering a crash during GPU reset recovery.
Critical Impact
A NULL pointer dereference during GPU reset recovery leads to a kernel crash, causing denial of service on affected AMD GPU systems.
Affected Products
- Linux kernel versions containing the vulnerable drm/amd/display code prior to the fix
- Systems using AMD GPUs with the AMDGPU DRM driver
- Linux stable branches patched by commits 015e72c, 197946f, 2930296, 686baa1, and 7283b78
Discovery Timeline
- 2026-10-18 - CVE-2026-98785 published to NVD
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-98785
Vulnerability Analysis
The vulnerability occurs in the AMD Display Core (DC) subsystem of the Linux kernel's Direct Rendering Manager (DRM). During a suspend operation, dm_suspend() invokes dc_state_create_copy() to snapshot the current display state. This helper function allocates memory and can return NULL under memory pressure.
The original code did not verify the return value. Instead, dm_suspend() conditionally skipped dm_gpureset_toggle_interrupts() and continued, ultimately returning success. The kernel cached a NULL state pointer and proceeded with the suspend transition.
On the subsequent resume path, dm_resume() passes the cached pointer to link_enc_cfg_copy(), which dereferences it immediately. A follow-up loop iterates over dc_state->stream_count, compounding the dereference. The result is a kernel oops during GPU reset recovery, interrupting display output and the broader resume sequence.
Root Cause
The root cause is missing allocation failure handling, a classic NULL pointer dereference pattern. The caller treated a potentially failing allocation helper as infallible, propagating an invalid state across the suspend/resume boundary.
Attack Vector
Triggering the condition requires memory allocation failure during a system suspend operation on AMD GPU hardware. This is primarily a reliability and denial of service issue affecting systems under memory pressure during power transitions or GPU reset recovery scenarios. The vulnerability is local and non-interactive, with no network attack surface identified in the published advisory.
For technical details, refer to the upstream fix in the Linux kernel stable tree, cherry-picked from commit 84b6d7932fdd2857795a257f9f258562a3cddcab. See the Kernel Patch Update 015e72c and related references.
Detection Methods for CVE-2026-98785
Indicators of Compromise
- Kernel oops or panic messages referencing link_enc_cfg_copy, dm_resume, or cached_dc_state in dmesg output
- Repeated system crashes or hangs during resume from suspend on AMD GPU systems
- Logs indicating failed GPU reset recovery sequences in the amdgpu driver
Detection Strategies
- Audit installed Linux kernel versions against the patched commits listed in the kernel.org references
- Review crash dumps and kdump collections for stack traces originating in drm/amd/display
- Monitor system logs for memory allocation failures (-ENOMEM) coinciding with suspend/resume events
Monitoring Recommendations
- Centralize kernel log collection to identify recurring suspend/resume failures across fleet systems
- Correlate GPU driver errors with memory pressure metrics on endpoints running AMD graphics
- Track kernel package versions through configuration management to confirm patch deployment
How to Mitigate CVE-2026-98785
Immediate Actions Required
- Update affected Linux kernels to a version containing the fix for dc_state_create_copy() NULL handling in dm_suspend()
- Prioritize patching on systems with AMD GPUs that frequently undergo suspend/resume or GPU reset cycles
- Validate kernel builds against the stable commit hashes referenced in the kernel.org advisories
Patch Information
The fix returns -ENOMEM immediately when dc_state_create_copy() returns NULL, ensuring the caller aborts the suspend operation rather than leaving a NULL cached state for resume. The patch has been backported across multiple Linux stable branches. Refer to the kernel.org commits 015e72c, 197946f, 2930296, 686baa1, and 7283b78.
Workarounds
- Avoid suspend/resume operations on affected systems until a patched kernel is deployed
- Reduce memory pressure during suspend operations by closing non-essential workloads
- Where feasible, disable AMD GPU runtime power management features that invoke the vulnerable code path
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

