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 D1696289E00 for ; Thu, 10 Jul 2025 07:43: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=1752133407; cv=none; b=ra6/BQ7A08nE6NfRhWPVDeJNzWsfc/ibhnJZ+YY9sdI6/oCy6KNGg9HMF4msZIKjR3hyvOayRPiEp48msPufBbOA24HMr03CmhRzvFywI7gZme1XPCsYq65p/TmhTZBwcdIisnZVjuzyKhiu5R6CxmOCokjg6ediq+Ymhuma5FA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752133407; c=relaxed/simple; bh=lSE4SrmioqmeA4o/tTGp4ZRcye0OmVoEOvuR1FL7S8g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hCs6wPjdRD7TC0KS1pfYMdwP+L4gGGSFd8hVkc7SfXkenMyDshEuClTHqJ4kSAP47h9zGOd1asly0T5wZ+daVqJ/L8crbi4nmlZHofcBB3I3zouISSXCEoR924U9+RdcRZS0lseiDW2very6M6z7kHBf0d6i+61Gb1lVQyGFryU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=asj9BpKA; 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="asj9BpKA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 622EAC4CEE3; Thu, 10 Jul 2025 07:43:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752133407; bh=lSE4SrmioqmeA4o/tTGp4ZRcye0OmVoEOvuR1FL7S8g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=asj9BpKA+tIj0n2VUG/UUVk/zQ26uixs/mO80slw4JLTUYT5Gk7XjeRJ6OgeKhLQl 0pDErHnzOzyyM2mfUzLYSaDVL6j659oQLfTeFbeb7gmJLeNOKidd7CzR1Aunur39ab Pw8xxYGLgQ92FIUfkeSc4lEK7AT+rM1w88mYHYho= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38297: PM: EM: Fix potential division-by-zero error in em_compute_costs() Date: Thu, 10 Jul 2025 09:42:38 +0200 Message-ID: <2025071012-CVE-2025-38297-9dee@gregkh> X-Mailer: git-send-email 2.50.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=2427; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=c6/O2rFSW0bJqIfq8cS0td1topRYjmVfJzcPT5CSjg4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBn5eVd4DBy231fieXxrxa0lXu76xU7988SOn3xzeB3v2 Vo1rcd/OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAixTEM8zNfuqeILWm7oSuu OftY39RzKziVKxnmCvK6/F9y4aly5+y6mZE//1mcKuPzAwA= 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: PM: EM: Fix potential division-by-zero error in em_compute_costs() When the device is of a non-CPU type, table[i].performance won't be initialized in the previous em_init_performance(), resulting in division by zero when calculating costs in em_compute_costs(). Since the 'cost' algorithm is only used for EAS energy efficiency calculations and is currently not utilized by other device drivers, we should add the _is_cpu_device(dev) check to prevent this division-by-zero issue. The Linux kernel CVE team has assigned CVE-2025-38297 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 1b600da510735a0f92c8b4140a7e2cb037a6a6c3 and fixed in 6.12.34 with commit 81d72f9241d884ec29524431f74f8009310cfa0c Issue introduced in 6.9 with commit 1b600da510735a0f92c8b4140a7e2cb037a6a6c3 and fixed in 6.15.3 with commit 14cbdd64f3870cf0a2d94b87919b9056448c59a0 Issue introduced in 6.9 with commit 1b600da510735a0f92c8b4140a7e2cb037a6a6c3 and fixed in 6.16-rc1 with commit 179c0c7044a378198adb36f2a12410ab68cc730a 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-38297 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: kernel/power/energy_model.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/81d72f9241d884ec29524431f74f8009310cfa0c https://git.kernel.org/stable/c/14cbdd64f3870cf0a2d94b87919b9056448c59a0 https://git.kernel.org/stable/c/179c0c7044a378198adb36f2a12410ab68cc730a