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

Summary

CVECVE-2026-139302
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:18:54 UTC
Updated2026-11-30 14:18:54 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 15d83c4d7cef5c067a8b075ce59e97df4f60706e 46a8a2acca26616f8445af133f32d7740332fdc0 git Not specified
CNA Linux Linux affected 15d83c4d7cef5c067a8b075ce59e97df4f60706e afd54a08a29406fb3d8ea8e828bdb5d1e4862088 git Not specified
CNA Linux Linux affected 15d83c4d7cef5c067a8b075ce59e97df4f60706e e8b7f9151e465c4ab5e712f84041b0cf3b90425b git Not specified
CNA Linux Linux affected 15d83c4d7cef5c067a8b075ce59e97df4f60706e d7a76b9b807349c3057beccd574fcd0aec2c773b git Not specified
CNA Linux Linux affected 15d83c4d7cef5c067a8b075ce59e97df4f60706e 061c4649fa49ed80e3f3ac872665230cb6fa898c git Not specified
CNA Linux Linux affected 15d83c4d7cef5c067a8b075ce59e97df4f60706e 1b79f322cbfb59d920b102a18efdd14f17e3d5ad git Not specified
CNA Linux Linux affected 15d83c4d7cef5c067a8b075ce59e97df4f60706e b741414a94a7196454456ea46e5e08798e98d252 git Not specified
CNA Linux Linux affected 15d83c4d7cef5c067a8b075ce59e97df4f60706e 7cc639dc45c5d3b69acb2a2fc834e9eec51e0214 git Not specified
CNA Linux Linux affected 5.8 Not specified
CNA Linux Linux unaffected 5.8 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.119 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.65 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.6 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/061c4649fa49ed80e3f3ac872665230cb6fa898c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d7a76b9b807349c3057beccd574fcd0aec2c773b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/1b79f322cbfb59d920b102a18efdd14f17e3d5ad 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/afd54a08a29406fb3d8ea8e828bdb5d1e4862088 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b741414a94a7196454456ea46e5e08798e98d252 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7cc639dc45c5d3b69acb2a2fc834e9eec51e0214 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/46a8a2acca26616f8445af133f32d7740332fdc0 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e8b7f9151e465c4ab5e712f84041b0cf3b90425b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report