MEDIUM 5.5

CVE-2026-53313: Linux AMD Display Driver NULL Pointer Dereference

CVE-2026-53313 is a NULL pointer dereference vulnerability in the Linux kernel's AMD display driver (DRM/AMD). Two error-handling functions in the display management code attempt to log error messages without first verifying that a critical object is valid, risking a kernel crash. The vulnerability requires local access and occurs only in error paths, but when triggered, it can cause a denial of service. The fix involves reordering validation checks to ensure the object is safe before any code that depends on it runs.

Source data · NVD / CISA · public domain

CVSS
3.1 · 5.5 MEDIUM · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weaknesses (CWE)
CWE-476
Affected products
1 configuration(s)
Published / Modified
2026-06-26 / 2026-07-06

NVD description (verbatim)

In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Avoid NULL dereference in dc_dmub_srv error paths In dc_dmub_srv_log_diagnostic_data() and dc_dmub_srv_enable_dpia_trace(). Both functions check: if (!dc_dmub_srv || !dc_dmub_srv->dmub) and then call DC_LOG_ERROR() inside that block. DC_LOG_ERROR() uses dc_dmub_srv->ctx internally. So if dc_dmub_srv is NULL, the logging itself can dereference a NULL pointer and cause a crash. Fix this by splitting the checks. First check if dc_dmub_srv is NULL and return immediately. Then check dc_dmub_srv->dmub and log the error only when dc_dmub_srv is valid. Fixes the below: ../display/dc/dc_dmub_srv.c:962 dc_dmub_srv_log_diagnostic_data() error: we previously assumed 'dc_dmub_srv' could be null (see line 961) ../display/dc/dc_dmub_srv.c:1167 dc_dmub_srv_enable_dpia_trace() error: we previously assumed 'dc_dmub_srv' could be null (see line 1166)

2 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability exists in dc_dmub_srv_log_diagnostic_data() and dc_dmub_srv_enable_dpia_trace() within the AMD Display Core driver. Both functions contain a logical flaw: they check whether dc_dmub_srv and dc_dmub_srv->dmub are NULL, then immediately call DC_LOG_ERROR() within that conditional block. However, DC_LOG_ERROR() internally dereferences dc_dmub_srv->ctx, which is unsafe if dc_dmub_srv itself is NULL. The static analysis flagger (Smatch) correctly identified that the NULL assumption from line 961/1166 contradicts the pointer dereference in the logging call at lines 962/1167. The remediation splits the validation: check dc_dmub_srv first and return early if NULL, then separately validate dc_dmub_srv->dmub and log only when the parent structure is confirmed valid.

Business impact

This vulnerability poses a low-to-moderate business risk. It requires local system access and occurs exclusively in error-handling code paths, limiting real-world exposure. However, exploitation could force an unexpected kernel panic on affected systems, disrupting AMD GPU workloads, containerized environments, or graphics-intensive applications. Organizations running AMD-based compute or graphics infrastructure on vulnerable kernel versions may experience service interruptions if the condition is triggered—either accidentally through unusual error states or intentionally by a local attacker.

Affected systems

The vulnerability affects the Linux kernel in versions that include the vulnerable code in drm/amd/display/dc/dc_dmub_srv.c. This primarily impacts systems running Linux with AMD Radeon or AMDGPU drivers enabled, particularly those using DMUB (Display Microcontroller Unit) firmware. Affected configurations include AMD RDNA and CDNA GPU systems on Linux, including data center and HPC deployments, workstations, and embedded systems relying on the affected kernel versions.

Exploitability

Exploitability is constrained by multiple factors. An attacker requires local system access (privilege level: low user), cannot exploit remotely, and must trigger the specific error path in either dc_dmub_srv_log_diagnostic_data() or dc_dmub_srv_enable_dpia_trace(). These functions execute during error conditions in DMUB initialization or DPIA (DisplayPort Input Adapter) tracing, making reliable exploitation non-trivial without knowledge of the exact driver state. No known public exploits exist, and the vulnerability is not listed in CISA's KEV catalog. Weaponization would require either crafting unusual hardware states or malformed driver inputs.

Remediation

Linux kernel maintainers have resolved this issue by restructuring the NULL pointer checks in both affected functions. The fix prioritizes checking dc_dmub_srv validity and returns immediately if it is NULL, preventing any subsequent dereference. Only after confirming dc_dmub_srv is valid does the code proceed to check dc_dmub_srv->dmub and execute the logging routine. This ensures DC_LOG_ERROR() never operates on a NULL parent object. Patches are included in Linux kernel versions after the vulnerability's discovery (post-2026-06-26); organizations should apply the next stable kernel release from their distribution.

Patch guidance

Apply the latest stable Linux kernel update from your distribution (Ubuntu, RHEL, Debian, etc.) released after 26 June 2026. Verify the fix by checking the kernel changelog or source tree for commits addressing dc_dmub_srv NULL pointer dereference in drm/amd/display. For enterprise deployments, consult your Linux vendor's security advisory matching CVE-2026-53313. Most distributions will backport the fix to their supported kernel branches; prioritize updates to systems actively using AMD GPUs or DMUB-dependent display configurations. Test updates in a non-production environment first, particularly if custom display drivers or GPU firmware are in use.

Detection guidance

Monitor kernel logs for NULL pointer dereference panics originating from dc_dmub_srv functions. Use tools like dmesg, journalctl, or kernel debuggers (kdb, kdump) to capture stack traces. Detection is primarily reactive: the crash itself is the indicator. For proactive monitoring, enable CONFIG_KASAN (Kernel Address Sanitizer) in test environments to catch the NULL dereference before production deployment. Inspect driver initialization logs for errors during DMUB or DPIA setup; if those paths are frequently triggered, the system may be closer to the vulnerable condition. Organizations with crash reporting (e.g., ABRT, Apport) will automatically capture incidents.

Why prioritize this

Prioritize patching based on your infrastructure profile: high priority if you run AMD GPU clusters, data centers, or graphics workstations on vulnerable kernel versions; medium priority if AMD is not core to your deployment; lower priority for systems without AMD display drivers or using patched kernels. The CVSS score of 5.5 (MEDIUM) reflects limited exploitability and local-only access, but availability impact is high (kernel crash). Organizations in regulated industries or with high uptime SLAs should prioritize remediation for critical systems to prevent unexpected reboots from error-path crashes.

Risk score, explained

The CVSS v3.1 score of 5.5 (MEDIUM) balances several factors: attack vector is local only (AV:L), attack complexity is low (AC:L), privilege requirement is low (PR:L), user interaction is not required (UI:N), and scope is unchanged (S:U). The impact assessment shows no confidentiality loss (C:N), no integrity compromise (I:N), but high availability impact (A:H) due to kernel panic. The score reflects that while kernel crashes are serious, the barrier to exploitation is significant—an attacker needs local access and must trigger a rare error condition. The score does not account for cascading effects (e.g., reboots in critical infrastructure), which may warrant elevated prioritization in certain organizational contexts.

Frequently asked questions

Can this vulnerability be exploited remotely?

No. CVE-2026-53313 requires local system access. An attacker cannot trigger this vulnerability over a network; they must have a valid user account or shell access on the target machine.

Does this affect AMD GPUs in Windows or macOS systems?

No. This vulnerability is specific to the Linux kernel's AMD display driver (DRM/AMD). Windows and macOS use different GPU drivers and are not affected by this particular code flaw.

What happens if the vulnerability is triggered?

If the vulnerable code path is executed, the kernel crashes (panic) due to the NULL pointer dereference. This causes an immediate system reboot and loss of in-flight work. It is a denial-of-service condition, not data theft or privilege escalation.

Are there workarounds if I cannot patch immediately?

Workarounds are limited. Disabling the AMD display driver entirely is impractical for systems relying on AMD GPUs. The best interim mitigation is to monitor kernel logs for early signs of DMUB errors and plan patching as soon as a tested update is available. For critical systems, consider failover or redundancy measures.

This analysis is based on publicly available vulnerability data and kernel source code descriptions as of the publication date. CVSS scores, affected product versions, and patch details are derived from the official vulnerability record and Linux kernel maintainer documentation. Organizations should verify patch availability with their Linux distribution vendor before applying updates. This vulnerability has not been assigned to CISA's KEV catalog and no known active exploits have been publicly disclosed at the time of writing. Security impact and prioritization may vary based on specific organizational infrastructure, GPU utilization patterns, and kernel version deployment. Always test patches in non-production environments before production rollout, and consult vendor-specific security advisories for your Linux distribution. Source: NVD (public-domain), retrieved 2026-08-05. Analysis generated by SEC.co (claude-haiku-4-5).