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 F07B721A928 for ; Wed, 26 Feb 2025 02:25:00 +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=1740536701; cv=none; b=RBzsEmqj7ElC9pRLmdhOebo8Q97v6z6SnvWKJNTXHVPbdLMIIirxeBzWBgjvQhur+BsouFTc9LYFWRG0LjBXIxnZHXSfUHGhqPvw9RaRBlx3xQb7aHvRTF93b/xBr9sYv3ndWrySEdln1JOfuW9EO4rPfuHEYJXnGLTjgKxqDJ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536701; c=relaxed/simple; bh=oiFOMgL6/tq97hsuwxalrcsTAfOULLtwnod8jDa5Fxs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TH4fo+wFlGyt8QRW94Bs79aniuCjkjF+qTG8lHrTlctZGd6nqFloXK1HuDhuf5XCUYczOMHl4ve/ZdhDQ+movsSZbxF6z4zXpxnJl6J6T7PhEjPK7fjH0xAk5sMZCO4ii2sxiC133YPtoShq/zs1VKix7nvdnb2TbUfi/6+A/dY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PEdtMl7K; 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="PEdtMl7K" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8DD1C4CEDD; Wed, 26 Feb 2025 02:25:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536700; bh=oiFOMgL6/tq97hsuwxalrcsTAfOULLtwnod8jDa5Fxs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PEdtMl7Ko6z8kBZ/dSESQRWxgZNF/4NZJ/pLAeVuH6RqQHSEpUDjPmPXp5IwgzFRe ArXR9I5rrw0bIdZBxzWQhHa+mnpjKstDrvHrRKLkVeXT1opO/2XfSkMTMcT5DU6L/L YpijFNuw5KNZ2oZKuoXUyvQgmPzszdMw6iY7/Lyk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49668: PM / devfreq: exynos-ppmu: Fix refcount leak in of_get_devfreq_events Date: Wed, 26 Feb 2025 03:23:51 +0100 Message-ID: <2025022623-CVE-2022-49668-1793@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=2725; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oiFOMgL6/tq97hsuwxalrcsTAfOULLtwnod8jDa5Fxs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qu4vjdi5sr5v84EnrlILC8IYlj7jPzD/04QkhY5T5 ZJK33fe6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJKJYzLGgrCvUJvboqVfWK 6KWEBoPXvh/cYxjml6s/6zj+eMK1L+yP+P5pnam4sCciFgA= 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: PM / devfreq: exynos-ppmu: Fix refcount leak in of_get_devfreq_events of_get_child_by_name() returns a node pointer with refcount incremented, we should use of_node_put() on it when done. This function only calls of_node_put() in normal path, missing it in error paths. Add missing of_node_put() to avoid refcount leak. The Linux kernel CVE team has assigned CVE-2022-49668 to this issue. Affected and fixed versions =========================== Issue introduced in 4.0 with commit f262f28c147051e7aa6daaf4fb5996833ffadff4 and fixed in 5.4.204 with commit bdecd912e99acfd61507f1720d3f4eed1b3418d8 Issue introduced in 4.0 with commit f262f28c147051e7aa6daaf4fb5996833ffadff4 and fixed in 5.10.129 with commit e65027fdebbacd40595e96ef7b5d2418f71bddf2 Issue introduced in 4.0 with commit f262f28c147051e7aa6daaf4fb5996833ffadff4 and fixed in 5.15.53 with commit 01121e39ef537289926ae6f5374dce92c796d863 Issue introduced in 4.0 with commit f262f28c147051e7aa6daaf4fb5996833ffadff4 and fixed in 5.18.10 with commit 194781229d4cbc804b8ded13156eb8addce87d6c Issue introduced in 4.0 with commit f262f28c147051e7aa6daaf4fb5996833ffadff4 and fixed in 5.19 with commit f44b799603a9b5d2e375b0b2d54dd0b791eddfc2 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-49668 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/devfreq/event/exynos-ppmu.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/bdecd912e99acfd61507f1720d3f4eed1b3418d8 https://git.kernel.org/stable/c/e65027fdebbacd40595e96ef7b5d2418f71bddf2 https://git.kernel.org/stable/c/01121e39ef537289926ae6f5374dce92c796d863 https://git.kernel.org/stable/c/194781229d4cbc804b8ded13156eb8addce87d6c https://git.kernel.org/stable/c/f44b799603a9b5d2e375b0b2d54dd0b791eddfc2