{"api_version":"1","generated_at":"2026-11-30T18:46:13+00:00","cve":"CVE-2026-139302","urls":{"html":"https://cve.report/CVE-2026-139302","api":"https://cve.report/api/cve/CVE-2026-139302.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139302","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139302"},"summary":{"title":"bpf: Don't take an extension for an iterator program","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't take an extension for an iterator program\n\nAn extension inherits the expected_attach_type of the program it extends.\nIf that is BPF_TRACE_ITER, check_attach_btf_id() hands the extension to\nbpf_iter_prog_supported(), which goes by the name of the attach function.\nFor an extension that is the name of the subprogram it replaces, so the\nload fails with -EINVAL, unless that subprogram is called like the function\nof a target, bpf_iter_bpf_map_elem for example.\n\nThen the extension gets the context of that target.  If the subprogram\nhas as many arguments, it can use the key and the value as buffers, but\nhow far it reaches is noted in the extension, where the test of the\niterator link does not look: it reads and writes behind the elements of\nthe map.  And the id of the subprogram in the BTF of the program is cached\nas the id of the target, so that programs of that target which are loaded\nalready cannot be attached.\n\nRefuse all extensions here.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:54","updated_at":"2026-11-30 14:18:54"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/061c4649fa49ed80e3f3ac872665230cb6fa898c","name":"https://git.kernel.org/stable/c/061c4649fa49ed80e3f3ac872665230cb6fa898c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d7a76b9b807349c3057beccd574fcd0aec2c773b","name":"https://git.kernel.org/stable/c/d7a76b9b807349c3057beccd574fcd0aec2c773b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1b79f322cbfb59d920b102a18efdd14f17e3d5ad","name":"https://git.kernel.org/stable/c/1b79f322cbfb59d920b102a18efdd14f17e3d5ad","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/afd54a08a29406fb3d8ea8e828bdb5d1e4862088","name":"https://git.kernel.org/stable/c/afd54a08a29406fb3d8ea8e828bdb5d1e4862088","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b741414a94a7196454456ea46e5e08798e98d252","name":"https://git.kernel.org/stable/c/b741414a94a7196454456ea46e5e08798e98d252","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7cc639dc45c5d3b69acb2a2fc834e9eec51e0214","name":"https://git.kernel.org/stable/c/7cc639dc45c5d3b69acb2a2fc834e9eec51e0214","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/46a8a2acca26616f8445af133f32d7740332fdc0","name":"https://git.kernel.org/stable/c/46a8a2acca26616f8445af133f32d7740332fdc0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e8b7f9151e465c4ab5e712f84041b0cf3b90425b","name":"https://git.kernel.org/stable/c/e8b7f9151e465c4ab5e712f84041b0cf3b90425b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139302","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139302","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d83c4d7cef5c067a8b075ce59e97df4f60706e 46a8a2acca26616f8445af133f32d7740332fdc0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d83c4d7cef5c067a8b075ce59e97df4f60706e afd54a08a29406fb3d8ea8e828bdb5d1e4862088 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d83c4d7cef5c067a8b075ce59e97df4f60706e e8b7f9151e465c4ab5e712f84041b0cf3b90425b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d83c4d7cef5c067a8b075ce59e97df4f60706e d7a76b9b807349c3057beccd574fcd0aec2c773b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d83c4d7cef5c067a8b075ce59e97df4f60706e 061c4649fa49ed80e3f3ac872665230cb6fa898c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d83c4d7cef5c067a8b075ce59e97df4f60706e 1b79f322cbfb59d920b102a18efdd14f17e3d5ad git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d83c4d7cef5c067a8b075ce59e97df4f60706e b741414a94a7196454456ea46e5e08798e98d252 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d83c4d7cef5c067a8b075ce59e97df4f60706e 7cc639dc45c5d3b69acb2a2fc834e9eec51e0214 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.8","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.8 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["kernel/bpf/bpf_iter.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"46a8a2acca26616f8445af133f32d7740332fdc0","status":"affected","version":"15d83c4d7cef5c067a8b075ce59e97df4f60706e","versionType":"git"},{"lessThan":"afd54a08a29406fb3d8ea8e828bdb5d1e4862088","status":"affected","version":"15d83c4d7cef5c067a8b075ce59e97df4f60706e","versionType":"git"},{"lessThan":"e8b7f9151e465c4ab5e712f84041b0cf3b90425b","status":"affected","version":"15d83c4d7cef5c067a8b075ce59e97df4f60706e","versionType":"git"},{"lessThan":"d7a76b9b807349c3057beccd574fcd0aec2c773b","status":"affected","version":"15d83c4d7cef5c067a8b075ce59e97df4f60706e","versionType":"git"},{"lessThan":"061c4649fa49ed80e3f3ac872665230cb6fa898c","status":"affected","version":"15d83c4d7cef5c067a8b075ce59e97df4f60706e","versionType":"git"},{"lessThan":"1b79f322cbfb59d920b102a18efdd14f17e3d5ad","status":"affected","version":"15d83c4d7cef5c067a8b075ce59e97df4f60706e","versionType":"git"},{"lessThan":"b741414a94a7196454456ea46e5e08798e98d252","status":"affected","version":"15d83c4d7cef5c067a8b075ce59e97df4f60706e","versionType":"git"},{"lessThan":"7cc639dc45c5d3b69acb2a2fc834e9eec51e0214","status":"affected","version":"15d83c4d7cef5c067a8b075ce59e97df4f60706e","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["kernel/bpf/bpf_iter.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.8"},{"lessThan":"5.8","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.8","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't take an extension for an iterator program\n\nAn extension inherits the expected_attach_type of the program it extends.\nIf that is BPF_TRACE_ITER, check_attach_btf_id() hands the extension to\nbpf_iter_prog_supported(), which goes by the name of the attach function.\nFor an extension that is the name of the subprogram it replaces, so the\nload fails with -EINVAL, unless that subprogram is called like the function\nof a target, bpf_iter_bpf_map_elem for example.\n\nThen the extension gets the context of that target.  If the subprogram\nhas as many arguments, it can use the key and the value as buffers, but\nhow far it reaches is noted in the extension, where the test of the\niterator link does not look: it reads and writes behind the elements of\nthe map.  And the id of the subprogram in the BTF of the program is cached\nas the id of the target, so that programs of that target which are loaded\nalready cannot be attached.\n\nRefuse all extensions here."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:33:29.946Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/46a8a2acca26616f8445af133f32d7740332fdc0"},{"url":"https://git.kernel.org/stable/c/afd54a08a29406fb3d8ea8e828bdb5d1e4862088"},{"url":"https://git.kernel.org/stable/c/e8b7f9151e465c4ab5e712f84041b0cf3b90425b"},{"url":"https://git.kernel.org/stable/c/d7a76b9b807349c3057beccd574fcd0aec2c773b"},{"url":"https://git.kernel.org/stable/c/061c4649fa49ed80e3f3ac872665230cb6fa898c"},{"url":"https://git.kernel.org/stable/c/1b79f322cbfb59d920b102a18efdd14f17e3d5ad"},{"url":"https://git.kernel.org/stable/c/b741414a94a7196454456ea46e5e08798e98d252"},{"url":"https://git.kernel.org/stable/c/7cc639dc45c5d3b69acb2a2fc834e9eec51e0214"}],"title":"bpf: Don't take an extension for an iterator program","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139302","datePublished":"2026-11-30T13:33:29.946Z","dateReserved":"2026-11-30T13:22:15.925Z","dateUpdated":"2026-11-30T13:33:29.946Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:54","lastModifiedDate":"2026-11-30 14:18:54","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139302","Ordinal":"1","Title":"bpf: Don't take an extension for an iterator program","CVE":"CVE-2026-139302","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139302","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't take an extension for an iterator program\n\nAn extension inherits the expected_attach_type of the program it extends.\nIf that is BPF_TRACE_ITER, check_attach_btf_id() hands the extension to\nbpf_iter_prog_supported(), which goes by the name of the attach function.\nFor an extension that is the name of the subprogram it replaces, so the\nload fails with -EINVAL, unless that subprogram is called like the function\nof a target, bpf_iter_bpf_map_elem for example.\n\nThen the extension gets the context of that target.  If the subprogram\nhas as many arguments, it can use the key and the value as buffers, but\nhow far it reaches is noted in the extension, where the test of the\niterator link does not look: it reads and writes behind the elements of\nthe map.  And the id of the subprogram in the BTF of the program is cached\nas the id of the target, so that programs of that target which are loaded\nalready cannot be attached.\n\nRefuse all extensions here.","Type":"Description","Title":"bpf: Don't take an extension for an iterator program"}]}}}