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 99C9321767C for ; Wed, 26 Feb 2025 02:14:44 +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=1740536084; cv=none; b=qZPoNKqXRxml0rcC7G5ZpC0EYKs2HstQfbwfi5ivRaaZbbFe3cmz7k4hZcLRsmLIVc0XKTndBKI88ha7ZznsHkGbtPz/kDx5fkGPF3xqpx6eXpR1YFp6L3C3tHqsCeZ09EZeISjx1X3OUfsezw7Vk7OW/g7cpjUpMt9hm+jNTZc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536084; c=relaxed/simple; bh=6J2dsh87B45SENoNxn/qD/20E4pI+p5ws/9WVmpthxQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jnkik7ICfgq5Z6TtFCK8xd0ZnDVtzK1+HVzV+z3R95SalroO7pWOcAczGbNP7r/9CYXJXdIZz7grxzAeeOAx8TglA7Fet4GFJ7fkH+irWveoT1scddc4Q0qQUu9M9AwZi88ydLNlfc6ZQocJt7Co28fzM4GlheTlAcXYvoGvVYU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iUpCmF0B; 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="iUpCmF0B" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E283C4CEDD; Wed, 26 Feb 2025 02:14:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536084; bh=6J2dsh87B45SENoNxn/qD/20E4pI+p5ws/9WVmpthxQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=iUpCmF0BEkg/loVikCyyFKu5ANePm7PFO6u8FQINzUfshar/kabxmxskOJaubStZM EC9KQf0QR1Mr2elzWde9KAf/4Uo6aL1H7GEx3+F6fMoRZGy/JWj3GhAUcO9TPgtHyz TGl8HHdrFNIQz52RMfzeJCOOE4J6EeQD4joSLliM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49431: powerpc/iommu: Add missing of_node_put in iommu_init_early_dart Date: Wed, 26 Feb 2025 03:11:45 +0100 Message-ID: <2025022656-CVE-2022-49431-bca9@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=2351; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6J2dsh87B45SENoNxn/qD/20E4pI+p5ws/9WVmpthxQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yr/UTTp9SkvY54g/x6UJgUr/z37KTM02/Dar8NUy/ bW5S9bUdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE5j5jmGccGaDsU87sIMpa pTu5MkDy5d2URoYF6/0fWzeELv7+VldySaKj0MSreqKWAA== 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: powerpc/iommu: Add missing of_node_put in iommu_init_early_dart The device_node pointer is returned by of_find_compatible_node with refcount incremented. We should use of_node_put() to avoid the refcount leak. The Linux kernel CVE team has assigned CVE-2022-49431 to this issue. Affected and fixed versions =========================== Fixed in 5.4.198 with commit cb4f2dc513e99c5d0485661f114e4dda73612d10 Fixed in 5.10.121 with commit dfc308d6f29aa28463deb9a12278a85a382385ca Fixed in 5.15.46 with commit df6d8b689252c0acc0448d4ae3d33f2d6db048ab Fixed in 5.17.14 with commit 8657e8ea23325949091da72453ba84fb73cc2bd9 Fixed in 5.18.3 with commit 7e3f1dfb9e21733d7276bc9ccea4daada163f2ba Fixed in 5.19 with commit 57b742a5b8945118022973e6416b71351df512fb 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-49431 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: arch/powerpc/sysdev/dart_iommu.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/cb4f2dc513e99c5d0485661f114e4dda73612d10 https://git.kernel.org/stable/c/dfc308d6f29aa28463deb9a12278a85a382385ca https://git.kernel.org/stable/c/df6d8b689252c0acc0448d4ae3d33f2d6db048ab https://git.kernel.org/stable/c/8657e8ea23325949091da72453ba84fb73cc2bd9 https://git.kernel.org/stable/c/7e3f1dfb9e21733d7276bc9ccea4daada163f2ba https://git.kernel.org/stable/c/57b742a5b8945118022973e6416b71351df512fb