CVE-2025-40081 perf: arm_spe: Prevent overflow in PERF_IDX2OFF()

High 7.8 Published Updated

An integer overflow in the Linux kernel's ARM SPE driver can cause a denial of service when handling large AUX buffer sizes.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-40081?

CVE-2025-40081 is a high-severity vulnerability in Linux, published on 28 Oct 2025. It can only be exploited from the same machine or local network, with no action from the victim.

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

Which versions are affected by CVE-2025-40081?

How do I fix CVE-2025-40081?

Apply the vendor's patch.

Is CVE-2025-40081 being exploited?

There is no known exploitation of CVE-2025-40081 in the wild and no public exploit code.

Sources

Also known as AZL-68912, BELL-CVE-2025-40081, DEBIAN-CVE-2025-40081, GHSA-8pxq-vpq2-2xjv, ROOT-OS-DEBIAN-11-CVE-2025-40081, ROOT-OS-DEBIAN-12-CVE-2025-40081 and 4 more.

Is CVE-2025-40081 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free