| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2022-49480: ASoC: imx-hdmi: Fix refcount leak in imx_hdmi_probe |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| ASoC: imx-hdmi: Fix refcount leak in imx_hdmi_probe |
| |
| of_find_device_by_node() takes reference, we should use put_device() |
| to release it. when devm_kzalloc() fails, it doesn't have a |
| put_device(), it will cause refcount leak. |
| Add missing put_device() to fix this. |
| |
| The Linux kernel CVE team has assigned CVE-2022-49480 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 5.11 with commit 6a5f850aa83a1d844d27e3e53ca2f247e55d438b and fixed in 5.15.46 with commit cf760e494ee5fa6bc2dc222f0098c741ad460801 |
| Issue introduced in 5.11 with commit 6a5f850aa83a1d844d27e3e53ca2f247e55d438b and fixed in 5.17.14 with commit 8205a0114db10ec41bd2b748cdd7528632082eca |
| Issue introduced in 5.11 with commit 6a5f850aa83a1d844d27e3e53ca2f247e55d438b and fixed in 5.18.3 with commit 81b7edaabd44ba133006ad72056914eb36828d60 |
| Issue introduced in 5.11 with commit 6a5f850aa83a1d844d27e3e53ca2f247e55d438b and fixed in 5.19 with commit ed46731d8e86c8d65f5fc717671e1f1f6c3146d2 |
| |
| 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-49480 |
| 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: |
| sound/soc/fsl/imx-hdmi.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/cf760e494ee5fa6bc2dc222f0098c741ad460801 |
| https://git.kernel.org/stable/c/8205a0114db10ec41bd2b748cdd7528632082eca |
| https://git.kernel.org/stable/c/81b7edaabd44ba133006ad72056914eb36828d60 |
| https://git.kernel.org/stable/c/ed46731d8e86c8d65f5fc717671e1f1f6c3146d2 |