CVE-2025-40191: drm/amdkfd: Fix kfd process ref leaking when userptr unmapping
In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: Fix kfd process ref leaking when userptr unmapping
kfdlookupprocessbypid hold the kfd process reference to ensure it doesn't get destroyed while sending the segfault event to user space.
Calling kfdlookupprocessbypid as function parameter leaks the kfd process refcount and miss the NULL pointer check if app process is already destroyed.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-40191?
CVE-2025-40191 is categorized with a medium severity level due to a potential denial-of-service risk.
How do I fix CVE-2025-40191?
To fix CVE-2025-40191, update your Linux kernel to the latest stable version that includes the patch for this vulnerability.
Which versions of the Linux kernel are affected by CVE-2025-40191?
CVE-2025-40191 affects multiple versions of the Linux kernel prior to the fix being applied.
Is CVE-2025-40191 exploitable in all Linux distributions?
CVE-2025-40191 is primarily exploitable in Linux distributions that use the affected versions of the Linux kernel.
What is the impact of CVE-2025-40191 on system security?
The impact of CVE-2025-40191 includes potential denial-of-service conditions that could disrupt system stability and performance.