Cloudanix VulnDB

CVE-2025-68378

None

CVSS

—

EPSS

0.2%

Published

Dec 24, 2025

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in the Linux kernel's stack trace handling can let specially crafted data overwrite memory it should not, which may crash the system or allow an attacker who already has a foothold to gain more control.

Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
Moderate
Impact
Privilege Gain
Component
OS kernel
Class
Buffer Overflow
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Out-of-bounds write in the BPF stackmap bucket data array inside __bpf_get_stackid() when a perf trace contains more stack entries than the map bucket can store.

Why it matters to the business

Systems running affected Linux kernels may experience kernel memory corruption, leading to crashes, denial of service, or potential local privilege escalation; organizations using BPF-based observability or security tools face elevated risk until kernels are updated, with Chainguard opencost-fips users able to adopt the 1.114.0-r4 package immediately.

How an attack unfolds

An attacker with local access crafts or triggers a perf trace event whose stack trace exceeds the stackmap bucket capacity, causing __bpf_get_stackid() to copy beyond the allocated bucket data array and corrupt adjacent kernel memory.

How to fix it

Upgrade the Linux kernel to a version containing commit d1f424a77b6bd27b361737ed73df49a0158f1590 or later; Chainguard opencost-fips users should update to version 1.114.0-r4.

How to confirm the fix worked

Confirm the running kernel contains commit d1f424a77b6bd27b361737ed73df49a0158f1590 or verify the opencost-fips package reports version 1.114.0-r4; re-run BPF stackmap tests that previously triggered KASAN reports to ensure they no longer produce slab-out-of-bounds writes.

Typical attack path

  1. Obtain local code execution on an affected Linux system
  2. Trigger or supply a perf trace containing more stack entries than the target stackmap bucket size
  3. Invoke __bpf_get_stackid() to copy the oversized trace
  4. Achieve out-of-bounds write into the bucket data array
  5. Leverage resulting memory corruption for denial of service or further exploitation

How to detect it

Search kernel logs for KASAN slab-out-of-bounds write reports originating from __bpf_get_stackid(); inspect audit logs for unusual perf_event_open or BPF map creation activity preceding crashes.

What your security team should do

  • Prioritize kernel updates on all systems that compile or load custom BPF programs
  • Apply the Chainguard 1.114.0-r4 package where opencost-fips is in use
  • Monitor for new upstream stable releases that include the referenced commit
  • Restrict unprivileged BPF program loading until patches are deployed

The record

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 packages

Ecosystem Package Introduced Fixed
Linux Kernel 5.18.0 6.12.63
openSUSE:Leap 16.0 dtb-aarch64 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-64kb 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-azure 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-default 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-default-base 0 6.12.0-160000.9.1.160000.2.6
openSUSE:Leap 16.0 kernel-docs 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-kvmsmall 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-obs-build 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-obs-qa 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-rt 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-source 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-syms 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-zfcpdump 0 6.12.0-160000.9.1
openSUSE:Tumbleweed kernel-source 0 6.18.5-1.1
openSUSE:Tumbleweed kernel-source-longterm 0 6.18.16-1.1

Related vulnerabilities