Skip to main content

Linux Kernel CVE-2025-40081

HIGH
2025-10-28 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local access to arm64 SPE host
  2. Delivery
    Open SPE perf hardware-trace event
  3. Exploit
    Request AUX buffer >= 2 GiB
  4. Execution
    Overflow PERF_IDX2OFF offset calculation
  5. Persist
    Out-of-bounds kernel memory access
  6. Impact
    Corruption toward info leak or privilege escalation

Vulnerability Assessment

Exploitation Conditions

Exploitation requires: (1) arm64 hardware that implements the Arm Statistical Profiling Extension (SPE) with the arm_spe perf driver present and active; (2) local access with permission to open SPE/perf hardware-trace events (gated by kernel.perf_event_paranoid and CAP_PERFMON); and (3) allocation of an AUX profiling buffer of at least 2 GiB (>= 524288 pages), which is the specific size threshold that makes the un-widened nr_pages arithmetic overflow. Limiting factors: the bug does not affect non-arm64 systems or arm64 systems without SPE, cannot be reached remotely (AV:L), needs the non-default large-buffer configuration, and depends on perf access policy - on hosts with perf_event_paranoid restricting unprivileged profiling, only privileged/CAP_PERFMON accounts can trigger it.

Impact

Signals are consistent in pointing to a real-but-narrow, locally-scoped bug rather than a mass-exploitation priority. The CVSS 3.1 base score of 7.8 (AV:L/AC:L/PR:L/UI:N, C:H/I:H/A:H) reflects a local attacker with some privilege achieving high impact, which fits kernel memory corruption. However EPSS is only 0.20% (10th percentile), there is no CISA KEV listing and no POC in the provided data, indicating no observed or expected widespread exploitation. The scored AC:L arguably understates real difficulty: exploitation requires SPE-capable Arm hardware and the attacker must arrange an AUX buffer of at least 2 GiB, which is a non-default, resource-heavy condition - this analysis assesses AC:H accordingly. No SSVC decision, no automatable rating, and no CWE were supplied, so exploitability characterization relies on the description and CVSS vector; the practical impact (info leak vs. full corruption/privesc) is not detailed in the source and should be verified against the commit diffs.

Exploit ScenarioDerived

On an arm64 server with SPE-capable CPUs where unprivileged or low-privileged users may open perf hardware-trace events, a local attacker opens an SPE perf event and requests an AUX ring buffer of 2 GiB or more, forcing PERF_IDX2OFF() to overflow and compute an out-of-bounds offset into kernel memory. The resulting corruption could be leveraged toward information disclosure or privilege escalation. No public POC is identified in the provided data, and the large-buffer plus SPE-hardware prerequisites make this a targeted rather than opportunistic scenario.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 30, 2026

Local privilege escalation potential in the Linux kernel's ARM Statistical Profiling Extension (arm_spe) perf driver stems from an integer overflow in the PERF_IDX2OFF() calculation when an AUX ring buffer of 2 GiB or larger is used. On affected arm64 systems, a local user with permission to open SPE perf events can trigger the overflow because nr_pages was not cast to unsigned long, producing an incorrect buffer offset and out-of-bounds kernel memory access. This is a resolved kernel bug fixed via stable-tree commits; there is no public exploit identified at time of analysis and EPSS probability is low (0.20%, 10th percentile).

RemediationAI

Upstream fix available (commit/stable backports); the change casts nr_pages to unsigned long in PERF_IDX2OFF(). Apply the vendor kernel update that incorporates these stable commits (see the git.kernel.org/stable references such as https://git.kernel.org/stable/c/379cae2cb982f571cda9493ac573ab71125fd299 and https://git.kernel.org/stable/c/e516cfd19b0f4c774a57b17fb43a7f41991f0735), or upgrade to your distribution's patched kernel package once released. As a compensating control until patched, restrict access to perf/SPE events by setting kernel.perf_event_paranoid to 2 or higher (or 3/4 where supported) to prevent unprivileged users from opening hardware trace events, and/or require CAP_PERFMON so only trusted accounts can profile - the trade-off is that legitimate performance-profiling and observability tooling on affected arm64 hosts will lose access. Because the trigger requires an AUX buffer >= 2 GiB, tightening RLIMIT/locked-memory limits for untrusted users also raises the bar, at the cost of constraining other memory-intensive workloads.

Affected ProductsAI

The affected product is the Linux kernel, specifically the arm64 Arm SPE perf driver (drivers/perf / arm_spe_pmu). Exact affected version ranges are not enumerated in the input; the eight referenced git.kernel.org/stable commits (e.g., 379cae2cb982f571cda9493ac573ab71125fd299 and e516cfd19b0f4c774a57b17fb43a7f41991f0735) indicate the fix was backported across multiple stable branches, implying multiple kernel series were vulnerable before those backports. No CPE strings and no distribution advisories were provided, so precise vulnerable-version boundaries and per-distro fixed builds must be confirmed against each vendor kernel. The authoritative references are the kernel.org stable commit links listed in the input.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw lives in the Arm SPE (Statistical Profiling Extension) hardware-tracing backend of the perf subsystem on arm64. Perf's AUX buffer mechanism captures large volumes of trace data into a ring buffer whose size is expressed in pages; the PERF_IDX2OFF() helper converts a running index into a byte offset within that buffer. When nr_pages (the buffer page count) participated in the arithmetic as a narrower type, an AUX buffer of >= 2 GiB (>= 524288 4KiB pages) overflowed the intermediate value, yielding a wrong offset. The fix casts nr_pages to unsigned long so the multiplication is performed in 64-bit width. The root cause class is an integer overflow / wraparound (CWE-190) leading to an out-of-bounds access (CWE-787/125); the provided CWE field is N/A, so this classification is inferred from the description ('Prevent overflow', tag 'Buffer Overflow').

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

Local perf access gives PR:L; requiring SPE hardware plus a >= 2 GiB AUX buffer is a non-default, resource-heavy condition (AC:H); kernel memory corruption supports high C/I/A.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Red Hat 4.4 MEDIUM

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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

Executive ViewAI

Why It Matters

CVE-2025-40081 affects Linux arm64 systems with ARM Statistical Profiling Extension (SPE) perf drivers, allowing local users with perf permissions to escalate privileges through integer overflow in buffer offset calculations. While no public exploit has been identified at time of analysis, successful attacks could grant root access. This impacts organizations running Linux on ARM processors (servers, hypervisors, embedded systems) where users have performance monitoring access.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict perf_event_open syscall access via AppArmor, SELinux, or seccomp policies to administrative users only; disable ARM SPE monitoring via kernel boot parameters (e.g., arm_spe_pmu.pe_access_override=1) on systems where performance profiling is not operationally required; monitor vendor security advisories for formal patch releases derived from stable-tree commits; isolate systems with public user access if kernel updates cannot be deployed within 30 days.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Ubiquitous
Linux kernel runs everywhere, though vulnerable path is arm64 SPE-only
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/sl-micro/6.0/baremetal-os-container:latest Container suse/sl-micro/6.1/baremetal-os-container:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.95 Container suse/sl-micro/6.1/base-os-container:2.2.1-5.80 Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.115 Container suse/sl-micro/6.1/kvm-os-container:2.2.1-5.83 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.146 Container suse/sl-micro/6.1/rt-os-container:2.2.1-5.91 Affected
Image SL-Micro-Azure Image SL-Micro-BYOS-Azure Image SL-Micro-BYOS-EC2 Image SL-Micro-BYOS-GCE Image SL-Micro-EC2 Image SLE-Micro Image SLE-Micro-Azure Image SLE-Micro-BYOS Image SLE-Micro-BYOS-Azure Image SLE-Micro-BYOS-EC2 Image SLE-Micro-BYOS-GCE Image SLE-Micro-EC2 Image SLE-Micro-GCE Image SUSE-Multi-Linux-Manager-Proxy-BYOS-Azure Image SUSE-Multi-Linux-Manager-Proxy-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Proxy-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-Azure-llc Image SUSE-Multi-Linux-Manager-Server-Azure-ltd Image SUSE-Multi-Linux-Manager-Server-BYOS-Azure Image SUSE-Multi-Linux-Manager-Server-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Server-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-EC2-llc Image SUSE-Multi-Linux-Manager-Server-EC2-ltd Affected

References

Advisories & patches
ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0278/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0281/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0293/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0315/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0316/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20012/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20015/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20021/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20477/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20479/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20498/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20520/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20562/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20772/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20794/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20819/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20845/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20872/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20876/ REF https://git.kernel.org/stable/c/1a19ba8e1f4ff24ece8ca69b79df8442c431db90 REF https://git.kernel.org/stable/c/379cae2cb982f571cda9493ac573ab71125fd299 REF https://git.kernel.org/stable/c/5d01f2b81568289443d22f1e13a363f829de6343 REF https://git.kernel.org/stable/c/656e9a5d69acdd1b20462f4a33378b90ddcb9626 REF https://git.kernel.org/stable/c/7500384d3c9587593d75ded3b006835e7aa73ef8 REF https://git.kernel.org/stable/c/9c045d4501f7f70724a3bbb561f4f22d292bbfe6 REF https://git.kernel.org/stable/c/a29fea30dd93da16652930162b177941abd8c75e REF https://git.kernel.org/stable/c/e516cfd19b0f4c774a57b17fb43a7f41991f0735

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy