CVE-2026-139302

Not scored yetLast modified Nov 30, 2026

Description

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

bpf: Don't take an extension for an iterator program

An extension inherits the expected_attach_type of the program it extends. If that is BPF_TRACE_ITER, check_attach_btf_id() hands the extension to bpf_iter_prog_supported(), which goes by the name of the attach function. For an extension that is the name of the subprogram it replaces, so the load fails with -EINVAL, unless that subprogram is called like the function of a target, bpf_iter_bpf_map_elem for example.

Then the extension gets the context of that target. If the subprogram has as many arguments, it can use the key and the value as buffers, but how far it reaches is noted in the extension, where the test of the iterator link does not look: it reads and writes behind the elements of the map. And the id of the subprogram in the BTF of the program is cached as the id of the target, so that programs of that target which are loaded already cannot be attached.

Refuse all extensions here.

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-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_bounCVE-2026-139308In the Linux kernel, the following vulnerability has been resolved: bpf: Fix stale offload->prog pointer after realloc bpf_prog_realloc() CVE-2026-139309In the Linux kernel, the following vulnerability has been resolved: bpf: Bound the nesting that the BTF show code follows btf_struct_show(CVE-2026-139316.5Inappropriate implementation in Media in Google Chrome on Windows prior to 150.0.7871.47 allowed a remote attacker who had compromised the rCVE-2026-139310In the Linux kernel, the following vulnerability has been resolved: bpf: Hold the socket in the sk_storage map iterator The iterator over CVE-2026-139311In the Linux kernel, the following vulnerability has been resolved: bpf: Link the first element after its storage is published bpf_local_sCVE-2026-139312In the Linux kernel, the following vulnerability has been resolved: bpf: Fix NULL deref in the sk_storage map iterator bpf_sk_storage_map_CVE-2026-139313In the Linux kernel, the following vulnerability has been resolved: bpf: Clear sk_refcnt of a clone before its storage is linked sk_clone(
CVE-2026-139302: Unscored | Vulnix