CVE-2025-40166
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40166 affects the Linux kernel's DRM (Direct Rendering Manager) subsystem, specifically in the GuC (Graphics Microcontroller) component. The vulnerability was disclosed on November 12, 2025, and involves issues with the exec queue deregistration process in the graphics driver (NVD).

Technical details

The vulnerability occurs in the drm/xe/guc component when handling exec queue deregistration. In normal operation, a registered exec queue is disabled and deregistered through the GuC, and freed only after the GuC confirms completion. However, if the driver is forced to unbind while the exec queue is still running, the user may call exec_destroy() after the GuC has already been stopped and CT communication disabled. This prevents proper cleanup of exec queue resources (NVD).

Impact

When exploited, this vulnerability can lead to resource leaks and potential system instability. The issue manifests in the GuC ID manager becoming unclean, as evidenced by error messages showing mismatched resource counts (1/65535) (NVD).

Mitigation and workarounds

A fix has been implemented that checks the GuC running state before deregistering the exec queue. The solution involves directly releasing the resources when GuC is not running, rather than waiting for a response that will never come. Additionally, the fix includes using xe_uc_fw_is_running() instead of xe_guc_ct_enabled() to handle cases where CT may go down and come back during VF migration (NVD).

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-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-core
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • rv
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-zfcpdump
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-debug
NoYesJan 14, 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