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-97900 Overview
CVE-2026-97900 is a Linux kernel vulnerability in the Direct Rendering Manager (DRM) execution helper drm_exec. The function drm_exec_prepare_array() returns success without calling drm_exec_lock_contended() when num_objects is zero. This breaks a locking invariant required by the DRM buffer object (BO) reservation sequence. Drivers that chain multiple drm_exec_prepare_array() calls per drm_exec_until_all_locked() iteration, such as amdgpu's user queue signal and wait ioctls, can trigger an infinite loop in kernel space when one array is empty and the other experiences contention.
Critical Impact
A local user invoking affected GPU ioctls under lock contention can trigger an infinite retry loop in kernel space, resulting in denial of service.
Affected Products
- Linux kernel versions containing the drm_exec helper with the pre-patch drm_exec_prepare_array() logic
- GPU drivers chaining multiple drm_exec_prepare_array() calls, including amdgpu user queue signal/wait ioctls
- Downstream distributions shipping affected stable kernel branches
Discovery Timeline
- 2026-09-25 - CVE-2026-97900 published to the National Vulnerability Database
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97900
Vulnerability Analysis
The DRM drm_exec subsystem provides a helper framework for acquiring reservations on multiple GPU buffer objects while handling lock contention safely. Every entry point into the locking sequence must first retry any previously contended object before preparing new ones. This invariant is normally upheld by drm_exec_lock_obj().
drm_exec_prepare_array() violates the invariant when callers pass zero objects. Instead of calling drm_exec_lock_contended() to resolve a pending contended object, it returns success immediately as a no-op. Callers that chain two prepare calls per iteration, for example separate read and write BO arrays, can leave the contention state unresolved.
Root Cause
The root cause is a missing call to drm_exec_lock_contended() on the zero-object fast path inside drm_exec_prepare_array(). When exec->contended is set during a previous prepare call, a subsequent empty-array prepare does nothing, so drm_exec_retry_on_contention() jumps back to the top of the loop without ever reaching the call that would clear the contended object. The loop then spins indefinitely.
Attack Vector
A local, unprivileged user with access to the DRM character device can invoke affected GPU ioctls such as amdgpu user queue signal and wait operations. By supplying one empty BO array and one populated array, and inducing contention on the populated array, the caller forces the kernel into an infinite retry loop. The result is denial of service through CPU exhaustion in kernel context [CWE-835: Loop with Unreachable Exit Condition].
No verified public exploit code is available. Refer to the upstream commits for the corrected logic: Kernel Git Commit 15972070, Kernel Git Commit 831cd124, Kernel Git Commit a565022, and Kernel Git Commit f3e74866.
Detection Methods for CVE-2026-97900
Indicators of Compromise
- Kernel threads from processes using DRM/amdgpu ioctls pegged at 100% CPU for extended periods
- Soft lockup or RCU stall messages in dmesg referencing drm_exec_* or amdgpu call stacks
- Unresponsive GPU workloads while the host remains partially responsive
Detection Strategies
- Audit the running kernel version against the fixed commits referenced in the upstream advisory
- Collect stack traces from stuck tasks using /proc/<pid>/stack or perf to identify loops inside drm_exec_retry_on_contention()
- Monitor kernel ring buffer output for repeated soft lockup warnings tied to graphics workloads
Monitoring Recommendations
- Alert on sustained kernel-mode CPU utilization anomalies on hosts with GPUs
- Centralize dmesg and journald collection to surface soft lockup and RCU stall events
- Track kernel package versions across the fleet to confirm patch deployment status
How to Mitigate CVE-2026-97900
Immediate Actions Required
- Apply the stable kernel updates containing the four referenced commits as soon as they are available for your distribution
- Inventory systems running affected kernels, with priority on hosts exposing GPU devices to multi-tenant or unprivileged workloads
- Restrict access to DRM character devices to trusted users until patches are deployed
Patch Information
The upstream fix modifies drm_exec_prepare_array() so that it calls drm_exec_lock_contended() directly when num_objects is zero. This ensures any pending contended object is resolved before the function returns. The corrected logic is distributed across the stable backports referenced in the external advisory URLs. Rebuild and reboot into a patched kernel to apply the fix.
Workarounds
- Limit access to /dev/dri/* devices to trusted local users via group membership and udev rules
- Avoid running untrusted workloads that invoke amdgpu user queue ioctls on unpatched hosts
- Where feasible, disable or unload affected GPU drivers on headless systems that do not require them
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

