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 2642526B2B1 for ; Fri, 9 May 2025 06:43:31 +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=1746773011; cv=none; b=eCbltURW6NeEd0vRD4/1U4DqUZOpDW2HiWD0Z8hKkQ4PIGsa1g485MoPYUHldLC2L2fLP+GPAFb3SnpIir8aR76YppqLJefq4iAe/xLZ8Zxg7XTPue7syMRfj3y9ACqY/fgrxn/0PxRcZf+UPJf0puLQ+BsNyGp8U/j0KhxjhqA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746773011; c=relaxed/simple; bh=+6UhKywur62bisIU3g7OvsrxtZd9VF/zpbmrByTiHrY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qc/mFICkJR4AfT7tOeSXd7xoyp4s0fosQMQmg79xLqPCHqEFdCsl+y6PwvFnZFjv3E3FXgBJ5Ft3l5zH/4Imqpk+vCjuV45YfjryqV79YQQiz/REVIE21hEHJ90aMBvC1GbFeE7QY4hYcI39j8AXdn7l/YrTL2UBYHEfkO8fmys= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UKqLHQY5; 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="UKqLHQY5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88291C4CEE4; Fri, 9 May 2025 06:43:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746773011; bh=+6UhKywur62bisIU3g7OvsrxtZd9VF/zpbmrByTiHrY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=UKqLHQY5YSRI6nY3TlRtSm0RMgAyU6PmKWcMc0Ff3fPnHP3CQqv/AhYIbvATL4EV4 ZvBFsyOwizPdgtaUm9dmB3bHpsIcfG2L7Mlk5T/Hr8piMswM2FetiyW9pV4yBOQFSX MI6lvYRa6UmacXF6S6cT+Qb5qrNAqwozMHWCfoXM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37841: pm: cpupower: bench: Prevent NULL dereference on malloc failure Date: Fri, 9 May 2025 08:42:19 +0200 Message-ID: <2025050915-CVE-2025-37841-1954@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=2764; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Un2phZIX5d83XGkG/DfFB/sH97dXrYcpSsqzusZOnK0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmyi09E3s7IPK6+PDGurXJaydMn4keXsbC0fbB5dtCr/ /PiL3EPOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAivdcZ5he+68ifcdt1Wv2V W83Bfwy2NeTN1meYp6nweJ3chg9e+ceZOPdnTLxrsNvvEwA= 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: cpupower: bench: Prevent NULL dereference on malloc failure If malloc returns NULL due to low memory, 'config' pointer can be NULL. Add a check to prevent NULL dereference. The Linux kernel CVE team has assigned CVE-2025-37841 to this issue. Affected and fixed versions =========================== Fixed in 5.4.293 with commit 34a9394794b0f97af6afedc0c9ee2012c24b28ed Fixed in 5.10.237 with commit 79bded9d70142d2a11d931fc029afece471641db Fixed in 5.15.181 with commit 0e297a02e03dceb2874789ca40bd4e65c5371704 Fixed in 6.1.135 with commit 87b9f0867c0afa7e892f4b30c36cff6bf2707f85 Fixed in 6.6.88 with commit 942a4b97fc77516678b1d8af1521ff9a94c13b3e Fixed in 6.12.24 with commit f8d28fa305b78c5d1073b63f26db265ba8291ae1 Fixed in 6.13.12 with commit ceec06f464d5cfc0ba966225f7d50506ceb62242 Fixed in 6.14.3 with commit 5e38122aa3fd0f9788186e86a677925bfec0b2d1 Fixed in 6.15-rc1 with commit 208baa3ec9043a664d9acfb8174b332e6b17fb69 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-37841 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: tools/power/cpupower/bench/parse.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/34a9394794b0f97af6afedc0c9ee2012c24b28ed https://git.kernel.org/stable/c/79bded9d70142d2a11d931fc029afece471641db https://git.kernel.org/stable/c/0e297a02e03dceb2874789ca40bd4e65c5371704 https://git.kernel.org/stable/c/87b9f0867c0afa7e892f4b30c36cff6bf2707f85 https://git.kernel.org/stable/c/942a4b97fc77516678b1d8af1521ff9a94c13b3e https://git.kernel.org/stable/c/f8d28fa305b78c5d1073b63f26db265ba8291ae1 https://git.kernel.org/stable/c/ceec06f464d5cfc0ba966225f7d50506ceb62242 https://git.kernel.org/stable/c/5e38122aa3fd0f9788186e86a677925bfec0b2d1 https://git.kernel.org/stable/c/208baa3ec9043a664d9acfb8174b332e6b17fb69