CVE-2025-40339
Linux Kernel vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management