CVE-2026-139302
publishedbpf: Don't take an extension for an iterator program
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux15d83c4d7cef5c067a8b075ce59e97df4f60706e to < 46a8a2acca26616f8445af133f32d7740332fdc0 · 15d83c4d7cef5c067a8b075ce59e97df4f60706e to < afd54a08a29406fb3d8ea8e828bdb5d1e4862088 · 15d83c4d7cef5c067a8b075ce59e97df4f60706e to < e8b7f9151e465c4ab5e712f84041b0cf3b90425b · 15d83c4d7cef5c067a8b075ce59e97df4f60706e to < d7a76b9b807349c3057beccd574fcd0aec2c773b · 15d83c4d7cef5c067a8b075ce59e97df4f60706e to < 061c4649fa49ed80e3f3ac872665230cb6fa898c · 15d83c4d7cef5c067a8b075ce59e97df4f60706e to < 1b79f322cbfb59d920b102a18efdd14f17e3d5ad · 15d83c4d7cef5c067a8b075ce59e97df4f60706e to < b741414a94a7196454456ea46e5e08798e98d252 · 15d83c4d7cef5c067a8b075ce59e97df4f60706e to < 7cc639dc45c5d3b69acb2a2fc834e9eec51e0214 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.8 (affected) · 0 to < 5.8 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 15d83c4d7cef5c067a8b075ce59e97df4f60706e to < 46a8a2acca26616f8445af133f32d7740332fdc0 (affected · git)15d83c4d7cef5c067a8b075ce59e97df4f60706e to < afd54a08a29406fb3d8ea8e828bdb5d1e4862088 (affected · git)15d83c4d7cef5c067a8b075ce59e97df4f60706e to < e8b7f9151e465c4ab5e712f84041b0cf3b90425b (affected · git)15d83c4d7cef5c067a8b075ce59e97df4f60706e to < d7a76b9b807349c3057beccd574fcd0aec2c773b (affected · git)15d83c4d7cef5c067a8b075ce59e97df4f60706e to < 061c4649fa49ed80e3f3ac872665230cb6fa898c (affected · git)15d83c4d7cef5c067a8b075ce59e97df4f60706e to < 1b79f322cbfb59d920b102a18efdd14f17e3d5ad (affected · git)15d83c4d7cef5c067a8b075ce59e97df4f60706e to < b741414a94a7196454456ea46e5e08798e98d252 (affected · git)15d83c4d7cef5c067a8b075ce59e97df4f60706e to < 7cc639dc45c5d3b69acb2a2fc834e9eec51e0214 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.8 (affected)0 to < 5.8 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/061c4649fa49ed80e3f3ac872665230cb6fa898c
- https://git.kernel.org/stable/c/1b79f322cbfb59d920b102a18efdd14f17e3d5ad
- https://git.kernel.org/stable/c/46a8a2acca26616f8445af133f32d7740332fdc0
- https://git.kernel.org/stable/c/7cc639dc45c5d3b69acb2a2fc834e9eec51e0214
- https://git.kernel.org/stable/c/afd54a08a29406fb3d8ea8e828bdb5d1e4862088
- https://git.kernel.org/stable/c/b741414a94a7196454456ea46e5e08798e98d252
- https://git.kernel.org/stable/c/d7a76b9b807349c3057beccd574fcd0aec2c773b
- https://git.kernel.org/stable/c/e8b7f9151e465c4ab5e712f84041b0cf3b90425b
Provider assertions
1Linux · cna
bpf: Don't take an extension for an iterator program
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9d99e635c09c28f48b919a02059ce060826c5de3b8a42edf2c439a59f3d68470
- Ingested
- 30 Nov 2026, 13:42:23 UTC
- Source record
- Official CVE record