drm/amdkfd: Fix kfd process ref leaking when userptr unmapping
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's drm/amdkfd code can leak a KFD process reference when unmapping userptr memory. The affected call also misses a NULL check if the application process has already been destroyed. The input does not establish an attacker path or authentication requirements.
Engineers running Linux kernels with drm/amdkfd should check their kernel versions against the vendor advisory; affected versions are not specified.