CVE-2025-40081: perf: arm_spe: Prevent overflow in PERF_IDX2OFF()
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).
Security readout for executives and security teams
Plain-English summary
A Linux kernel arithmetic overflow can occur when Arm Statistical Profiling Extension performance tracing uses an AUX buffer of at least 2 GiB. Successful abuse requires local, low-privileged access according to the supplied CVSS assessment. The source description does not establish the exact resulting failure mode, although the supplied rating indicates potentially severe confidentiality, integrity, and availability impact.
Executive priority
Treat this as a high-priority patching issue for multi-user or otherwise untrusted Arm Linux environments exposing performance monitoring. Prioritize internet-facing workloads only if they also permit local code execution or user access; this is not described as remotely exploitable. Confirm vendor-specific affected versions before broad emergency action.
Technical view
In the Arm SPE perf driver, PERF_IDX2OFF() could perform an overflowing calculation because nr_pages was not first widened to unsigned long. Large AUX buffers trigger the vulnerable condition. The kernel fix casts nr_pages before the offset calculation. The supplied summary does not document demonstrated memory corruption, privilege escalation, or another specific outcome.
Likely exposure
Exposure is most likely on Arm Linux systems supporting or using Arm SPE where a local low-privileged user can access performance monitoring and request a large AUX buffer. Systems without Arm SPE or without relevant local perf access are less likely exposed. The summarized version data is ambiguous, so exact affected and fixed package boundaries require vendor confirmation.
Exploitation context
The supplied CVSS vector describes a local, low-complexity attack requiring low privileges and no user interaction. The bundle marks the CVE as absent from KEV and provides no evidence of active exploitation or a public exploit. It also does not show that practical exploitation has been demonstrated beyond triggering the overflow condition.
Researcher notes
The source bundle identifies the overflow threshold and corrective cast but provides little evidence about exploitability or the resulting primitive. Its version presentation includes duplicates and unusual entries, making precise range interpretation unreliable. Researchers should distinguish a reachable arithmetic overflow from demonstrated security impact and use the branch-specific stable commits when evaluating backports.
Mitigation direction
Install a vendor-supported kernel containing the applicable cited stable fix or confirmed backport.
Consult the Linux distributor's advisory for exact affected package and fixed-build boundaries.
Until patched, restrict untrusted local access to performance-monitoring facilities where operationally feasible.
Prioritize Arm systems that expose Arm SPE tracing to non-administrative users.
Validation and detection
Inventory Arm Linux hosts, running kernel builds, and Arm SPE availability.
Compare each kernel package against distributor advisories and documented backported fixes.
Verify whether non-administrative users can access the relevant performance-monitoring interface.
Confirm the installed kernel includes the appropriate stable fix for its maintained branch.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2025-40081 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
0ADP providers
9Source links
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.