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
Share

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
qualitative

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

Lifecycle Timeline

2
Analysis Generated
Jul 30, 2026 - 07:45 vuln.today
CVE Published
Oct 28, 2025 - 12:15 cve.org
HIGH 7.8

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

AnalysisAI

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

Technical ContextAI

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

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.

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.

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

Share

CVE-2025-40081 vulnerability details – vuln.today

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