Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9706B21C162 for ; Wed, 26 Feb 2025 02:28:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536885; cv=none; b=TnQUn41onWM6mvn3tGP6/UgyZrxDn2PLwX2DmfHM4NaNP6hDxp5RkUtssX+NAD2QF/ZbSZy5jo4SQin2YM43CR+J94KtKlQDpyAWOlvCdZ5fwogYdJrumrulNOyFzhn/Fi6vPuz9lUo0IraOfTFiO5VTcdnMNFAlk352y0SIvWM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536885; c=relaxed/simple; bh=Guqh4qr4o+wxSdcgZfmvLE7/X2+zsME7B9i1dDUNmoE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cwft/eIsISKoQathax15NgZdcfKKOZrpks9P1yYa4CkfqrXT3SaAiSnX2Z/3tEYzDneAOU59p8OFI5HaMS/a+jGcsJbimb0Iu45kK/ADcGE35WH8rkAw7McfVJ3r/CC0RVeIDPxLIE1DXnxInHPcRb/PvnfUPFpMOA/BEz+43lU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jFT1zKmE; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jFT1zKmE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D228C4CEDD; Wed, 26 Feb 2025 02:28:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536885; bh=Guqh4qr4o+wxSdcgZfmvLE7/X2+zsME7B9i1dDUNmoE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=jFT1zKmEnAKRXWwbIT8nQ4/7LdDRTXv5bdGMGDbhWoN36FMrOEX6mGKDg8YUwZdr4 yPPdfwJ5uVTHWkUL4TJKWp6i4KBPu52gwQI0hVWpfIqYOlb8+7sCi4/7mtBCCoYpg5 vUd2K4aQTmtdqBdkGVofd2N+OBJyA9bb8gl6Zh3w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49716: irqchip/gic-v3: Fix error handling in gic_populate_ppi_partitions Date: Wed, 26 Feb 2025 03:24:39 +0100 Message-ID: <2025022631-CVE-2022-49716-7528@gregkh> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2704; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Guqh4qr4o+wxSdcgZfmvLE7/X2+zsME7B9i1dDUNmoE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qp7zvpq7uVJnqu2Jwuzret/jwxq+uhxX3Z547agB8 7dbb3QOdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEnskwzHdPfTTvd317sfNW 07ZCLg2Z77ldxQzzy38+Ed4448ruun/H+ePN9r45GR4xFQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit 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