drm/amd/amdgpu/amdgpu_cs: fix refcount leak of a dma_fence obj
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7ca24cf2d2269bde25e21c02a77fe81995a081ae · < bc2d5c0775c839e2b072884f4ee6a93ba410f107| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/amdgpu/amdgpu_cs: fix refcount leak of a dma_fence obj
This issue takes place in an error path in amdgpu_cs_fence_to_handle_ioctl(). When `info->in.what` falls into default case, the function simply returns -EINVAL, forgetting to decrement the reference count of a dma_fence obj, which is bumped earlier by amdgpu_cs_get_fence(). This may result in reference count leaks.
Fix it by decreasing the refcount of specific object before returning the error code.
From the CVE record · Linux
An error path in the Linux kernel's AMDGPU command-submission ioctl fails to release a dma_fence reference when `info->in.what` reaches the default case. A local caller able to invoke this ioctl can trigger a reference count leak; the input does not specify authentication requirements or any further impact.
Engineers running Linux kernels with the AMDGPU driver should check their installations; affected versions are not specified.