| 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-49715: irqchip/gic-v3: Fix refcount leak in gic_populate_ppi_partitions |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| irqchip/gic-v3: Fix refcount leak in gic_populate_ppi_partitions |
| |
| of_find_node_by_phandle() returns a node pointer with refcount |
| incremented, we should use of_node_put() on it when not need anymore. |
| Add missing of_node_put() to avoid refcount leak. |
| |
| The Linux kernel CVE team has assigned CVE-2022-49715 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 4.7 with commit e3825ba1af3a27d7522c9f5f929f5a13b8b138ae and fixed in 4.19.249 with commit e824482e2c5edacc961b7dd30a92fd47606c3036 |
| Issue introduced in 4.7 with commit e3825ba1af3a27d7522c9f5f929f5a13b8b138ae and fixed in 5.4.200 with commit 8d884c08eeb83142a7173cb46bcff0434ec42cf1 |
| Issue introduced in 4.7 with commit e3825ba1af3a27d7522c9f5f929f5a13b8b138ae and fixed in 5.10.124 with commit 506a88a5bf261d76a5214c0338a320f2214c67ac |
| Issue introduced in 4.7 with commit e3825ba1af3a27d7522c9f5f929f5a13b8b138ae and fixed in 5.15.49 with commit cc5984cf270b69d03f9f4b27063e535036c659e9 |
| Issue introduced in 4.7 with commit e3825ba1af3a27d7522c9f5f929f5a13b8b138ae and fixed in 5.18.6 with commit c136c2924a59a399aa789858cfb320d481964fb7 |
| Issue introduced in 4.7 with commit e3825ba1af3a27d7522c9f5f929f5a13b8b138ae and fixed in 5.19 with commit fa1ad9d4cc47ca2470cd904ad4519f05d7e43a2b |
| |
| 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-49715 |
| 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/irqchip/irq-gic-v3.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/e824482e2c5edacc961b7dd30a92fd47606c3036 |
| https://git.kernel.org/stable/c/8d884c08eeb83142a7173cb46bcff0434ec42cf1 |
| https://git.kernel.org/stable/c/506a88a5bf261d76a5214c0338a320f2214c67ac |
| https://git.kernel.org/stable/c/cc5984cf270b69d03f9f4b27063e535036c659e9 |
| https://git.kernel.org/stable/c/c136c2924a59a399aa789858cfb320d481964fb7 |
| https://git.kernel.org/stable/c/fa1ad9d4cc47ca2470cd904ad4519f05d7e43a2b |