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 A8343216E32 for ; Wed, 26 Feb 2025 02:14:34 +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=1740536074; cv=none; b=m7kuIIO9k2+k070eIqUiaqZpMfKKywS8aXO9VEKXKoLVmf43V/qAJ7h8B2rAL67jqKlhh73R9wZFVLRS9gXXnAvwNlowaMwqsIjOOZTJupYB37fiUPa9wU/kSxK5NlgUt96snymve3VZHO38s1PBuvcZP3RLu0wxD0BZRD1nZEA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536074; c=relaxed/simple; bh=Rrtnr9WO2iONeFtdalF5n3BH/lZtyKqWBe3fbn+N2Sk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EdtClD95DX9Uq+r5+pKiq/3vkfE4dO3JCC6UXHrRGuU/5L3w2pBox/lvhoxb09RnwQTwX2zxYebnl8fgmsdS0GFKYRrOUKMA7OluZEFGJCGbIqA9m1d810JB726OiaFR6KaDw1RTWuOyuu9pf3kToZ2W/jl6W1t/5uFXRXZPBDY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XHQwALkS; 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="XHQwALkS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E0D9C4CEDD; Wed, 26 Feb 2025 02:14:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536074; bh=Rrtnr9WO2iONeFtdalF5n3BH/lZtyKqWBe3fbn+N2Sk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XHQwALkSMvgFV+r3hc4vhp2AKQVRVTl9vsBBhjQkfgDgQ6nmx2DrimVhN8e+Tib9v tLTSJ7itPFMZirCaGFyI2/sUkgoVwLvSGENp7LGVkAp5lAsKSRRzW5cMEbZ+QABPxK H1jQqFoVFmP/poTsy+01Tk2q5V3Y9yzpqtlgHymw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49457: ARM: versatile: Add missing of_node_put in dcscb_init Date: Wed, 26 Feb 2025 03:12:11 +0100 Message-ID: <2025022600-CVE-2022-49457-0a07@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=2783; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Rrtnr9WO2iONeFtdalF5n3BH/lZtyKqWBe3fbn+N2Sk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yn8oWIhcmbZ3d7ig/sswTtmJbIGGs4z+ZB6trf+3p VXz2+mtHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARyYUM86NXTtxYIKSkf94g 0/Go59Xrc/PvzWJYsKr2lHyL47J3THnTdj5fvExZIGIpOwA= 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: versatile: Add missing of_node_put in dcscb_init 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-49457 to this issue. Affected and fixed versions =========================== Fixed in 4.9.318 with commit 2d7b23db35254b7d46e852967090c64cdccf24da Fixed in 4.14.283 with commit bbdfb7d4f036118d36415a2575efa6f5246505ae Fixed in 4.19.247 with commit a0fc05cd17617e63fc13ad0c01f3f0afd890d8ec Fixed in 5.4.198 with commit fcd1999ba97445a12cc394f5f42ffd9116bf0185 Fixed in 5.10.121 with commit d146e2a9864ade19914494de3fb520390b415d58 Fixed in 5.15.46 with commit 83c329b980bddbc8c6a3d287d91f2103a4d4a860 Fixed in 5.17.14 with commit 3c6006faed9aba5144b33176d061031a9be66954 Fixed in 5.18.3 with commit d6de7b181c29cd4578ec139aafb5eac062abbe1b Fixed in 5.19 with commit 23b44f9c649bbef10b45fa33080cd8b4166800ae 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-49457 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-versatile/dcscb.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/2d7b23db35254b7d46e852967090c64cdccf24da https://git.kernel.org/stable/c/bbdfb7d4f036118d36415a2575efa6f5246505ae https://git.kernel.org/stable/c/a0fc05cd17617e63fc13ad0c01f3f0afd890d8ec https://git.kernel.org/stable/c/fcd1999ba97445a12cc394f5f42ffd9116bf0185 https://git.kernel.org/stable/c/d146e2a9864ade19914494de3fb520390b415d58 https://git.kernel.org/stable/c/83c329b980bddbc8c6a3d287d91f2103a4d4a860 https://git.kernel.org/stable/c/3c6006faed9aba5144b33176d061031a9be66954 https://git.kernel.org/stable/c/d6de7b181c29cd4578ec139aafb5eac062abbe1b https://git.kernel.org/stable/c/23b44f9c649bbef10b45fa33080cd8b4166800ae