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 AD28A30F7F5 for ; Tue, 28 Oct 2025 11:54:13 +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=1761652453; cv=none; b=e1b1IpakEWuaRWxtdm1bFpFOfayhffZ+KpxggmLiF3wdfcpEpL/LSOMMOdm2u136acRs2cjTBI3fzVtKOcuq8YiXbPP3F3hVS/qRG3jlut7ibL3ZDRKz9DNfd1GooGU2zWVV8C5U7UMH7cju5h87o4jtwQh9/cslRuImx7Roe78= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761652453; c=relaxed/simple; bh=Zm59trdYkILLG75E2v3+IsVD7U5fuTYflv44g0FU8Ww=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HGrBXrvcx8c/IjHlNOEA/6fsvfgG9wtci/YigJJd0o3x9xs2NG8JvDjL1Yoc0VXtfUDr5+/FUoYO7No+XVtbH1V0efNV0EYJGAPmY0LGVXV6FPX5mTYyLAfbEXvZT2s+pzBZKvn7Sb20O1GxCU/SFWz9IuRet0LVYbhr7wNhG/E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xOb3O25W; 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="xOb3O25W" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FE1AC4CEE7; Tue, 28 Oct 2025 11:54:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761652453; bh=Zm59trdYkILLG75E2v3+IsVD7U5fuTYflv44g0FU8Ww=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xOb3O25WcFLZU1fbKpgvG1/panGxDFyK4FFB7Lq6wjpibgX7be772f1ZtEyTVkWP3 6us1uHCAUgCck+4Bh49Sa5s0ZAmPqJ10/GYFOt9gL8ejbzlTRd/kaeNYnGoksCZx+x MaU3ZfpvkFJXA5r0zE+Ey/UprZYgpGFaH8mcZYDQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40081: perf: arm_spe: Prevent overflow in PERF_IDX2OFF() Date: Tue, 28 Oct 2025 12:48:58 +0100 Message-ID: <2025102820-CVE-2025-40081-c552@gregkh> X-Mailer: git-send-email 2.51.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=2778; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3Z2aL1WLLrJQZCYF6hGoaZ1KNqPQ8C23njLUJZ+623Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkMa1vK/irperAvUX2+P+NfqnPg1/u2VcaHAlkP7N1st nhJRotlRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAFxEkmGerWGGVX4Uz7Noo+1b rY5ZSxzR0ZBlmF+dseix8Lz+3Z1vBBkznCxXvxex7gcA 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: perf: arm_spe: Prevent overflow in PERF_IDX2OFF() Cast nr_pages to unsigned long to avoid overflow when handling large AUX buffer sizes (>= 2 GiB). The Linux kernel CVE team has assigned CVE-2025-40081 to this issue. Affected and fixed versions =========================== Issue introduced in 4.15 with commit d5d9696b03808bc6be723cc85288c912c3a05606 and fixed in 5.15.195 with commit 5d01f2b81568289443d22f1e13a363f829de6343 Issue introduced in 4.15 with commit d5d9696b03808bc6be723cc85288c912c3a05606 and fixed in 6.1.156 with commit 7500384d3c9587593d75ded3b006835e7aa73ef8 Issue introduced in 4.15 with commit d5d9696b03808bc6be723cc85288c912c3a05606 and fixed in 6.6.112 with commit 379cae2cb982f571cda9493ac573ab71125fd299 Issue introduced in 4.15 with commit d5d9696b03808bc6be723cc85288c912c3a05606 and fixed in 6.12.53 with commit 1a19ba8e1f4ff24ece8ca69b79df8442c431db90 Issue introduced in 4.15 with commit d5d9696b03808bc6be723cc85288c912c3a05606 and fixed in 6.17.3 with commit e516cfd19b0f4c774a57b17fb43a7f41991f0735 Issue introduced in 4.15 with commit d5d9696b03808bc6be723cc85288c912c3a05606 and fixed in 6.18-rc1 with commit a29fea30dd93da16652930162b177941abd8c75e 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-40081 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/perf/arm_spe_pmu.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/5d01f2b81568289443d22f1e13a363f829de6343 https://git.kernel.org/stable/c/7500384d3c9587593d75ded3b006835e7aa73ef8 https://git.kernel.org/stable/c/379cae2cb982f571cda9493ac573ab71125fd299 https://git.kernel.org/stable/c/1a19ba8e1f4ff24ece8ca69b79df8442c431db90 https://git.kernel.org/stable/c/e516cfd19b0f4c774a57b17fb43a7f41991f0735 https://git.kernel.org/stable/c/a29fea30dd93da16652930162b177941abd8c75e