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 BE857219EB8 for ; Wed, 26 Feb 2025 02:24:27 +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=1740536667; cv=none; b=Z1lOPLFhdgKJLyuQplFUbZ4/eG7b4bEwU3q5Hi45Ptb3Hlye4cv/0daPHdSosG+mfLMMIlmDQJzxQj1NNKPE/wtjL9LETKYELNecSoHDeSpUMzM7KpGJoW9dtRFsZUdhfHSNeeuMVlRHIA3xbAw60VNFSFs/MI3mTnzKrlz3l/Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536667; c=relaxed/simple; bh=P3HUADITqR0dqF8CGk8cR4utdw0oV5yZBVEylVE2FwQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aO1riWceXfC1uAUCitHPVlWg7+cgsRZ8mUBwIgAKZuLFWMCSUA0+uI5yuqhNDZ9wFpW5OXUDvfNdF093ZuuZhkjhXPkoFulgA+NXuG3a/4C+pZ+trtmcQAua3pD4HVC3pZcVq6KWJ8I59nRRs/lU+L5JYTdpB19iRGYna2cQ6Bo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Abtbznrs; 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="Abtbznrs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94147C4CEDD; Wed, 26 Feb 2025 02:24:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536667; bh=P3HUADITqR0dqF8CGk8cR4utdw0oV5yZBVEylVE2FwQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=AbtbznrsHw6bw1IsAA1Tu+lUG61gV3MeRi3EgCnyV3KEe8dDRjZVQoNjukgR6mrQR Lcusk1HiXQnmyvAK2vQ9rDF8mU0wU/qD+aD3q7fJS622GVfNoleIpyMrm2iaclYHZO SGfnvY+RMy1BTpEJLUGemCF1VsNzZqpV18mWMIfw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49621: cpufreq: pmac32-cpufreq: Fix refcount leak bug Date: Wed, 26 Feb 2025 03:23:04 +0100 Message-ID: <2025022615-CVE-2022-49621-ac28@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=2653; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=P3HUADITqR0dqF8CGk8cR4utdw0oV5yZBVEylVE2FwQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qq7vF75f3u/W6akiZCc588P9T2XfgrJ+LtfTMZHc5 tNeJnWsI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYS/5xhntnLV5fyW0/O66mo 32o7fdYq8Sv8txnmp4WHtLP5BH4RX/bkze590750G/hFAwA= 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: cpufreq: pmac32-cpufreq: Fix refcount leak bug In pmac_cpufreq_init_MacRISC3(), we need to add corresponding of_node_put() for the three node pointers whose refcount have been incremented by of_find_node_by_name(). The Linux kernel CVE team has assigned CVE-2022-49621 to this issue. Affected and fixed versions =========================== Fixed in 4.9.324 with commit 4f242486bf46d314b2e3838cc64b56f008a3c4d7 Fixed in 4.14.289 with commit 37c16fc2cb13a13f3c0193bfc6f2edef7d7df7d7 Fixed in 4.19.253 with commit 4585890ab2dbf455d80e254d3d859d4c1e357920 Fixed in 5.4.207 with commit 8dda30f81c751b01cd71f2cfaeef26ad4393b1d1 Fixed in 5.10.132 with commit 3ea9dbf7c2f436952bca331c6f5d72f75aca224e Fixed in 5.15.56 with commit 57289b6601fe78c09921599b042a0b430fb420ec Fixed in 5.18.13 with commit 4513018d0bd739097570d26a7760551cba3deb56 Fixed in 5.19 with commit ccd7567d4b6cf187fdfa55f003a9e461ee629e36 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-49621 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/cpufreq/pmac32-cpufreq.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/4f242486bf46d314b2e3838cc64b56f008a3c4d7 https://git.kernel.org/stable/c/37c16fc2cb13a13f3c0193bfc6f2edef7d7df7d7 https://git.kernel.org/stable/c/4585890ab2dbf455d80e254d3d859d4c1e357920 https://git.kernel.org/stable/c/8dda30f81c751b01cd71f2cfaeef26ad4393b1d1 https://git.kernel.org/stable/c/3ea9dbf7c2f436952bca331c6f5d72f75aca224e https://git.kernel.org/stable/c/57289b6601fe78c09921599b042a0b430fb420ec https://git.kernel.org/stable/c/4513018d0bd739097570d26a7760551cba3deb56 https://git.kernel.org/stable/c/ccd7567d4b6cf187fdfa55f003a9e461ee629e36