CVE-2022-50644: clk: ti: dra7-atl: Fix reference leak in of_dra7_atl_clk_probe
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
clk: ti: dra7-atl: Fix reference leak in of_dra7_atl_clk_probe
pm_runtime_get_sync() will increment pm usage counter. Forgetting to putting operation will result in reference leak. Add missing pm_runtime_put_sync in some error paths.
The Linux kernel CVE team has assigned CVE-2022-50644 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.16 with commit 9ac33b0ce81fa48dd39e7ddfc1bf4519052181dd and fixed in 4.9.331 with commit 27abe45df1dc394c184688d816cbbf2f194d4c6a Issue introduced in 3.16 with commit 9ac33b0ce81fa48dd39e7ddfc1bf4519052181dd and fixed in 4.14.296 with commit d84f77ef7d57658d7346f8c4797a570aa5e35fa6 Issue introduced in 3.16 with commit 9ac33b0ce81fa48dd39e7ddfc1bf4519052181dd and fixed in 4.19.262 with commit 25fe7b0d596b343e7a5504ba11767115fff8494f Issue introduced in 3.16 with commit 9ac33b0ce81fa48dd39e7ddfc1bf4519052181dd and fixed in 5.4.220 with commit fc39ebf85d0349366b807fe2be848041c8523f03 Issue introduced in 3.16 with commit 9ac33b0ce81fa48dd39e7ddfc1bf4519052181dd and fixed in 5.10.150 with commit 6d01017247eee3fba399f601b0bcb38e4fb88a72 Issue introduced in 3.16 with commit 9ac33b0ce81fa48dd39e7ddfc1bf4519052181dd and fixed in 5.15.75 with commit 3441076f83aace85f5d6ccd9ffb301ac6b874776 Issue introduced in 3.16 with commit 9ac33b0ce81fa48dd39e7ddfc1bf4519052181dd and fixed in 5.19.17 with commit a9f69663ad571cbd7814dde38e3fcb4876341ed6 Issue introduced in 3.16 with commit 9ac33b0ce81fa48dd39e7ddfc1bf4519052181dd and fixed in 6.0.3 with commit c01ae99a4e3a0cdf70f7cd758a60a2243eac562c Issue introduced in 3.16 with commit 9ac33b0ce81fa48dd39e7ddfc1bf4519052181dd and fixed in 6.1 with commit 9c59a01caba26ec06fefd6ca1f22d5fd1de57d63
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2022-50644
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/clk/ti/clk-dra7-atl.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/27abe45df1dc394c184688d816cbbf2f194d4c6a https://git.kernel.org/stable/c/d84f77ef7d57658d7346f8c4797a570aa5e35fa6 https://git.kernel.org/stable/c/25fe7b0d596b343e7a5504ba11767115fff8494f https://git.kernel.org/stable/c/fc39ebf85d0349366b807fe2be848041c8523f03 https://git.kernel.org/stable/c/6d01017247eee3fba399f601b0bcb38e4fb88a72 https://git.kernel.org/stable/c/3441076f83aace85f5d6ccd9ffb301ac6b874776 https://git.kernel.org/stable/c/a9f69663ad571cbd7814dde38e3fcb4876341ed6 https://git.kernel.org/stable/c/c01ae99a4e3a0cdf70f7cd758a60a2243eac562c https://git.kernel.org/stable/c/9c59a01caba26ec06fefd6ca1f22d5fd1de57d63