What’s Vulnerable › Vulnerabilities

CVE-2025-40191: drm/amdkfd: Fix kfd process ref leaking when userptr unmapping

Description

In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Fix kfd process ref leaking when userptr unmapping kfd_lookup_process_by_pid hold the kfd process reference to ensure it doesn't get destroyed while sending the segfault event to user space. Calling kfd_lookup_process_by_pid as function parameter leaks the kfd process refcount and miss the NULL pointer check if app process is already destroyed.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 6.18. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-40191 or the next vulnerability affects your stack