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 743B521ADCE for ; Wed, 26 Feb 2025 02:27:47 +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=1740536867; cv=none; b=VBUdazrzNjWVCycq3motIPGu0XgbthCLOYHE5ljxvzitV3V4LaVpM75d8VVw206ElP7lwyo6/2HoISFE44uYjFVBoRRl2kX6p6TN7470CqGsaLUk7s3uQeCd8jH2bY6AMbJoKmigLZIaDw+Aq7yC3Y7G882ndsqKe1yKFzh5E3k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536867; c=relaxed/simple; bh=l34c5HhqWnlHGHDG0uhDWAQQJC8X0W3/2ijNpnJcPf8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=muPFGFxjA2Vti4ixIBef7cr6UY4MAxwR49/lKu1VNYX8Ra3iHHufC/VUaVnmIQ4ZMVNgYAymOWEkXcikdxuWxcdhaU3Y3bCrBY14pnMJ9PLEO69p0MjbqnLdx2KPl4YU2skqt+cuOy7I4AmmHuKmnqGYjbQT8GnbtDZQCHMRp9E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Tf8xp74A; 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="Tf8xp74A" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47742C4CEDD; Wed, 26 Feb 2025 02:27:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536867; bh=l34c5HhqWnlHGHDG0uhDWAQQJC8X0W3/2ijNpnJcPf8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Tf8xp74AzmbFdnJkaKUJv6zaHuo5zzwD0rjAXwk00Ch6XxUzshEU+zyUc0qoCIZ6u D0+Z3hXIEzfq8s1Q2BQLct6SJaZGrVElLgA8WEyqd7YUXRUeYG7sgjiEAV409qIjJ1 UoO8QaAfIQkOsdJWLuG8r2jdV1VKMeGnEh48Ec5M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49677: ARM: cns3xxx: Fix refcount leak in cns3xxx_init Date: Wed, 26 Feb 2025 03:24:00 +0100 Message-ID: <2025022625-CVE-2022-49677-8643@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=3308; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=l34c5HhqWnlHGHDG0uhDWAQQJC8X0W3/2ijNpnJcPf8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qh7e+1S48bF9rvgqmXyzJ+Vm8UeZP1pd7YsUjGI8f S/uwsb8jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIdArDfAehCCvRYPeqhXzh s7IcmGezMao5Msz3vPbi47uuq70FrJeDzqmmP//g3rEbAA== 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: cns3xxx: Fix refcount leak in cns3xxx_init 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-49677 to this issue. Affected and fixed versions =========================== Issue introduced in 3.10 with commit 415f59142d9d9dd023deaeb3b4dfc1aecdd3983c and fixed in 4.9.321 with commit b8b84e01ca94e2e1f5492353e9c24dab520b2e5b Issue introduced in 3.10 with commit 415f59142d9d9dd023deaeb3b4dfc1aecdd3983c and fixed in 4.14.286 with commit 45bebbc8cea7d586a6216dc62814bdb380b9b29b Issue introduced in 3.10 with commit 415f59142d9d9dd023deaeb3b4dfc1aecdd3983c and fixed in 4.19.250 with commit 68d4303bf59662b64bd555e2aa0518282d20aa4f Issue introduced in 3.10 with commit 415f59142d9d9dd023deaeb3b4dfc1aecdd3983c and fixed in 5.4.202 with commit d1359e4129ad43e43972a28838b87291c51de23d Issue introduced in 3.10 with commit 415f59142d9d9dd023deaeb3b4dfc1aecdd3983c and fixed in 5.10.127 with commit c980392af1473d6d5662f70d8089c8e6d85144a4 Issue introduced in 3.10 with commit 415f59142d9d9dd023deaeb3b4dfc1aecdd3983c and fixed in 5.15.51 with commit da3ee7cd2f15922ad88a7ca6deee2eafdc7cd214 Issue introduced in 3.10 with commit 415f59142d9d9dd023deaeb3b4dfc1aecdd3983c and fixed in 5.18.8 with commit dc5170aae24e04068fd5ea125d06c0ab51f48a27 Issue introduced in 3.10 with commit 415f59142d9d9dd023deaeb3b4dfc1aecdd3983c and fixed in 5.19 with commit 1ba904b6b16e08de5aed7c1349838d9cd0d178c5 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-49677 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-cns3xxx/core.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/b8b84e01ca94e2e1f5492353e9c24dab520b2e5b https://git.kernel.org/stable/c/45bebbc8cea7d586a6216dc62814bdb380b9b29b https://git.kernel.org/stable/c/68d4303bf59662b64bd555e2aa0518282d20aa4f https://git.kernel.org/stable/c/d1359e4129ad43e43972a28838b87291c51de23d https://git.kernel.org/stable/c/c980392af1473d6d5662f70d8089c8e6d85144a4 https://git.kernel.org/stable/c/da3ee7cd2f15922ad88a7ca6deee2eafdc7cd214 https://git.kernel.org/stable/c/dc5170aae24e04068fd5ea125d06c0ab51f48a27 https://git.kernel.org/stable/c/1ba904b6b16e08de5aed7c1349838d9cd0d178c5