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 B9792216E26 for ; Wed, 26 Feb 2025 02:14:26 +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=1740536066; cv=none; b=S4/r7p6buAu618JdygieUWxy+Nwp2ihCrGh+DEwZOIdMesBhY51En3DC5WSGbI2NDupf85O1v0ET9i4NVl4TZS7sWKXnGLAnlkeAXnBntLpZqXX46jDsjqxELKlAZa3nRvrcqZq2SIWtMG41+0yXlncLRSObequMTGOawzfcoUw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536066; c=relaxed/simple; bh=cOfuaMh1S8KVCWUUKB0T0TcjIFpfBJ7yMcWCmFv5kY8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LIRPV+BrONkywqRKGj/GtL7CQx6Um6zmAOK4N/k5sT05RGnfJCQfKnH4VYpjJK/U8hBDY/4AZXz8qaso6MvqaJ9ddaU5dfA92k0RXl4VDMu5MEho7lQ4rpHmFknXPRqkzXh2jGHUPyr2DgKxORzysVpC0y+j5ZzMi+jJFr/N8NM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UjQiAzjD; 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="UjQiAzjD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E5E1C4CEDD; Wed, 26 Feb 2025 02:14:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536066; bh=cOfuaMh1S8KVCWUUKB0T0TcjIFpfBJ7yMcWCmFv5kY8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=UjQiAzjDdb7eLTlwZEe6N4UEe1z+HZnzlv/G0/X4jd5rHCMeSRAeUswq7Yl/WHXkV OMFFfnN2SctlY22P1k2vcFQlCsgWRiAHiDJRP1KRQxEcTZVdlZqzR8uTf0hkMEdt/q lJ7SGilXrRRbTvTFJpnlg+EKd+Zalx4BToOnsC/8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49447: ARM: hisi: Add missing of_node_put after of_find_compatible_node Date: Wed, 26 Feb 2025 03:12:01 +0100 Message-ID: <2025022658-CVE-2022-49447-4819@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=2775; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cOfuaMh1S8KVCWUUKB0T0TcjIFpfBJ7yMcWCmFv5kY8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yr8dkVZ7a/L0rXxfi0jgn8TtD+NVIxN18p87zTL0X Fr39LRdRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk2VmGBdNvCa2abxfWG+BZ dO9ay+NVsY51Jxjm2a1cqHBAstKulOeEYPnxz5e3cDAUAgA= 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: ARM: hisi: Add missing of_node_put after of_find_compatible_node of_find_compatible_node will increment the refcount of the returned device_node. Calling of_node_put() to avoid the refcount leak The Linux kernel CVE team has assigned CVE-2022-49447 to this issue. Affected and fixed versions =========================== Fixed in 4.9.318 with commit 46cb7868811d025c3d29c10d18b3422db1cf20d5 Fixed in 4.14.283 with commit f8da78b2bae1f54746647a2bb44f8bd6025c57af Fixed in 4.19.247 with commit dd4be8ecfb41a29e7c4e551b4e866157ce4a3429 Fixed in 5.4.198 with commit e109058165137ef42841abd989f080adfefa14fa Fixed in 5.10.121 with commit 21a3effe446dd6dc5eed7fe897c2f9b88c9a5d6d Fixed in 5.15.46 with commit a3265a9440030068547a20dfee646666f3ca5278 Fixed in 5.17.14 with commit cafaaae4bb9ce84a2791fa29bf6907a9466c3883 Fixed in 5.18.3 with commit 45d211668d33c49d73f5213e8c2b58468108647c Fixed in 5.19 with commit 9bc72e47d4630d58a840a66a869c56b29554cfe4 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-49447 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/arm/mach-hisi/platsmp.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/46cb7868811d025c3d29c10d18b3422db1cf20d5 https://git.kernel.org/stable/c/f8da78b2bae1f54746647a2bb44f8bd6025c57af https://git.kernel.org/stable/c/dd4be8ecfb41a29e7c4e551b4e866157ce4a3429 https://git.kernel.org/stable/c/e109058165137ef42841abd989f080adfefa14fa https://git.kernel.org/stable/c/21a3effe446dd6dc5eed7fe897c2f9b88c9a5d6d https://git.kernel.org/stable/c/a3265a9440030068547a20dfee646666f3ca5278 https://git.kernel.org/stable/c/cafaaae4bb9ce84a2791fa29bf6907a9466c3883 https://git.kernel.org/stable/c/45d211668d33c49d73f5213e8c2b58468108647c https://git.kernel.org/stable/c/9bc72e47d4630d58a840a66a869c56b29554cfe4