[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025022631-CVE-2022-49716-7528@gregkh>
Date: Wed, 26 Feb 2025 03:24:39 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2022-49716: irqchip/gic-v3: Fix error handling in gic_populate_ppi_partitions
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
irqchip/gic-v3: Fix error handling in gic_populate_ppi_partitions
of_get_child_by_name() returns a node pointer with refcount
incremented, we should use of_node_put() on it when not need anymore.
When kcalloc fails, it missing of_node_put() and results in refcount
leak. Fix this by goto out_put_node label.
The Linux kernel CVE team has assigned CVE-2022-49716 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.4 with commit 52085d3f2028d853f8d6ce7ead2f8a504f6077fa and fixed in 5.4.200 with commit 58e67c81e229351027d28c610638378606e33a08
Issue introduced in 5.4 with commit 52085d3f2028d853f8d6ce7ead2f8a504f6077fa and fixed in 5.10.124 with commit 7c9dd9d23f26dabcfb14148b9acdfba540418b19
Issue introduced in 5.4 with commit 52085d3f2028d853f8d6ce7ead2f8a504f6077fa and fixed in 5.15.49 with commit 0b325d993995a321f6ab4e6c51f0504ec092bf5b
Issue introduced in 5.4 with commit 52085d3f2028d853f8d6ce7ead2f8a504f6077fa and fixed in 5.18.6 with commit c83c34c57798fc41faefcf078be78683db2f4beb
Issue introduced in 5.4 with commit 52085d3f2028d853f8d6ce7ead2f8a504f6077fa and fixed in 5.19 with commit ec8401a429ffee34ccf38cebf3443f8d5ae6cb0d
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-49716
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/58e67c81e229351027d28c610638378606e33a08
https://git.kernel.org/stable/c/7c9dd9d23f26dabcfb14148b9acdfba540418b19
https://git.kernel.org/stable/c/0b325d993995a321f6ab4e6c51f0504ec092bf5b
https://git.kernel.org/stable/c/c83c34c57798fc41faefcf078be78683db2f4beb
https://git.kernel.org/stable/c/ec8401a429ffee34ccf38cebf3443f8d5ae6cb0d
Powered by blists - more mailing lists