[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025102820-CVE-2025-40081-c552@gregkh>
Date: Tue, 28 Oct 2025 12:48:58 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-40081: perf: arm_spe: Prevent overflow in PERF_IDX2OFF()
From: Greg Kroah-Hartman <gregkh@...nel.org>
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
Powered by blists - more mailing lists
 
