{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-139302",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.925Z",
        "datePublished": "2026-11-30T13:33:29.946Z",
        "dateUpdated": "2026-11-30T13:33:29.946Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:33:29.946Z"
            },
            "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."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "kernel/bpf/bpf_iter.c"
                    ],
                    "versions": [
                        {
                            "version": "15d83c4d7cef5c067a8b075ce59e97df4f60706e",
                            "lessThan": "46a8a2acca26616f8445af133f32d7740332fdc0",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "15d83c4d7cef5c067a8b075ce59e97df4f60706e",
                            "lessThan": "afd54a08a29406fb3d8ea8e828bdb5d1e4862088",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "15d83c4d7cef5c067a8b075ce59e97df4f60706e",
                            "lessThan": "e8b7f9151e465c4ab5e712f84041b0cf3b90425b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "15d83c4d7cef5c067a8b075ce59e97df4f60706e",
                            "lessThan": "d7a76b9b807349c3057beccd574fcd0aec2c773b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "15d83c4d7cef5c067a8b075ce59e97df4f60706e",
                            "lessThan": "061c4649fa49ed80e3f3ac872665230cb6fa898c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "15d83c4d7cef5c067a8b075ce59e97df4f60706e",
                            "lessThan": "1b79f322cbfb59d920b102a18efdd14f17e3d5ad",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "15d83c4d7cef5c067a8b075ce59e97df4f60706e",
                            "lessThan": "b741414a94a7196454456ea46e5e08798e98d252",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "15d83c4d7cef5c067a8b075ce59e97df4f60706e",
                            "lessThan": "7cc639dc45c5d3b69acb2a2fc834e9eec51e0214",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "kernel/bpf/bpf_iter.c"
                    ],
                    "versions": [
                        {
                            "version": "5.8",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.8",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.275",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.226",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.119",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.65",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.6",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "6.12.119"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "6.18.65"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "7.3.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "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"
            }
        }
    }
}