# CVE-2025-40081: perf: arm_spe: Prevent overflow in PERF_IDX2OFF()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-10-28T11:48:45.392Z
- Modified: 2026-10-19T21:10:00.160Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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).

(As written by CVE List.)

## Affected

- Linux Linux: from d5d9696b03808bc6be723cc85288c912c3a05606 before 656e9a5d69acdd1b20462f4a33378b90ddcb9626; from d5d9696b03808bc6be723cc85288c912c3a05606 before 9c045d4501f7f70724a3bbb561f4f22d292bbfe6; from d5d9696b03808bc6be723cc85288c912c3a05606 before 5d01f2b81568289443d22f1e13a363f829de6343; from d5d9696b03808bc6be723cc85288c912c3a05606 before 7500384d3c9587593d75ded3b006835e7aa73ef8; from d5d9696b03808bc6be723cc85288c912c3a05606 before 379cae2cb982f571cda9493ac573ab71125fd299; from d5d9696b03808bc6be723cc85288c912c3a05606 before 1a19ba8e1f4ff24ece8ca69b79df8442c431db90; from d5d9696b03808bc6be723cc85288c912c3a05606 before e516cfd19b0f4c774a57b17fb43a7f41991f0735; from d5d9696b03808bc6be723cc85288c912c3a05606 before a29fea30dd93da16652930162b177941abd8c75e; 4.15 (not affected: before 4.15; from 5.4.301 up to 5.4.*; from 5.10.246 up to 5.10.*; from 5.15.195 up to 5.15.*; from 6.1.156 up to 6.1.*; from 6.6.112 up to 6.6.*; from 6.12.53 up to 6.12.*; from 6.17.3 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/656e9a5d69acdd1b20462f4a33378b90ddcb9626>
- <https://git.kernel.org/stable/c/9c045d4501f7f70724a3bbb561f4f22d292bbfe6>
- <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>

## Sources

- CVE List: [CVE-2025-40081](https://www.cve.org/CVERecord?id=CVE-2025-40081), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-40081](https://nvd.nist.gov/vuln/detail/CVE-2025-40081), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-40081 · Whole record: https://cve.day/CVE-2025-40081.json · Rebuilt by cve.day 2026-11-25T22:59:06.948Z
