Skip to main content
EPSS 0.1%top 96%

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)

0
Medium
Published: 10/28/2025 (10/28/2025, 12:15:00 UTC)
Source: GCVE Database
Product: linux-azure

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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

Affected versions
<5.15.0-1100.107~20.04.2<5.15.0-1110.119~20.04.1<5.15.0-1100.109~20.04.1<5.15.0-170.180~20.04.3<5.15.0-1094.97~20.04.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 16:22:52 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses