What’s Vulnerable › Vulnerabilities

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

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.

Affected products

How to fix

Upgrade to a fixed version: Linux 5.11, 5.16, 5.17, 5.18. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-68378 or the next vulnerability affects your stack