data built 2026-10-19T13:16:53Z

Look up another CVE · open CVE-2026-89799 in the interactive tracker

CVE-2026-89799

bpf: Disable preemption in bpf_get_stackid

7.8 EPSS 0.2% AV:L

Published 2026-09-16 (33 days ago) by the Linux kernel CNA. Subsystem kernel/bpf. Debian urgency: not yet assigned.

What to do, per Debian release

Debian's own status for CVE-2026-89799 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source

ReleaseStatus VersionWhat this means
Debian 12bookwormvulnerable6.1.190-1No fix published anywhere yet, neither in Debian nor upstream for the series bookworm tracks. Watch the Debian tracker page for this CVE. Advisories for bookworm have historically landed a median of 23 days after publication.
Debian 13trixiefixedDSA-6528-1 · 2026-09-29 · text6.12.111-1Update the kernel and reboot. DSA-6528-1 shipped the fix on 2026-09-29, in 6.12.111-1. A running kernel keeps the old code until the machine restarts.
Debian 14forkyfixed7.2.6-1Update the kernel and reboot. Fixed in 7.2.6-1. A running kernel keeps the old code until the machine restarts.
Debian unstablesidfixed7.2.6-1Update the kernel and reboot. Fixed in 7.2.6-1. A running kernel keeps the old code until the machine restarts.
Debian 12bookworm · linux-6.12fixedDLA-4817-1 · 2026-10-04 · text6.12.111-1~deb12u1Update the kernel and reboot. DLA-4817-1 shipped the fix on 2026-10-04, in 6.12.111-1~deb12u1. A running kernel keeps the old code until the machine restarts.

The vulnerability

What the bug is

The get_perf_callchain call needs disabled preemption plus we need it disabled as long as we access its returned trace entries buffer. Note the bpf_get_stackid_pe function is executed already with preemption disabled.

Where it lives

The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.

kernel/bpf/stackmap.c

What this is
BPF [TRACING]MAINTAINERS section matched on kernel/bpf/stackmap.c · bpf@vger.kernel.org · Maintained

Check it on the machine

grep -wE 'CONFIG_BPF|CONFIG_BPF_SYSCALL|CONFIG_PERF_EVENTS' /boot/config-$(uname -r)

Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.

Show whether Debian builds this, per release

Debian builds this code. Every release below compiles the affected file into the kernels it ships.

  • bookworm, trixie, forky, sid, bookworm · linux-6.12y
y
built into the kernel image on every flavour - only a patch removes it
Build switches
CONFIG_BPF, CONFIG_BPF_SYSCALL, CONFIG_PERF_EVENTS
Reads as
all on means the file is compiled; any one off means it is not.

From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages

Signals

Published
2026-09-16 (33 days ago)source
CVSS
7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hsource recompute it
Attack vector
local (AV:L)source
EPSS
0.16%, higher than 5.2% of all CVEssource
CISA KEV
not listedthe KEV catalogue
Debian urgency
not yet assignedsource
Subsystem
kernel/bpf

Upstream fixes

The versions the CNA records as introducing and fixing this, and the commit for each. source

IntroducedFixed inCommit
4.66.12.11118c71e4b65ee
4.66.18.51ccf481d73bce
4.67.2.5c4efdc1d4cb3
4.67.315f1bd857466

Debian advisories

AdvisoryDateShipped toDebian
DLA-4817-12026-10-04bookworm 6.12.111-1~deb12u1tracker
DSA-6528-12026-09-29trixie 6.12.111-1tracker

Why the CNA scored it this way

Quoted from the kernel CNA's own scoring file, word for word. A highlighted metric carries the most severe value CVSS v3.1 defines for it, which is what pushes the score up. source

AV:LAttack vector, local
bpf_get_stackid is a tracing BPF helper (kprobe, tracepoint, raw_tp, perf_event, tracing/fentry) reached only after a local bpf(2) PROG_LOAD and attach; kernel CNA guidance classifies BPF as Local, with no network or USB path into this helper.
AC:LAttack complexity, low
The attacker controls both sides of the race: a preemptible raw_tp/tracing program with a small STACK_TRACE map, and a same-CPU get_perf_callchain with larger max_depth that reuses the per-CPU entry after put_callchain_entry(). On PREEMPT kernels (e.g. Android) raw_tp uses migrate_disable only, so pinning and retries make the window reliably hittable.
PR:LPrivileges required, low
Loading the required tracing programs needs CAP_BPF and CAP_PERFMON at bpf_prog_load(), and STACK_TRACE maps need CAP_BPF. Per kernel CNA guidance these are Low because BPF tokens and user namespaces can delegate them to non-init-namespace users, not only real root.
UI:NUser interaction, none
The attacker loads their own BPF program, attaches it to a tracepoint they can fire, and invokes bpf_get_stackid through their own syscalls or pinned threads; no victim mount, file open, or other user action is required.
S:UScope, unchanged
The out-of-bounds write corrupts the stack-map bucket slab inside the same host kernel security authority, enabling local privilege escalation; it does not cross a VM, IOMMU, or other distinct trust boundary.
C:HConfidentiality impact, high
After put_callchain_entry(), a reused per-CPU entry can inflate trace->nr so memcpy/jhash2 and the build-id loop copy kernel instruction pointers past the attacker-sized stack_map_bucket, which is kernel memory corruption that can be turned into an arbitrary read primitive.
I:HIntegrity impact, high
Without a remaining size cap on the reused trace->nr, memcpy into the preallocated stack_map_bucket (sized to a small map value_size) or the bpf_stack_build_id store loop is an attacker-sized kernel heap OOB write, up to PERF_MAX_STACK_DEPTH frames, that can smash adjacent slab and hijack control flow.
A:HAvailability impact, high
The same unbounded heap write past a small stack-map bucket causes a kernel oops or panic even when not fully weaponized, matching CNA guidance that any kernel crash or memory-corrupting OOB write is Availability High.