
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-40339 is a null pointer dereference vulnerability in the Linux kernel's drm/amdgpu subsystem, specifically in the vm_handle_moved function. The flaw arises because amdgpu_bo_va objects associated with fpriv->prt_va always have a NULL bo (buffer object) field, and the code did not handle this case before calling amdgpu_vm_handle_moved. It was published on December 9, 2025, and affects Linux kernel versions across multiple stable branches. Patches are available for kernel versions 6.12.58, 6.17.8, and 6.18. No CVSS score has been assigned at this time (ENISA EUVD).
The root cause is a null pointer dereference (CWE-476) in the AMD GPU virtual memory management code within the Linux kernel's DRM subsystem. When amdgpu_vm_handle_moved iterates over moved buffer object virtual address (amdgpu_bo_va) entries, it does not account for the special case where fpriv->prt_va's bo field is always NULL, leading to a potential kernel NULL pointer dereference. The fix requires that such amdgpu_bo_va entries be updated separately before amdgpu_vm_handle_moved is called. The vulnerability is reachable from userspace processes that interact with the AMD GPU driver, though local access to the GPU device is required (ENISA EUVD, kernel.org patch).
Successful exploitation of this vulnerability could cause a kernel panic or system crash (denial of service) on systems running affected Linux kernel versions with AMD GPU hardware. Because the dereference occurs in kernel space, it may also present a potential avenue for privilege escalation or information disclosure, though no such exploitation has been demonstrated publicly. The impact is primarily limited to systems with AMD GPUs where a local user can trigger GPU virtual memory operations (ENISA EUVD).
The Linux kernel maintainers have released patches addressing this vulnerability in the following stable kernel versions: 6.12.58, 6.17.8, and 6.18. Users and administrators should update their Linux kernel to one of these patched versions. The fix ensures that amdgpu_bo_va entries associated with fpriv->prt_va (which always have a NULL bo) are handled separately before amdgpu_vm_handle_moved is invoked, preventing the null pointer dereference (ENISA EUVD, kernel.org patch).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."