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 2A73D35A942 for ; Tue, 16 Dec 2025 13:43:57 +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=1765892637; cv=none; b=OZ/hRnoHRb46yT99bxT6yDbDkYQRfUPL7WWxAUAJItgg9dR+EZDqjF5VkHlnQM4PJ5lO623i64iRCHVbG/J++GE2l4Ml+MCk+EB6sLpFP/fjyq4XntZuev7KOAwIUmsANOPPMaPDIu/BSRXHNQdPqA1AYkPxblM62OZFT18ESY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765892637; c=relaxed/simple; bh=HmQjKzw3MqJY8jZlmaSTsa9qAslL8PInU9tieu56Gu0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ouXK48IVPFt9bZTx0NliOh7rNef0czDJGV21SZl+5Yu9sbiAmZuiV+pD26LpiFDdnbHNF9E4kJEuigmrPDP+O4mbbmoKCNpx+mEiEOUNxS6ltCiNCyxp14xAGJx3BpF6V5cf8hIU10ZqIviY6yVgzSqAo1oOYpfyp7fEEhUGSoU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NWcdkL1V; 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="NWcdkL1V" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B0DBC4CEF1; Tue, 16 Dec 2025 13:43:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765892637; bh=HmQjKzw3MqJY8jZlmaSTsa9qAslL8PInU9tieu56Gu0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=NWcdkL1V8o+L467hz6WexEJaYIWnne3UWGIwuUNGZg6Pzpe2kpdDUVCMn+2td4m/d W+QFQCC/esH2zXxX6QUQyjtum+ApWA0Z2KuhDdF+DqvCkEcWKegdbMa4IztZEYIOIV kWG3f/tBaEigby8v2sw2mXE/Lm2XZ7HSTKqSLCNw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68177: cpufreq/longhaul: handle NULL policy in longhaul_exit Date: Tue, 16 Dec 2025 14:43:38 +0100 Message-ID: <2025121630-CVE-2025-68177-5af8@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2768; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WzFx0y1EjetC/EIGjIhIu+KNrHdIWMttGf1eeCKqvb0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOSUwXpqT+KXm7o1fAYwFzcdmO+VuvWzvKCt8w3BIj9 dZ34j6hjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIj70MC3q1PW68uDzn/KuK QycPxx3avte6iYdhwbn0GUwBVV80OqQi6nROTuawttkUBAA= 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/longhaul: handle NULL policy in longhaul_exit longhaul_exit() was calling cpufreq_cpu_get(0) without checking for a NULL policy pointer. On some systems, this could lead to a NULL dereference and a kernel warning or panic. This patch adds a check using unlikely() and returns early if the policy is NULL. Bugzilla: #219962 The Linux kernel CVE team has assigned CVE-2025-68177 to this issue. Affected and fixed versions =========================== Fixed in 5.4.302 with commit b02352dd2e6cca98777714cc2a27553191df70db Fixed in 5.10.247 with commit 956b56d17a89775e4957bbddefa45cd3c6c71000 Fixed in 5.15.197 with commit 55cf586b9556863e3c2a45460aba71bcb2be5bcd Fixed in 6.1.159 with commit fd93e1d71b3b14443092919be12b1abf08de35eb Fixed in 6.6.117 with commit 8d6791c480f22d6e9a566eaa77336d3d37c5c591 Fixed in 6.12.58 with commit 64adabb6d9d51b7e7c02fe733346a2c4dd738488 Fixed in 6.17.8 with commit 809cf2a7794ca4c14c304b349f4c3ae220701ce4 Fixed in 6.18 with commit 592532a77b736b5153e0c2e4c74aa50af0a352ab 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-68177 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/longhaul.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/b02352dd2e6cca98777714cc2a27553191df70db https://git.kernel.org/stable/c/956b56d17a89775e4957bbddefa45cd3c6c71000 https://git.kernel.org/stable/c/55cf586b9556863e3c2a45460aba71bcb2be5bcd https://git.kernel.org/stable/c/fd93e1d71b3b14443092919be12b1abf08de35eb https://git.kernel.org/stable/c/8d6791c480f22d6e9a566eaa77336d3d37c5c591 https://git.kernel.org/stable/c/64adabb6d9d51b7e7c02fe733346a2c4dd738488 https://git.kernel.org/stable/c/809cf2a7794ca4c14c304b349f4c3ae220701ce4 https://git.kernel.org/stable/c/592532a77b736b5153e0c2e4c74aa50af0a352ab