CVE-2025-40191

published 12 Nov 2025 · updated 11 May 2026

drm/amdkfd: Fix kfd process ref leaking when userptr unmapping

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 58e6fc2fb94f0f409447e5d46cf6a417b6397fbc and Kernel 60f6112fc9b3ba0eae519f10702c0c13bab45742.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.16, >=2d274bf7099bc5e95fabaa93f23d0eb2977187ad <58e6fc2fb94f0f409447e5d46cf6a417b6397fbc, >=2d274bf7099bc5e95fabaa93f23d0eb2977187ad <60f6112fc9b3ba0eae519f10702c0c13bab4574258e6fc2fb94f0f409447e5d46cf6a417b6397fbc, 60f6112fc9b3ba0eae519f10702c0c13bab45742

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-40191 severity on Zeptric[![CVE-2025-40191](https://zeptric.io/badge/cve/CVE-2025-40191.svg)](https://zeptric.io/cve/CVE-2025-40191)