0.0
NA
CVE-2026-139302
bpf: Don't take an extension for an iterator program
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.

INFO

Published Date :

Nov. 30, 2026, 2:18 p.m.

Last Modified :

Nov. 30, 2026, 2:18 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-139302 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
Solution
Apply kernel patches to prevent invalid program extensions, ensuring proper context handling.
  • Apply available Linux kernel patches.
  • Review program extension loading logic.
  • Validate attachment point configurations.
  • Ensure BTF IDs are correctly cached.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-139302 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-139302 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-139302 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-139302 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Nov. 30, 2026

    Action Type Old Value New Value
    Added 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.
    Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/139xxx/CVE-2026-139302.json">CVE-2026-139302</a>
    Added Reference https://git.kernel.org/stable/c/061c4649fa49ed80e3f3ac872665230cb6fa898c
    Added Reference https://git.kernel.org/stable/c/1b79f322cbfb59d920b102a18efdd14f17e3d5ad
    Added Reference https://git.kernel.org/stable/c/46a8a2acca26616f8445af133f32d7740332fdc0
    Added Reference https://git.kernel.org/stable/c/7cc639dc45c5d3b69acb2a2fc834e9eec51e0214
    Added Reference https://git.kernel.org/stable/c/afd54a08a29406fb3d8ea8e828bdb5d1e4862088
    Added Reference https://git.kernel.org/stable/c/b741414a94a7196454456ea46e5e08798e98d252
    Added Reference https://git.kernel.org/stable/c/d7a76b9b807349c3057beccd574fcd0aec2c773b
    Added Reference https://git.kernel.org/stable/c/e8b7f9151e465c4ab5e712f84041b0cf3b90425b
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.