drm/amd/amdgpu/amdgpu_cs: fix refcount leak of a dma_fence obj
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 3edd8646cb7c11b57c90e026bda6f21076223f5b, Kernel 4009f104b02b223d1a11d74b36b1cc083bc37028, Kernel 72d77ddb2224ebc00648f4f78f8a9a259dccbdf7 and 4 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =4.15, >=7ca24cf2d2269bde25e21c02a77fe81995a081ae <3edd8646cb7c11b57c90e026bda6f21076223f5b, >=7ca24cf2d2269bde25e21c02a77fe81995a081ae <4009f104b02b223d1a11d74b36b1cc083bc37028, >=7ca24cf2d2269bde25e21c02a77fe81995a081ae <72d77ddb2224ebc00648f4f78f8a9a259dccbdf7, >=7ca24cf2d2269bde25e21c02a77fe81995a081ae <927beb05aaa429c883cc0ec6adc48964b187e291, >=7ca24cf2d2269bde25e21c02a77fe81995a081ae <b6d1f7d97c81ebaf2cda9c4c943ee2e484fffdcf, >=7ca24cf2d2269bde25e21c02a77fe81995a081ae <bc2d5c0775c839e2b072884f4ee6a93ba410f107, >=7ca24cf2d2269bde25e21c02a77fe81995a081ae <dfced44f122c500004a48ecc8db516bb6a295a1b | 3edd8646cb7c11b57c90e026bda6f21076223f5b, 4009f104b02b223d1a11d74b36b1cc083bc37028, 72d77ddb2224ebc00648f4f78f8a9a259dccbdf7, 927beb05aaa429c883cc0ec6adc48964b187e291, b6d1f7d97c81ebaf2cda9c4c943ee2e484fffdcf, bc2d5c0775c839e2b072884f4ee6a93ba410f107, dfced44f122c500004a48ecc8db516bb6a295a1b |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket