CVE-2026-139297

Not scored yetLast modified Nov 30, 2026

Description

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

bpf: Don't let an extension reach further into the context than its target

How large the context of a raw tracepoint, tracepoint or syscall program is depends on what the program is attached to, or is run with. bpf_probe_register(), perf_event_set_bpf_prog() and the test runs compare that with max_ctx_offset of the program.

An extension of the program, or of one of its global functions, gets the same context. How far it reaches is noted in its own max_ctx_offset, which nobody looks at. On a tracepoint with one argument it reads the stack behind the arguments, in a test run the memory behind the context, or from NULL if there is none:

BUG: KASAN: stack-out-of-bounds in bpf_prog_954b5d2051843629_ts28_ext_far+0x7e/0x113 Read of size 8 at addr ffffc90000def7b8 by task ts28/104

BUG: KASAN: slab-out-of-bounds in bpf_prog_954b5d2051843629_ts28_ext_far+0x7e/0x113 Read of size 8 at addr ffff88810712c3e8 by task ts28/104

Refuse to attach an extension that reaches further than the program which it extends. A program that leaves the context to its extensions has to touch as much of it as they do.

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-139298In the Linux kernel, the following vulnerability has been resolved: bpf: Don't take a program with a target program for an iterator bpf_itCVE-2026-139299In the Linux kernel, the following vulnerability has been resolved: bpf: Free what map_free() unlinks for sleepable readers bpf_local_storCVE-2026-13934.3The Add Google Social Profiles to Knowledge Graph Box plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up toCVE-2026-139306.5Insufficient policy enforcement in Actor in Google Chrome prior to 150.0.7871.47 allowed a remote attacker to bypass navigation restrictionsCVE-2026-139300In the Linux kernel, the following vulnerability has been resolved: bpf: Don't take an extension for a writable raw tracepoint program bpfCVE-2026-139301In the Linux kernel, the following vulnerability has been resolved: bpf: Assume no bounds for a writable tp with tail calls A writable rawCVE-2026-139302In the Linux kernel, the following vulnerability has been resolved: bpf: Don't take an extension for an iterator program An extension inheCVE-2026-139303In the Linux kernel, the following vulnerability has been resolved: bpf: Assume no bounds for buffers behind a tail call The bpf_map_elem,CVE-2026-139304In the Linux kernel, the following vulnerability has been resolved: bpf: Check the maps that sleepable callbacks use Sleepable programs caCVE-2026-139305In the Linux kernel, the following vulnerability has been resolved: bpf: Count sleepable callbacks as sleepable map users map->sleepable_rCVE-2026-139306In the Linux kernel, the following vulnerability has been resolved: bpf: Keep a program until its bpf_wq callback has ended bpf_wq_work() CVE-2026-139307In the Linux kernel, the following vulnerability has been resolved: bpf: Don't bind a program to a netdev that goes away bpf_prog_dev_boun
CVE-2026-139297: Unscored | Vulnix