CVE-2025-40329
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40329 is a deadlock vulnerability in the Linux kernel's DRM (Direct Rendering Manager) scheduler, specifically in the drm_sched_entity_kill_jobs_cb function. The flaw arises from interrupt-unsafe locking when managing job dependencies and fence signaling, which can cause a system freeze or kernel panic. It was published on December 9, 2025, and affects the Linux kernel, with Microsoft's Azure Linux 3 kernel (azl3_kernel_6.6.112.1-2) confirmed as a vulnerable product. The vulnerability carries a CVSS v3.1 base score of 7.0 (High) (MSRC).

Technical details

The root cause is a race condition (CWE-667: Improper Locking) between CPU interrupt handling and lock acquisition in the DRM scheduler. When drm_sched_entity_kill_jobs_cb executes as a fence signaling callback in an interrupt context (CPU1), it attempts to acquire xa_lock, which may already be held by CPU0 executing non-interrupt-safe xa_* functions such as drm_sched_job_add_dependency(). Simultaneously, dma_fence_signal() holds fence->lock and calls back into drm_sched_entity_kill_jobs_cb, which then tries to acquire xa_lock — creating a classic ABBA deadlock. The fix involves replacing xa_* calls with their interrupt-safe xa_*_irq counterparts and restructuring fence callback logic to avoid holding conflicting locks in interrupt context (MSRC).

Impact

Successful exploitation can cause system instability, kernel panic, or a complete system freeze, resulting in high availability impact. Because the deadlock occurs in a core kernel subsystem (DRM scheduler), it can affect the integrity and confidentiality of kernel memory operations as well. An attacker with local, low-privileged access could trigger the condition by manipulating GPU job dependencies or fence signaling, potentially disrupting all processes on the affected system (MSRC).

Mitigation and workarounds

Apply the latest Linux kernel updates that include the patch for drm_sched_entity_kill_jobs_cb, which replaces interrupt-unsafe xa_* calls with xa_*_irq variants and restructures fence callback logic. For Microsoft Azure Linux 3, update to kernel version beyond azl3_kernel_6.6.112.1-2 as indicated by the MSRC advisory. Patches are also available via the Linux stable kernel tree (commits 0d63031, 3e8ada4, 487df8b, 70150b9). As a temporary measure, restrict local user access to GPU/DRM resources to reduce exposure (MSRC).

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