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

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

CVE-2026-90317

bpf: Invalidate RCU pointers after final spin unlock

7.8 EPSS 0.2% AV:L

Published 2026-09-17 (31 days ago) by the Linux kernel CNA. Subsystem kernel/bpf. Debian urgency: unimportant.

What to do, per Debian release

Debian's own status for CVE-2026-90317 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 12bookwormnot affected6.1.190-1Nothing to do. bookworm never shipped the vulnerable code.
Debian 13trixievulnerable6.12.113-1No fix published anywhere yet, neither in Debian nor upstream for the series trixie tracks. Watch the Debian tracker page for this CVE. Advisories for trixie have historically landed a median of 11 days after publication.
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.

The vulnerability

What the bug is

In a sleepable BPF program, a spin lock can provide the only RCU protection for a kptr. The final bpf_spin_unlock() ends that protection, but the verifier leaves the pointer valid. Another CPU can then free the object before the pointer is used. A capability-limited runtime PoC triggered a task_struct use-after-free in __bpf_get_task_stack(). Record whether the program is in an RCU-protected context before releasing the lock. Invalidate RCU-protected pointers only when the unlock leaves the final such context. This preserves valid pointers in non-sleepable programs and inside an explicit RCU read-side section.

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/verifier.c

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

Check it on the machine

grep -wE 'CONFIG_BPF|CONFIG_BPF_SYSCALL' /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, sidy
y
built into the kernel image on every flavour - only a patch removes it
Build switches
CONFIG_BPF, CONFIG_BPF_SYSCALL
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-17 (31 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.17%, higher than 5.8% of all CVEssource
CISA KEV
not listedthe KEV catalogue
Debian urgency
unimportantsource
Subsystem
kernel/bpf

Upstream fixes

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

IntroducedFixed inCommit
6.66.18.57f81972b235f3
6.67.2.67ae71629357d
6.67.3180c7000712d

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
The attacker-controlled input is a sleepable BPF program loaded via bpf(BPF_PROG_LOAD) whose bytecode reaches process_spin_lock() in kernel/bpf/verifier.c, takes bpf_spin_lock, LDXes a map kptr, then bpf_spin_unlock. That program image arrives through the local bpf() syscall, not a network protocol message.
AC:LAttack complexity, low
The attacker drives both sides: a sleepable fentry.s or BPF_PROG_TYPE_SYSCALL program loads a task kptr under bpf_spin_lock, unlocks, then uses it, while another thread bpf_kptr_xchg's the same slot to NULL so bpf_task_release_dtor/put_task_struct_rcu_user can call_rcu it. After unlock, preempt/IRQs are re-enabled so the grace period can finish; a PoC hit the UAF.
PR:LPrivileges required, low
A sleepable BPF_PROG_TYPE_SYSCALL program is sufficient: bpf_prog_load() requires only bpf_token_capable(CAP_BPF) because is_perfmon_prog_type() is false for SYSCALL, and map_check_btf() needs CAP_BPF for BPF_SPIN_LOCK|BPF_KPTR fields. CAP_BPF is delegable via BPF tokens into a user namespace; the report used a capability-limited PoC, not init-namespace root.
UI:NUser interaction, none
The attacker loads the sleepable program, creates the lock+kptr ARRAY map, stores a task with bpf_task_from_pid/bpf_kptr_xchg, and runs it via bpf(BPF_PROG_TEST_RUN) (bpf_prog_test_run_syscall) or by calling getpgid after attaching fentry.s; no victim mount or file open is required.
S:UScope, unchanged
The use-after-free is of a host kernel task_struct consumed by bpf_task_acquire and __bpf_get_task_stack in the same kernel that accepted the program. That is local privilege escalation inside one kernel authority, not a VM, IOMMU, or guest-to-host crossing.
C:HConfidentiality impact, high
After the final bpf_spin_unlock, process_spin_lock() leaves the map-loaded task kptr as MEM_RCU, so the program can LDX task_struct fields or call bpf_task_acquire (refcount_inc_not_zero on rcu_users) and __bpf_get_task_stack (try_get_task_stack/task_pt_regs) on a call_rcu-freed object. Spraying that slot yields an arbitrary kernel read.
I:HIntegrity impact, high
The same stale MEM_RCU task_struct pointer can be passed to bpf_task_acquire after bpf_task_release_dtor has dropped rcu_users and delayed_put_task_struct has freed it; a sprayed replacement becomes an owned kptr the attacker can feed to other kfuncs or store back with bpf_kptr_xchg, giving a write and control-flow primitive.
A:HAvailability impact, high
Using the dangling task pointer in __bpf_get_task_stack (try_get_task_stack/task_pt_regs) or bpf_task_acquire after put_task_struct_rcu_user's call_rcu has run oopses or panics the kernel even without a full exploit.