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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-11-12T21:56:31.206Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 2d274bf7099bc5e95fabaa93f23d0eb2977187ad before 60f6112fc9b3ba0eae519f10702c0c13bab45742; from 2d274bf7099bc5e95fabaa93f23d0eb2977187ad before 58e6fc2fb94f0f409447e5d46cf6a417b6397fbc; 6.16 (not affected: before 6.16; from 6.17.4 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/60f6112fc9b3ba0eae519f10702c0c13bab45742>
- <https://git.kernel.org/stable/c/58e6fc2fb94f0f409447e5d46cf6a417b6397fbc>

## Sources

- CVE List: [CVE-2025-40191](https://www.cve.org/CVERecord?id=CVE-2025-40191), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-40191](https://nvd.nist.gov/vuln/detail/CVE-2025-40191), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-40191 · Whole record: https://cve.day/CVE-2025-40191.json · Rebuilt by cve.day 2026-11-25T22:59:07.594Z
