CVE-2025-68378 bpf: Fix stackmap overflow check in __bpf_get_stackid()

Not scored Published Updated

A local attacker with low privileges can trigger a slab-out-of-bounds write in the Linux kernel BPF subsystem, potentially leading to code execution or privilege escalation.

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-68378?

CVE-2025-68378 is a memory corruption vulnerability in Linux, published on 24 Dec 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:

bpf: Fix stackmap overflow check in __bpf_get_stackid()

Syzkaller reported a KASAN slab-out-of-bounds write in __bpf_get_stackid() when copying stack trace data. The issue occurs when the perf trace contains more stack entries than the stack map bucket can hold, leading to an out-of-bounds write in the bucket's data array.

Which versions are affected by CVE-2025-68378?

How do I fix CVE-2025-68378?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-68378 being exploited?

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

Sources

Also known as AZL-73150, BELL-CVE-2025-68378, DEBIAN-CVE-2025-68378, GHSA-v87c-3vwm-rvcr, ROOT-OS-DEBIAN-11-CVE-2025-68378, ROOT-OS-DEBIAN-12-CVE-2025-68378 and 3 more.

Is CVE-2025-68378 in your software?

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

Check your SBOMs for free