CVE-2026-139302

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

No CVSS score yet EPSS 0.21%

Published 30 Nov 2026 Updated 30 Nov 2026 CNA: Linux

Check your servers for CVE-2026-139302

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139302 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.0% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 15d83c4d7cef5c067a8b075ce59e97df4f60706e, before 46a8a2acca26616f8445af133f32d7740332fdc0
affected from 15d83c4d7cef5c067a8b075ce59e97df4f60706e, before afd54a08a29406fb3d8ea8e828bdb5d1e4862088
affected from 15d83c4d7cef5c067a8b075ce59e97df4f60706e, before e8b7f9151e465c4ab5e712f84041b0cf3b90425b
affected from 15d83c4d7cef5c067a8b075ce59e97df4f60706e, before d7a76b9b807349c3057beccd574fcd0aec2c773b
affected from 15d83c4d7cef5c067a8b075ce59e97df4f60706e, before 061c4649fa49ed80e3f3ac872665230cb6fa898c
affected from 15d83c4d7cef5c067a8b075ce59e97df4f60706e, before 1b79f322cbfb59d920b102a18efdd14f17e3d5ad
affected from 15d83c4d7cef5c067a8b075ce59e97df4f60706e, before b741414a94a7196454456ea46e5e08798e98d252
affected from 15d83c4d7cef5c067a8b075ce59e97df4f60706e, before 7cc639dc45c5d3b69acb2a2fc834e9eec51e0214
Other versions: unaffected
Linux
affected 5.8
unaffected before 5.8
unaffected from 5.10.275 up to and including 5.10.*
unaffected from 5.15.226 up to and including 5.15.*
unaffected from 6.1.193 up to and including 6.1.*
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.119 up to and including 6.12.*
unaffected from 6.18.65 up to and including 6.18.*
unaffected from 7.3.6 up to and including 7.3.*
unaffected 7.4-rc1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139302 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139302

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-139302
trivy image --scanners vuln IMAGE | grep CVE-2026-139302

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-139302 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.