Linux azure: In the Linux kernel, the following vulnerability has been resolved: perf: arm_spe: Prevent overflow in PERF_IDX2OFF() Cast nr_pages to unsigned long… (CVE-2025-40081)
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).
AI Analysis
Technical Summary
The Linux kernel contained a vulnerability in the perf subsystem specific to ARM SPE where the PERF_IDX2OFF() macro did not correctly cast the nr_pages variable to unsigned long. This caused an integer overflow when processing large AUX buffer sizes (>= 2 GiB). The overflow could lead to memory corruption or other critical impacts affecting confidentiality, integrity, and availability. The issue has been resolved by properly casting nr_pages to unsigned long to prevent overflow.
Potential Impact
The vulnerability allows an integer overflow in the perf subsystem when handling large AUX buffers, potentially leading to memory corruption. This can result in a high impact on system confidentiality, integrity, and availability as indicated by the CVSS vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
Mitigation Recommendations
The vulnerability has been resolved by a code change that casts nr_pages to unsigned long to prevent overflow. Although no explicit patch link is provided, the issue is marked as resolved. Users should update their Linux kernel to a version that includes this fix once available. Patch status is not yet confirmed in the provided data — check the official Linux kernel advisories or vendor sources for current remediation guidance.
Linux azure: In the Linux kernel, the following vulnerability has been resolved: perf: arm_spe: Prevent overflow in PERF_IDX2OFF() Cast nr_pages to unsigned long… (CVE-2025-40081)
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).
CVSS v3.1
Score 7.8high
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel contained a vulnerability in the perf subsystem specific to ARM SPE where the PERF_IDX2OFF() macro did not correctly cast the nr_pages variable to unsigned long. This caused an integer overflow when processing large AUX buffer sizes (>= 2 GiB). The overflow could lead to memory corruption or other critical impacts affecting confidentiality, integrity, and availability. The issue has been resolved by properly casting nr_pages to unsigned long to prevent overflow.
Potential Impact
The vulnerability allows an integer overflow in the perf subsystem when handling large AUX buffers, potentially leading to memory corruption. This can result in a high impact on system confidentiality, integrity, and availability as indicated by the CVSS vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
Mitigation Recommendations
The vulnerability has been resolved by a code change that casts nr_pages to unsigned long to prevent overflow. Although no explicit patch link is provided, the issue is marked as resolved. Users should update their Linux kernel to a version that includes this fix once available. Patch status is not yet confirmed in the provided data — check the official Linux kernel advisories or vendor sources for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-8pxq-vpq2-2xjv
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-40081"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6b72d79c2644c7f847b1e1
Added to database: 07/30/2026, 15:50:47 UTC
Last enriched: 07/30/2026, 16:22:52 UTC
Last updated: 09/10/2026, 19:36:50 UTC
Views: 24
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.