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 73FEEF9CB for ; Wed, 18 Jun 2025 09:35:09 +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=1750239309; cv=none; b=VNXPAnUdtYtoXPRHO5zlGz5Ko9vnUctOXR1QAHnvgNCVIkOECpFM9TTKYostMOY2/1Cz3Ri/dotOMCxL/tJ6wGFCb3nI3eP52sAMbg9zSuwih875HBaUZ/O5r7QcWQE37WwSLk5qW6HmJ80Im9UyZU4PCQQpcfMUqU+zr6OprvU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750239309; c=relaxed/simple; bh=QItH6j2j2rx3bYS0MTK7dY4urDKL112e5H5VPWrnd0w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=or/UMxRaSkxpg50WD9ELSGvFxIL7hU9qNKTlpwqHkMto7kEqHJmVD1vHWpIPSrpwGDmLK1Po6X4NFvH7A3N+CbTvfAXE2hQJjppdHQR2mc4pGwdLF4d2i7YpOr5o5V1Xh0+DYq08rzRJI1Os616DlO64Dzj6sYmmd/2seDT/qKI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gAARcMRr; 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="gAARcMRr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB77BC4CEE7; Wed, 18 Jun 2025 09:35:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750239309; bh=QItH6j2j2rx3bYS0MTK7dY4urDKL112e5H5VPWrnd0w=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gAARcMRrMRjis29iSmUjTRTNCAiST9m0A1d8P0jK7fwo1U98Au/b3azljJP6LWTmn 2dqEcZJfZEtCWw78lOj7GJZtBs6ctdkyRUNJfDGMb5kjmRU1mBHQsjhdnPgHqUDjXD 2GpA440UF+cr0hw4dYpF2f/LwiNflFlB4pgx4txs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38038: cpufreq: amd-pstate: Remove unnecessary driver_lock in set_boost Date: Wed, 18 Jun 2025 11:33:34 +0200 Message-ID: <2025061827-CVE-2025-38038-797b@gregkh> X-Mailer: git-send-email 2.49.0 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=1992; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=b9cCY0lmaFvv5yBkpYYxkHp/IU4xxV1PU0llmt1ejus=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlB7c/DHL9PSDNmWSnwsiWc6ff3gDeyZXt7Dtkb+PHfv HxDTO5yRwwLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykMpVhwf7CJAe2ZZMuffjh zZyu5Lxp+df0ywxT+L7/4OER26r3ul4wh6HLNEytYR0A X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: cpufreq: amd-pstate: Remove unnecessary driver_lock in set_boost set_boost is a per-policy function call, hence a driver wide lock is unnecessary. Also this mutex_acquire can collide with the mutex_acquire from the mode-switch path in status_store(), which can lead to a deadlock. So, remove it. The Linux kernel CVE team has assigned CVE-2025-38038 to this issue. Affected and fixed versions =========================== Fixed in 6.12.31 with commit 61e931ee145eeab8196e585ff4334870b130b744 Fixed in 6.14.9 with commit cd347d071713234586762d79c5a691785e9be418 Fixed in 6.15 with commit db1cafc77aaaf871509da06f4a864e9af6d6791f 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-38038 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/61e931ee145eeab8196e585ff4334870b130b744 https://git.kernel.org/stable/c/cd347d071713234586762d79c5a691785e9be418 https://git.kernel.org/stable/c/db1cafc77aaaf871509da06f4a864e9af6d6791f