CVE-2026-139202

Not scored yetLast modified Nov 30, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Validate stack arg reads against caller state

check_stack_arg_read() bounds a stack argument index with the callee's BTF-derived argument count, then uses the index in the caller's stack_arg_regs[] array. The array's actual logical length is recorded in caller->out_stack_arg_cnt, so the bound and indexed object can diverge.

A crafted BPF_PROG_LOAD can use an argument mismatch to mark a static subprogram's BTF information unreliable. Later calls return from btf_check_subprog_call() before check_outgoing_stack_args(), while check_func_call() continues the static call on -EINVAL. The callee can then read a slot that the caller never allocated or initialized. The earlier commit 4286f5deee14 ("bpf: Validate outgoing stack args when btf_prepare_func_args fails") closed this hole for the first call, but not for later calls after the subprogram has been marked unreliable.

Callbacks have a related problem. The verifier can make incoming stack arguments readable from outgoing slots at the helper call site. However, helpers and kfuncs invoke callbacks through an ABI that passes at most five arguments, so the runtime callback receives no stack arguments. Async callback verification can also reach check_stack_arg_read() without a caller frame.

On x86-64, KASAN reports the direct-call out-of-bounds copy as:

BUG: KASAN: slab-out-of-bounds in check_load_mem+0xb51/0xc60 Read of size 80 at addr ffff8881009af550 by task poc/131 Call Trace: check_stack_arg_read at kernel/bpf/verifier.c:4234 (inlined by) check_load_mem at kernel/bpf/verifier.c:6645 do_check_common at kernel/bpf/verifier.c:19568 bpf_check at kernel/bpf/verifier.c:21318 bpf_prog_load at kernel/bpf/syscall.c:3134

Reject callback subprograms with incoming stack arguments before their state is pushed. For direct calls, retrieve the slot with bpf_get_spilled_stack_arg(), which validates the index against the caller's out_stack_arg_cnt and rejects uninitialized slots before copying the register state.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139203In the Linux kernel, the following vulnerability has been resolved: ALSA: ump: Drain sequencer callbacks before freeing their client seq_uCVE-2026-139204In the Linux kernel, the following vulnerability has been resolved: bpf: Track borrowed iterator results by default An open-coded iteratorCVE-2026-139205In the Linux kernel, the following vulnerability has been resolved: bpf: Propagate btf_add_type() errors in btf_check_all_metas() btf_checCVE-2026-1392067.1In the Linux kernel, the following vulnerability has been resolved: net/sched: etf: initialise the sock_exterr_skb before filling it reporCVE-2026-139207In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: IPsec, Fix out-of-bounds comparison of neighbour keys mlx5eCVE-2026-139208In the Linux kernel, the following vulnerability has been resolved: net: sparx5: fix tx DCB index drift in fdma xmit sparx5_fdma_xmit() adCVE-2026-139209In the Linux kernel, the following vulnerability has been resolved: net: sparx5/lan969x: do not read past skb->len when injecting a frame CVE-2026-139216.5Insufficient validation of untrusted input in DeviceBoundSessionCredentials in Google Chrome prior to 150.0.7871.47 allowed a remote attackeCVE-2026-139210In the Linux kernel, the following vulnerability has been resolved: tcp: reject devmem tx with fastopen and repair tcp_sendmsg_locked() enCVE-2026-139211In the Linux kernel, the following vulnerability has been resolved: sctp: reject forged cookie peer_addr with unknown address family When CVE-2026-139212In the Linux kernel, the following vulnerability has been resolved: regulator: irq: freeze deferred hardware access during suspend The regCVE-2026-139213In the Linux kernel, the following vulnerability has been resolved: ASoC: amd: raven: Fix memory leak in acp3x_dma_close() acp3x_dma_open(
CVE-2026-139202: Unscored | Vulnix