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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2025-12-24T10:33:06.859Z
- Modified: 2026-10-30T13:18:22.017Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from ee2a098851bfbe8bcdd964c0121f4246f00ff41e before 03fe4c886667b3a09b9d6afc03bbc68afb35c82b; from ee2a098851bfbe8bcdd964c0121f4246f00ff41e before d6028caa0ee39dccd005468adfa3223b92bd3ad3; from ee2a098851bfbe8bcdd964c0121f4246f00ff41e before d1f424a77b6bd27b361737ed73df49a0158f1590; from ee2a098851bfbe8bcdd964c0121f4246f00ff41e before 2a008f6de163279deffd488c1deab081bce5667c; from ee2a098851bfbe8bcdd964c0121f4246f00ff41e before 4669a8db976c8cbd5427fe9945f12c5fa5168ff3; from ee2a098851bfbe8bcdd964c0121f4246f00ff41e before 23f852daa4bab4d579110e034e4d513f7d490846; 90805175a206f784b6a77f16f07b07f6803e286b; 398ac11f4425d1e52aaf0d05d4fc90524e1a5b5e; e750f78c4ed7cefbcefb9769b3b9e08033db39da; 6c4f243b58f5362e983386488b2d563764c567af; from 5.10.110 before 5.11; from 5.15.33 before 5.16; and 3 more (not affected: before 5.18; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.63 up to 6.12.*; from 6.17.13 up to 6.17.*; from 6.18.2 up to 6.18.*; from 6.19 up to *)

## References

- <https://git.kernel.org/stable/c/03fe4c886667b3a09b9d6afc03bbc68afb35c82b>
- <https://git.kernel.org/stable/c/d6028caa0ee39dccd005468adfa3223b92bd3ad3>
- <https://git.kernel.org/stable/c/d1f424a77b6bd27b361737ed73df49a0158f1590>
- <https://git.kernel.org/stable/c/2a008f6de163279deffd488c1deab081bce5667c>
- <https://git.kernel.org/stable/c/4669a8db976c8cbd5427fe9945f12c5fa5168ff3>
- <https://git.kernel.org/stable/c/23f852daa4bab4d579110e034e4d513f7d490846>

## Sources

- CVE List: [CVE-2025-68378](https://www.cve.org/CVERecord?id=CVE-2025-68378), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2025-68378](https://nvd.nist.gov/vuln/detail/CVE-2025-68378), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2025-68378 · Whole record: https://cve.day/CVE-2025-68378.json · Rebuilt by cve.day 2026-11-25T22:59:09.875Z
