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 32E791C8FBA for ; Wed, 18 Jun 2025 11:15:25 +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=1750245325; cv=none; b=YlpMok3GEIQvcg/8VR8nY8WqtN/ZH2QdpOdpHNEnyX9FG+LJ6K/Tw48gEzUTCuY8H/yzGDhxJGsg79GV5MeHKaWeFIsh51sUv1HX7PNCJVPE4RvL7OZnhmuHhAoAi8GA00VoqNjzShGp7ykUbVMurnWFDYkakKB0y3EHqfOb8no= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245325; c=relaxed/simple; bh=Df4qzQURFA8Cxf83udUlHhfWbV2ajKzXtgXCqgnIlaw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RNqBY0su9IB8NiJ5adk7UMRJVH7eaQxX6XkZVR9xk/I8DjDkxD9IbaUnTxZSszVa36mlOh+tHvm2fGll31Ujd7cvpzT4D/Ri6FvULrf3w+maZSmQ0N37mFLz42pG7lcwT2zuUea7EKZ+S+OAJQKWqN1IVHym76AthzJ87oWv8ms= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GjWinThb; 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="GjWinThb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95C98C4CEE7; Wed, 18 Jun 2025 11:15:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245325; bh=Df4qzQURFA8Cxf83udUlHhfWbV2ajKzXtgXCqgnIlaw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=GjWinThbfhiubKA7hlcMMF3e9SuFxRkT47iikmoumhc7aCNQFlXbN3yleHiY4DE0r AOLx6qIwOKQtHgxRo4IYHx6ep46GlTYBxygIy4UcfrtuExgIRSZNiGngz8vy2H/g2r AZizwF5tVC5K4mA9XzMCXT2Oaawgn5Z6/Tp9SBBM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50197: cpufreq: zynq: Fix refcount leak in zynq_get_revision Date: Wed, 18 Jun 2025 13:04:22 +0200 Message-ID: <2025061838-CVE-2022-50197-ed69@gregkh> X-Mailer: git-send-email 2.49.0 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=3312; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=i6nq2wK1fBBMtges4oqApaZcte2yab85VbFGFiPKBXM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBcyYdVmzwiP2jy3+vU3HDg3SjkJnV7tWHV9adOc1rw R11Ksm/I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZipcWw4PpdnbMdviGRoUHy AvMc/XKsV6t8Y5inUGvSzltYMFlgt6tsvEcY37z7B4oB X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: cpufreq: zynq: Fix refcount leak in zynq_get_revision of_find_compatible_node() returns a node pointer with refcount incremented, we should use of_node_put() on it when done. Add missing of_node_put() to avoid refcount leak. The Linux kernel CVE team has assigned CVE-2022-50197 to this issue. Affected and fixed versions =========================== Issue introduced in 3.16 with commit 00f7dc636366f72474b1896f4990b3c086cd2c6d and fixed in 4.14.291 with commit f52c9be1779d70037ae300762d19b08fe3656237 Issue introduced in 3.16 with commit 00f7dc636366f72474b1896f4990b3c086cd2c6d and fixed in 4.19.256 with commit dcbb974254d2a27240c2e50185afdde90f923feb Issue introduced in 3.16 with commit 00f7dc636366f72474b1896f4990b3c086cd2c6d and fixed in 5.4.211 with commit a530fa52d4fdffc5f010f90c05ac63019b8ff5f8 Issue introduced in 3.16 with commit 00f7dc636366f72474b1896f4990b3c086cd2c6d and fixed in 5.10.137 with commit 22e6d8bcde8e66b64f46bf9bd2d3d0f88d40c39f Issue introduced in 3.16 with commit 00f7dc636366f72474b1896f4990b3c086cd2c6d and fixed in 5.15.61 with commit 179034fb108e3655142f2af0c309cef171c34d68 Issue introduced in 3.16 with commit 00f7dc636366f72474b1896f4990b3c086cd2c6d and fixed in 5.18.18 with commit ecefd22d5db7ccb8bec2646e5d25e058fc33162a Issue introduced in 3.16 with commit 00f7dc636366f72474b1896f4990b3c086cd2c6d and fixed in 5.19.2 with commit 3b01353f1825151a29d08e0868b2bf01e1116ab5 Issue introduced in 3.16 with commit 00f7dc636366f72474b1896f4990b3c086cd2c6d and fixed in 6.0 with commit d1ff2559cef0f6f8d97fba6337b28adb10689e16 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-50197 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-zynq/common.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/f52c9be1779d70037ae300762d19b08fe3656237 https://git.kernel.org/stable/c/dcbb974254d2a27240c2e50185afdde90f923feb https://git.kernel.org/stable/c/a530fa52d4fdffc5f010f90c05ac63019b8ff5f8 https://git.kernel.org/stable/c/22e6d8bcde8e66b64f46bf9bd2d3d0f88d40c39f https://git.kernel.org/stable/c/179034fb108e3655142f2af0c309cef171c34d68 https://git.kernel.org/stable/c/ecefd22d5db7ccb8bec2646e5d25e058fc33162a https://git.kernel.org/stable/c/3b01353f1825151a29d08e0868b2bf01e1116ab5 https://git.kernel.org/stable/c/d1ff2559cef0f6f8d97fba6337b28adb10689e16