From mboxrd@z Thu Jan 1 00:00:00 1970 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 A7CCD21C174 for ; Wed, 26 Feb 2025 02:28:00 +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=fJzfBgILa1TAyThcL95GospKoADQUXvLvWa9Si45lZmVW6erLos/SHD061HpdrnU8zS8Im32f49ZyN8dnMoxrbLXwNE/0kxj8spIo3DnOP2lHSyWschuxdE0MHEMNrRc71hyoEQk/vnM/d+OcGy1uHJuyx+gqn0il75NeAk5GO4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536880; c=relaxed/simple; bh=4R5djwonAwEMrC3VT/JzpOwYm/Ve62ReKrstFUfhKXw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZfXH/im8bHgSqxR48Oqh2oOTzEFJdF86NlmgBemTUeuRvkBwHDS829rueRVk54OxbO6gDCijKPzRn1/dJg7ee7sOjBat5GUvmY/XpB0gUObuSqBOxWG/5acqElm3Z8P5r9xNzoJk5uHaMhpj66WmINq8FvsqiiSHTXw7fhbnQBM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NM42P2Yl; 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="NM42P2Yl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A205C4CEDD; Wed, 26 Feb 2025 02:28:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536880; bh=4R5djwonAwEMrC3VT/JzpOwYm/Ve62ReKrstFUfhKXw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NM42P2Yl3Wu4Qbl3qlZp9FGub2quiGttzRMJUXaTuXmV+P9KNiRN98nBpqdQyMrOQ u8Xw0pnacEt03hiUyodBlp4c6v6Ywb8UkMP2VaQO1K3AVKeCt54CtlbIu5gPQwO60X 2WpOfjeB7CcfcGxuC2NIHDPt6A0XqLlKFuAv7Lw4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49719: irqchip/gic/realview: Fix refcount leak in realview_gic_of_init Date: Wed, 26 Feb 2025 03:24:42 +0100 Message-ID: <2025022632-CVE-2022-49719-dd71@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=3342; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4R5djwonAwEMrC3VT/JzpOwYm/Ve62ReKrstFUfhKXw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7ql7Ecay/9WvP/9f+tgs6nu+5KVK86q3YhKvHJsZdf c2vPMm6qiOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmUtrIMD+lIWKnRrXQspNT I3wW8C34N5lJP55hwcGM77Oldp3/cvZP8s0555tfc172+wIA 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/realview: Fix refcount leak in realview_gic_of_init of_find_matching_node_and_match() 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-49719 to this issue. Affected and fixed versions =========================== Issue introduced in 4.6 with commit 82b0a434b436f5da69ddd24bd6a6fa5dc4484310 and fixed in 4.9.320 with commit 87da903ce632d5689bef66d56ee5dae700d82104 Issue introduced in 4.6 with commit 82b0a434b436f5da69ddd24bd6a6fa5dc4484310 and fixed in 4.14.285 with commit 486f68f85085d9b16ae097679b1486dcb1b6eb69 Issue introduced in 4.6 with commit 82b0a434b436f5da69ddd24bd6a6fa5dc4484310 and fixed in 4.19.249 with commit b634af84bc1edece4e63317b0ad95618dd3a8693 Issue introduced in 4.6 with commit 82b0a434b436f5da69ddd24bd6a6fa5dc4484310 and fixed in 5.4.200 with commit 56526c3883fc7a1f5898b1d40a02c8b8685a5d92 Issue introduced in 4.6 with commit 82b0a434b436f5da69ddd24bd6a6fa5dc4484310 and fixed in 5.10.124 with commit e52a58b79f11755ea7e877015c4a1704303fa55f Issue introduced in 4.6 with commit 82b0a434b436f5da69ddd24bd6a6fa5dc4484310 and fixed in 5.15.49 with commit 5d38720661a4b9c87705c206a6081177ffb8ec1d Issue introduced in 4.6 with commit 82b0a434b436f5da69ddd24bd6a6fa5dc4484310 and fixed in 5.18.6 with commit 16b603cb8d34c2d917983918db1f88c8b831baaa Issue introduced in 4.6 with commit 82b0a434b436f5da69ddd24bd6a6fa5dc4484310 and fixed in 5.19 with commit f4b98e314888cc51486421bcf6d52852452ea48b 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-49719 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-realview.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/87da903ce632d5689bef66d56ee5dae700d82104 https://git.kernel.org/stable/c/486f68f85085d9b16ae097679b1486dcb1b6eb69 https://git.kernel.org/stable/c/b634af84bc1edece4e63317b0ad95618dd3a8693 https://git.kernel.org/stable/c/56526c3883fc7a1f5898b1d40a02c8b8685a5d92 https://git.kernel.org/stable/c/e52a58b79f11755ea7e877015c4a1704303fa55f https://git.kernel.org/stable/c/5d38720661a4b9c87705c206a6081177ffb8ec1d https://git.kernel.org/stable/c/16b603cb8d34c2d917983918db1f88c8b831baaa https://git.kernel.org/stable/c/f4b98e314888cc51486421bcf6d52852452ea48b