drm/amdgpu: Fix runtime PM leak in amdgpu_debugfs_test_ib_show()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6049db43d6dd9cbb9d7f897839d15b0bc600e23c · < c28e74395ab09922bbf5be42bc5a6ed1ba4f3c37| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: Fix runtime PM leak in amdgpu_debugfs_test_ib_show()
amdgpu_debugfs_test_ib_show() resumes the device with pm_runtime_get_sync() before taking the reset domain semaphore with down_write_killable(). If the write lock acquisition is interrupted, the function returns without calling pm_runtime_put_autosuspend(), leaking the runtime PM reference acquired for the device and keeping the GPU awake.
Drop the runtime PM reference on the interrupted down_write_killable() error path before returning.
(cherry picked from commit ec30a576c2d4c0364549e6c04218f50704ef56c8)
From the CVE record · Linux
The Linux kernel’s amdgpu_debugfs_test_ib_show() can leak a runtime power-management reference if reset-domain lock acquisition is interrupted. This keeps the GPU awake; the input does not describe an attacker, authentication requirements, or a network attack path.
Engineers running Linux kernels with the amdgpu driver should check whether their kernel includes the fix; affected versions are not specified.