| 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-49239: ASoC: codecs: wcd934x: Add missing of_node_put() in wcd934x_codec_parse_data |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| ASoC: codecs: wcd934x: Add missing of_node_put() in wcd934x_codec_parse_data |
| |
| The device_node pointer is returned by of_parse_phandle() with refcount |
| incremented. We should use of_node_put() on it when done. |
| This is similar to commit 64b92de9603f |
| ("ASoC: wcd9335: fix a leaked reference by adding missing of_node_put") |
| |
| The Linux kernel CVE team has assigned CVE-2022-49239 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 5.6 with commit a61f3b4f476eceb25274161e5a53a8d18e42610b and fixed in 5.10.110 with commit 1f24716e38220fc9e52e208d20591d2bc9b7f020 |
| Issue introduced in 5.6 with commit a61f3b4f476eceb25274161e5a53a8d18e42610b and fixed in 5.15.33 with commit 2f44eca78cc6d4e1779eb95765ec79e433accab4 |
| Issue introduced in 5.6 with commit a61f3b4f476eceb25274161e5a53a8d18e42610b and fixed in 5.16.19 with commit f3793eeb7b94a5eeed6f5c7a44bce403c6681a12 |
| Issue introduced in 5.6 with commit a61f3b4f476eceb25274161e5a53a8d18e42610b and fixed in 5.17.2 with commit f8e89d84ea83c51ba3ba97ff154f7aa679326760 |
| Issue introduced in 5.6 with commit a61f3b4f476eceb25274161e5a53a8d18e42610b and fixed in 5.18 with commit 9531a631379169d57756b2411178c6238655df88 |
| |
| 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-49239 |
| 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/codecs/wcd934x.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/1f24716e38220fc9e52e208d20591d2bc9b7f020 |
| https://git.kernel.org/stable/c/2f44eca78cc6d4e1779eb95765ec79e433accab4 |
| https://git.kernel.org/stable/c/f3793eeb7b94a5eeed6f5c7a44bce403c6681a12 |
| https://git.kernel.org/stable/c/f8e89d84ea83c51ba3ba97ff154f7aa679326760 |
| https://git.kernel.org/stable/c/9531a631379169d57756b2411178c6238655df88 |