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 1062E1F91F3 for ; Fri, 7 Mar 2025 09:10:33 +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=1741338634; cv=none; b=b0nBFGPQvb9U6s2NNmzSlilnTsOnxk4i0quTYCzAvAtltDTVumwYq36bd/bnkuE2N9/jgaj9vuvWKq8kQKbPKhjabpXxiMtRN4IaDExX6DcAoe1uC1eHlVIF8SrIVHTgKK84RrUQz9bV5Vq5gLzlGu5rb8v5FGDtj+gcJCPIL/s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741338634; c=relaxed/simple; bh=DukZkAM4rrW4EwIwWFSyVSE4Xxjg8/b/EzOXGl6mvoE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BOledOLoG8xcKPsu9e074Qzz0OQ4OVrZrO/uIGS1fJ7j+9+etBCN354dqeGtl3OxsbnNdT9CFjZifNN1AUYS29GnkVkKCw+ApgY6PIVRMBuktrptweI1gy58P1fL95EpQSbuLqoHqxIt2cbIFdpmVgXfQd4WVtRTI/1+rNCtfHQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FbvlANXO; 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="FbvlANXO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31C4CC4CED1; Fri, 7 Mar 2025 09:10:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1741338633; bh=DukZkAM4rrW4EwIwWFSyVSE4Xxjg8/b/EzOXGl6mvoE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FbvlANXO05SXJmf0stzVrz0pt4ISZ9J1Xgy+zaRRX2c2COlnTgEjd84Vdkchqvpdy C8UehS+fbkXrCvoYqBGl7OFMvgUHvi+hnnUNQcY/eWwBCn9vylAj1maW0RTRSHJQoh 1fGA5b2AqwZkZoGRVzf1LKLdEAsHfJo/AzMCBAPY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21841: cpufreq/amd-pstate: Fix cpufreq_policy ref counting Date: Fri, 7 Mar 2025 10:10:11 +0100 Message-ID: <2025030707-CVE-2025-21841-1182@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=2127; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DukZkAM4rrW4EwIwWFSyVSE4Xxjg8/b/EzOXGl6mvoE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOmntn+4oa685NKrrbtiTnzsajzTe09BQ1auI16IaaFX+ MIldzZu6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJfEliWLDQcdG5/WL3P2Wt V3DXvJF39YnD8xaGBdsuXy6esOWNpKamSchGsc5VDJ49VQA= 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/amd-pstate: Fix cpufreq_policy ref counting amd_pstate_update_limits() takes a cpufreq_policy reference but doesn't decrement the refcount in one of the exit paths, fix that. The Linux kernel CVE team has assigned CVE-2025-21841 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit 45722e777fd99ea863fe653c1838d39f678506e2 and fixed in 6.12.16 with commit 56e6976793c0fcf1638aa534242408ab4e4ca705 Issue introduced in 6.12 with commit 45722e777fd99ea863fe653c1838d39f678506e2 and fixed in 6.13.4 with commit 28e4c515cf644c621800bd97841757fd49891ba4 Issue introduced in 6.12 with commit 45722e777fd99ea863fe653c1838d39f678506e2 and fixed in 6.14-rc2 with commit 3ace20038e19f23fe73259513f1f08d4bf1a3c83 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-2025-21841 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/amd-pstate.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/56e6976793c0fcf1638aa534242408ab4e4ca705 https://git.kernel.org/stable/c/28e4c515cf644c621800bd97841757fd49891ba4 https://git.kernel.org/stable/c/3ace20038e19f23fe73259513f1f08d4bf1a3c83