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 00C5C21ADCE for ; Wed, 26 Feb 2025 02:27:49 +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=1740536870; cv=none; b=SZorSE4+PVG1ydL/r657gFnBX/+3t5tUzOcnEs45lFj4s9OTe1oYf3dcW+DYEwb+dnmQCFsDOYb4AbUkVxH2oBOOOFYKEmkXoiVyLB5rBca2IkgDqaf/5JI3OL1OSi3YsrwmPCkfflslY8nkgLFlBWGe9wb31cF3vt3E+TjbH3E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536870; c=relaxed/simple; bh=QF0uOtahj0//sSaNyI63+wrvPqG4ujjUpILbgZXe5KI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XPY5NYJrMS6Xq+O8nX91zFzRVh3t+TaeF7USZhxNcSyq/EycISzy8p4sm2Lo7lkWTaDB9E+P25IPJyctIBLvGObRYOL8L5J37c79/3llFteH6W3vnPo2aHl/UdcS4bXoEP4FORrV+y9xqs17ohO1+mh2BILWzsdEkr5a5uY2YfQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MAdn6Q6h; 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="MAdn6Q6h" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73C17C4CEDD; Wed, 26 Feb 2025 02:27:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536869; bh=QF0uOtahj0//sSaNyI63+wrvPqG4ujjUpILbgZXe5KI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=MAdn6Q6hPyQKh0DkLRSq2dCAMzMlH4/8YJUGUtoOII4Q2VirnCJ4et2weYPV4CUni 0it5sdCN7Z709VHv39rCYkZqve8ijIIMItcUXe6SpYKgAxN6gMsRLYG6/bDHi9aMGc dLIRF4mqv5+4ylWUDbsGE+sL25P7HtNA9TBdy8fs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49715: irqchip/gic-v3: Fix refcount leak in gic_populate_ppi_partitions Date: Wed, 26 Feb 2025 03:24:38 +0100 Message-ID: <2025022631-CVE-2022-49715-429c@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=2872; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QF0uOtahj0//sSaNyI63+wrvPqG4ujjUpILbgZXe5KI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qp5br5wg4BYhqmUvJTEx86xD/GSWq31Oc798XV345 /vLH3fqO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAil+0YFrRXmS5edFw+yal2 jh3Dvj7fqri36QzzlLUarsySVM/9pH1gata8M1wPD5z6AwA= 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 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