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 9145021A44A for ; Thu, 8 May 2025 06:41:23 +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=1746686483; cv=none; b=J2d0o/Jl9yfW4RE43hZ2yqFqTYQdiHukIXKxMfD95oghXUuufC4WIBNP1eKj6j7ApeXkrkyK+EjDK+13nmBSWHhujMALjzI2iZjRjwWNpOfggy7eYZkOrPwdN7lH4NnCEYlfikhZUjrS7Rzlm16i642pmrGuReaQ5WMmczuQFGk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746686483; c=relaxed/simple; bh=DeetRralcityODsxtCEuUeN91PUkbfHhua0SX1XFuLc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MRJkPKQ0g9j/T8G1ExrIY9DpdUKIpI9nspGzgbzxkN2xkkv00yUPwPp4yLKcK7It70z1xA91HsqBnVTZ1AYIkyMRdM3pIpUlIuD68oZGMGXEqfC49g41oWvUnib6Sc5iLYzmKoAI6wMNrh04Xh7SVeyHbDx+yrtqPyRnSGXpnhc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hCCOLYVg; 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="hCCOLYVg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00533C4CEEB; Thu, 8 May 2025 06:41:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746686483; bh=DeetRralcityODsxtCEuUeN91PUkbfHhua0SX1XFuLc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hCCOLYVgqSJXTadqk7FIvJuHj9FGZKcHZlmXsuQ4yqzP3lAwF0BtIVdO2feHTfb1b PiNDexZ4xteBgYqJN4xWrm76rVBMB1lMxXnS188ODiMMb12PH/5ZA8s1hj8cvBgkuh HtZOYoT/lPWOplDO0YxcCtNOfTF3yPxsGvzRmkKQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37831: cpufreq: apple-soc: Fix null-ptr-deref in apple_soc_cpufreq_get_rate() Date: Thu, 8 May 2025 08:39:40 +0200 Message-ID: <2025050824-CVE-2025-37831-af34@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=2450; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fC95UnhXK6JqZEN/uHujNJnrJrkwHkWdk03aJAVBPIg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkygXNYeB+v5QzNXi1/3uDn1ysCFzmK5F94WpnNbm5f/ qLJKaW+I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZScpRhfnhXSUh3JL/IXIkm Z88FE9wLtDY8YJifuln/Te3qhM8hsgsNPR/dv3/rYZ8XAA== 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: apple-soc: Fix null-ptr-deref in apple_soc_cpufreq_get_rate() cpufreq_cpu_get_raw() can return NULL when the target CPU is not present in the policy->cpus mask. apple_soc_cpufreq_get_rate() does not check for this case, which results in a NULL pointer dereference. The Linux kernel CVE team has assigned CVE-2025-37831 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 6286bbb40576ffadfde206c332b61345c19af57f and fixed in 6.6.89 with commit 1053dcf8a504d4933bb3f73df22bc363298d194b Issue introduced in 6.2 with commit 6286bbb40576ffadfde206c332b61345c19af57f and fixed in 6.12.26 with commit fbdba5f37413dbc09d82ad7235e5b7a2fb8e0f75 Issue introduced in 6.2 with commit 6286bbb40576ffadfde206c332b61345c19af57f and fixed in 6.14.5 with commit 01e86ea22610d98ae6141e428019a6916e79f725 Issue introduced in 6.2 with commit 6286bbb40576ffadfde206c332b61345c19af57f and fixed in 6.15-rc4 with commit 9992649f6786921873a9b89dafa5e04d8c5fef2b 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-37831 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/apple-soc-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/1053dcf8a504d4933bb3f73df22bc363298d194b https://git.kernel.org/stable/c/fbdba5f37413dbc09d82ad7235e5b7a2fb8e0f75 https://git.kernel.org/stable/c/01e86ea22610d98ae6141e428019a6916e79f725 https://git.kernel.org/stable/c/9992649f6786921873a9b89dafa5e04d8c5fef2b