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 E556C21C17F for ; Wed, 26 Feb 2025 02:27:59 +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=1740536880; cv=none; b=DM3/hns31vsn6ouuYXC0CFdFBJr+hACZzgqHIK+QXGJYuErm5+9IsJrqd0RfHv2p7ZC7TYRG6ZcSjWgTGI35Vhcy6lKNPbkeAK5yD90OndXVLOB3GrHvuznzQWQaIeo5Kdl+qr1cwtB6Tx88+TBidygCxYyGtOFt+v7JxIIkXJ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536880; c=relaxed/simple; bh=ELZQ3BciiqFr3N1/JUAkwU/Zk2Yh8XXxmm9FsWX4N14=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=o27VbXQhhiEoS58aM7IuAY4/+i9vmU1m94qo0By9r4K34G4shJpzu1RqM+moBFmIh9eX+p93OAubjVgScN+NJIgoKivfu4tYxl9B4w3VQ0mZZIYDo4iAmu0ymtHd3I9F+M4mR2N+3yYlx1czPMKMDUInE2nap7Angak7Fd8ZC5k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lJgNeBpn; 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="lJgNeBpn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA16BC4CEE6; Wed, 26 Feb 2025 02:27:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536879; bh=ELZQ3BciiqFr3N1/JUAkwU/Zk2Yh8XXxmm9FsWX4N14=; h=From:To:Cc:Subject:Date:Reply-to:From; b=lJgNeBpnfVxQw71Ow4MrzH34U0y51OKBY+gIJlzfnafA9mUDXGjOtnWbrIohpL12C iNYs23XyLR/EiMBTggJyD9QKd2pQywuVA9Btnwt6MzTUaLTVSWVQ92V36tNXF14QG6 2+AnoyHT0Zw6mnoXRaGp66fNMAgy65YhICNo1niE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49718: irqchip/apple-aic: Fix refcount leak in aic_of_ic_init Date: Wed, 26 Feb 2025 03:24:41 +0100 Message-ID: <2025022632-CVE-2022-49718-327a@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=1950; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ELZQ3BciiqFr3N1/JUAkwU/Zk2Yh8XXxmm9FsWX4N14=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7ql4Y3OA9xabMK9L/95X7jx0ha/dO+vrz451rT4okF wi2OL1U6YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJTP7KsGDds17ps2vuPVT4 fvWHneCMHDkuzmcMC85cY78/3Y5nlV2tQl1gY/Huj526OgA= 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/apple-aic: Fix refcount leak in aic_of_ic_init of_get_child_by_name() 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-49718 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit a5e8801202b318622ea526aa5625e5f7eceb4d26 and fixed in 5.18.6 with commit 6c0010d1dc67c89bcc857c46f542efe318f84ddc Issue introduced in 5.18 with commit a5e8801202b318622ea526aa5625e5f7eceb4d26 and fixed in 5.19 with commit 3d45670fab3c25a7452721e4588cc95c51cda134 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-49718 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-apple-aic.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/6c0010d1dc67c89bcc857c46f542efe318f84ddc https://git.kernel.org/stable/c/3d45670fab3c25a7452721e4588cc95c51cda134