Description
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg When hw_init() fails, amdgpu_device_ip_fini_early() skips hw_fini() because status.hw was never set. For VCN, UVD (including UVD ENC), VCE, and JPEG, hw_fini() is where cancel_delayed_work_sync() is called. Any idle work queued during the partial hw_init() is therefore left pending after sw_fini() frees the adev state the handler touches. Cancel the idle work in each hw_init() error path, immediately before returning the error, so that hw_fini() remains the sole cancel site on the normal teardown path with no duplication. (cherry picked from commit 7ff2327fde029e97d0050fcb94e3f4063c318547)
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
416e1fab475281905e6a45883bc7e5ac8b3f0248 to < 7672a1b890f9dba1da73e45ca1a285e5113d239faffected416e1fab475281905e6a45883bc7e5ac8b3f0248 to < 112e4af9de689f442e93191b01b69cf83edebb8faffected416e1fab475281905e6a45883bc7e5ac8b3f0248 to < 631a5bff7f3bd8703763cf890316811da1e74f99affected416e1fab475281905e6a45883bc7e5ac8b3f0248 to < 29a8665880b18e3e3c3c95ff6c7050bf2de2411faffected416e1fab475281905e6a45883bc7e5ac8b3f0248 to < eee555f605aed2f0ea0e8caf30b477a489bc383eaffected416e1fab475281905e6a45883bc7e5ac8b3f0248 to < 1276491ff0b796b70d119b3151728410ec6abdd8affected416e1fab475281905e6a45883bc7e5ac8b3f0248 to < a56c2536c399d57a9bb1c02fd411e0c25859af3baffected
Linux Linux
Default version status: affected
5.15affected0 to < 5.15unaffected5.15.226 to ≤ 5.15.*unaffected6.1.193 to ≤ 6.1.*unaffected6.6.163 to ≤ 6.6.*unaffected6.12.119 to ≤ 6.12.*unaffected6.18.65 to ≤ 6.18.*unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/7672a1b890f9dba1da73e45ca1a285e5113d239f ↗
- https://git.kernel.org/stable/c/112e4af9de689f442e93191b01b69cf83edebb8f ↗
- https://git.kernel.org/stable/c/631a5bff7f3bd8703763cf890316811da1e74f99 ↗
- https://git.kernel.org/stable/c/29a8665880b18e3e3c3c95ff6c7050bf2de2411f ↗
- https://git.kernel.org/stable/c/eee555f605aed2f0ea0e8caf30b477a489bc383e ↗
- https://git.kernel.org/stable/c/1276491ff0b796b70d119b3151728410ec6abdd8 ↗
- https://git.kernel.org/stable/c/a56c2536c399d57a9bb1c02fd411e0c25859af3b ↗