CVE-2025-40191
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2025-40191 was disclosed on November 12, 2025, affecting the Linux kernel. The vulnerability involves a process reference leak in the drm/amdkfd subsystem when unmapping userptr. Specifically, the issue occurs when kfd_lookup_process_by_pid is called as a function parameter, which can leak the kfd process refcount and miss NULL pointer checks if the application process is already destroyed (NVD, Ubuntu).

Technical details

The vulnerability exists in the kernel's AMD Kernel Fusion Driver (AMDKFD) component, specifically in the userptr unmapping functionality. The issue stems from improper reference counting when kfd_lookup_process_by_pid is used as a function parameter, which can lead to a process reference leak. The vulnerability can result in missing NULL pointer checks when an application process has been destroyed (NVD).

Impact

The vulnerability could potentially lead to memory leaks in the kernel, which may result in resource exhaustion over time. Additionally, the missing NULL pointer checks could potentially lead to system instability or crashes when attempting to access already destroyed processes (NVD).

Mitigation and workarounds

The vulnerability has been fixed in various Linux distributions. Ubuntu has marked this as a medium priority issue and has provided fixes for affected systems. Several kernel versions have been patched to address this vulnerability (Ubuntu).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-0821MEDIUM6.9
  • Linux DebianLinux Debian
  • quickjs
NoNoJan 10, 2026
CVE-2026-22703MEDIUM5.5
  • Linux DebianLinux Debian
  • cosign
NoNoJan 10, 2026
CVE-2026-0822MEDIUM5.3
  • Linux DebianLinux Debian
  • quickjs
NoNoJan 10, 2026
CVE-2025-15506MEDIUM4.8
  • Linux DebianLinux Debian
  • opencolorio
NoNoJan 11, 2026
CVE-2026-22702MEDIUM4.5
  • Linux DebianLinux Debian
  • python-virtualenv
NoNoJan 10, 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