| 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-49240: ASoC: mediatek: mt8195: Fix error handling in mt8195_mt6359_rt1019_rt5682_dev_probe |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| ASoC: mediatek: mt8195: Fix error handling in mt8195_mt6359_rt1019_rt5682_dev_probe |
| |
| The device_node pointer is returned by of_parse_phandle() with refcount |
| incremented. We should use of_node_put() on it when done. |
| |
| This function only calls of_node_put() in the regular path. |
| And it will cause refcount leak in error path. |
| |
| The Linux kernel CVE team has assigned CVE-2022-49240 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 5.17 with commit 082482a5022780d42180a394fe6843e71fe963d8 and fixed in 5.17.2 with commit c652f8f0875b569f8afa80b8cf9762828fd6187b |
| Issue introduced in 5.17 with commit 082482a5022780d42180a394fe6843e71fe963d8 and fixed in 5.18 with commit c4b7174fe5bb875a09a78674a14a1589d1a672f3 |
| |
| 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-49240 |
| 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/mediatek/mt8195/mt8195-mt6359-rt1019-rt5682.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/c652f8f0875b569f8afa80b8cf9762828fd6187b |
| https://git.kernel.org/stable/c/c4b7174fe5bb875a09a78674a14a1589d1a672f3 |