| 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-49211: mips: cdmm: Fix refcount leak in mips_cdmm_phys_base |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| mips: cdmm: Fix refcount leak in mips_cdmm_phys_base |
| |
| The of_find_compatible_node() function returns a node pointer with |
| refcount incremented, We should use of_node_put() on it when done |
| Add the missing of_node_put() to release the refcount. |
| |
| The Linux kernel CVE team has assigned CVE-2022-49211 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 5.9 with commit 2121aa3e2312ccc1d6299154dc4f07a6ab8beee2 and fixed in 5.10.110 with commit ef1728e3cb9e43f38ed10cde705a7ba2b4ad2d35 |
| Issue introduced in 5.9 with commit 2121aa3e2312ccc1d6299154dc4f07a6ab8beee2 and fixed in 5.15.33 with commit 69155dc2e04777aa94207a73a8b10f12b8428a68 |
| Issue introduced in 5.9 with commit 2121aa3e2312ccc1d6299154dc4f07a6ab8beee2 and fixed in 5.16.19 with commit 4680c2ac9aabda82acd23ebbd1f900fb6a889cd3 |
| Issue introduced in 5.9 with commit 2121aa3e2312ccc1d6299154dc4f07a6ab8beee2 and fixed in 5.17.2 with commit 721ab4be20d4448dd04c2cc8ed99cd4f3e45f765 |
| Issue introduced in 5.9 with commit 2121aa3e2312ccc1d6299154dc4f07a6ab8beee2 and fixed in 5.18 with commit 4528668ca331f7ce5999b7746657b46db5b3b785 |
| |
| 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-49211 |
| 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/bus/mips_cdmm.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/ef1728e3cb9e43f38ed10cde705a7ba2b4ad2d35 |
| https://git.kernel.org/stable/c/69155dc2e04777aa94207a73a8b10f12b8428a68 |
| https://git.kernel.org/stable/c/4680c2ac9aabda82acd23ebbd1f900fb6a889cd3 |
| https://git.kernel.org/stable/c/721ab4be20d4448dd04c2cc8ed99cd4f3e45f765 |
| https://git.kernel.org/stable/c/4528668ca331f7ce5999b7746657b46db5b3b785 |