CVE-2026-99620 in Linux
Summary
by MITRE • 11/20/2026
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: don't walk the CS chunks when allocating them failed
amdgpu_cs_pass1() sets p->nchunks before allocating p->chunks, and the allocation failure path skips resetting it. amdgpu_cs_parser_fini() then frees the kdata of nchunks chunks from a NULL array. On navi48 with the chunk array allocation failed through failslab:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
RIP: 0010:amdgpu_cs_parser_fini+0x35d/0x710 [amdgpu]
amdgpu_cs_ioctl+0xcae/0x7a20 [amdgpu]
drm_ioctl_kernel+0x180/0x320 [drm]
Set nchunks once the array exists.
(cherry picked from commit 0c828445757b86aaa3ed2638832d76f450022bdf)
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/20/2026
The Linux kernel's AMDGPU driver contains a logic error in the command submission parsing routine that leads to a null pointer dereference under specific failure conditions. The vulnerability resides within the amdgpu_cs_pass1 function, which is responsible for processing command stream chunks submitted by user-space applications via the DRM ioctl interface. During this process, the kernel attempts to allocate an array of chunk descriptors using kmalloc or similar allocation mechanisms. In a scenario where memory allocation fails, such as when triggered by failslab testing tools or under genuine system memory pressure, the code sets the nchunks variable before confirming that the chunks pointer has been successfully allocated. This ordering creates a critical race condition in error handling logic where the control flow proceeds to cleanup routines despite the absence of valid data structures.
When the allocation fails, the execution path skips the step required to reset or zero out the nchunks counter because it assumes successful initialization occurred earlier. Consequently, when amdgpu_cs_parser_fini is invoked as part of the error handling and resource release sequence, it attempts to iterate over and free resources for a number of chunks specified by nchunks. Since the underlying array pointer remains NULL due to the allocation failure, this iteration results in accessing memory at invalid addresses. The kernel detects this illegal access through KASAN (Kernel Address Sanitizer) instrumentation or standard protection mechanisms, resulting in a general protection fault. This manifests as a crash with an attempt to dereference a null pointer or non-canonical address within the parser finalization routine.
From a security perspective, this vulnerability represents a classic use-after-free or invalid memory access pattern that can be exploited for denial of service attacks. An unprivileged user-space process capable of submitting GPU command streams can repeatedly trigger allocation failures by exhausting system resources or manipulating slab allocator behavior. Each successful exploitation attempt causes the kernel to crash, leading to a complete system halt on affected systems running the AMDGPU driver with NAVI48 architecture support. While this does not directly allow for arbitrary code execution due to the nature of the fault being caught as an exception rather than returning control to user-space, it severely impacts system availability and stability. The vulnerability aligns with CWE-252, which covers unchecked return value errors that lead to improper resource management, and specifically relates to CWE-476 regarding NULL pointer dereferences in error handling paths.
The root cause is a violation of defensive programming principles where state variables are updated before the prerequisite data structures are verified as valid. The fix involves reordering operations so that nchunks is only set after confirming that the chunks array has been successfully allocated. This ensures that if allocation fails, the counter remains at zero or an initial safe value, preventing the finalization routine from attempting to access non-existent memory regions. Mitigation strategies include applying the upstream kernel patch immediately for systems running affected versions of the AMDGPU driver. Additionally, administrators should ensure their kernels are updated with recent security fixes and consider implementing strict resource limits on user-space processes interacting with GPU drivers to reduce the likelihood of triggering allocation failures in production environments.