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 6691C216618 for ; Wed, 26 Feb 2025 02:15:16 +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=1740536116; cv=none; b=lvtEXSsS1qArB4Q9NZWPJqWb7vTOAGf3I7Zzt2Smw+lmzuW5m8WjlRBtofmfSD40ZPZepohU7XBNNrs7S5tN5uuWS7AgVjOSVxXbX4OzvKivIjLNXSiAUqws5nnE8knGTR9IECZAXNCrq0RCRQdzHP66F6vTVmILToYhwpENvmk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536116; c=relaxed/simple; bh=M1xPpN6qIR3MP21KvWeCp3wLsnwRWH/Q+UpViM0mXNU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PU/TGPEnetbQPjuPSwqbOcFdoZ8RdsoJ6U2LC/5UOIErtTuUf1cNr5btFuUehhEUi3wMniNRTQeIV6wM3bNe9/MYeEhLDvlQF9Zot9FsSnm9EhFolWwaDJwRnZgFOi8Pi1kCeye+zAqilvzJqmT7DpT/YXpzpGiRGteO9Z4+Qac= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iTP+Kl4G; 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="iTP+Kl4G" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39E6DC4CEEB; Wed, 26 Feb 2025 02:15:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536116; bh=M1xPpN6qIR3MP21KvWeCp3wLsnwRWH/Q+UpViM0mXNU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=iTP+Kl4Gb+/787TiBMO56WIAISK6BPNd3iWQo0cs0BODILmKMJ9jWiAvwOcQ8fV7o kZhLsEYb1PgEt1o/ljsCIrlAaHyuJfloWZEquIs0+1vPZvAEI25DkZCwTNOGfI9izD IbReNs6pB9lPV2+IVlfQVMmKbSTnw4mE0348HuZc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49466: regulator: scmi: Fix refcount leak in scmi_regulator_probe Date: Wed, 26 Feb 2025 03:12:20 +0100 Message-ID: <2025022601-CVE-2022-49466-d3cd@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=2403; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=M1xPpN6qIR3MP21KvWeCp3wLsnwRWH/Q+UpViM0mXNU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yn8ZpG/QeDpNMyLzTapF708x/+/73n50TTVRvrwzX PFS04E7HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRE1cZFhxadHi9sJbv++nT K2erlClN/vNqcTHDbBZm7bs+Lyoc3navX3Hi0ZtfO3ZLzwAA 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: regulator: scmi: Fix refcount leak in scmi_regulator_probe of_find_node_by_name() 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-49466 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 0fbeae70ee7ce98e18a47337cd1f205dd88589e9 and fixed in 5.15.46 with commit 9ebbfa73d69909b7c737f599fd4ebd42318fc881 Issue introduced in 5.11 with commit 0fbeae70ee7ce98e18a47337cd1f205dd88589e9 and fixed in 5.17.14 with commit 299a002161c7bfb72e99ba45e5b660aecc344ea0 Issue introduced in 5.11 with commit 0fbeae70ee7ce98e18a47337cd1f205dd88589e9 and fixed in 5.18.3 with commit 4a59c763ef9b68c711dc2fd2ef4a6648da5480ee Issue introduced in 5.11 with commit 0fbeae70ee7ce98e18a47337cd1f205dd88589e9 and fixed in 5.19 with commit 68d6c8476fd4f448e70e0ab31ff972838ac41dae 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-49466 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: drivers/regulator/scmi-regulator.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/9ebbfa73d69909b7c737f599fd4ebd42318fc881 https://git.kernel.org/stable/c/299a002161c7bfb72e99ba45e5b660aecc344ea0 https://git.kernel.org/stable/c/4a59c763ef9b68c711dc2fd2ef4a6648da5480ee https://git.kernel.org/stable/c/68d6c8476fd4f448e70e0ab31ff972838ac41dae