{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-139205",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.920Z",
        "datePublished": "2026-11-30T13:32:33.128Z",
        "dateUpdated": "2026-11-30T13:32:33.128Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:32:33.128Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Propagate btf_add_type() errors in btf_check_all_metas()\n\nbtf_check_all_metas() ignores the return value of btf_add_type(), so a\ntype that could not be registered is silently dropped while the loop\nkeeps walking over the type section.\n\nBoth failure modes are reachable:\n\n  - -E2BIG.  Once the types array reaches its capacity (BTF_MAX_TYPE),\n    every following btf_add_type() fails the same way, so\n    btf_check_all_metas() still returns 0 and the BTF object is created\n    with btf->nr_types capped while hdr->type_len claims more records.\n\n  - -ENOMEM.  btf->nr_types is not incremented and the array is not\n    grown, so the next type is recorded at the slot of the dropped one\n    and btf->types[] stays off by one with respect to the type ids for\n    all remaining types.  btf_type_by_id() then returns the wrong type\n    for those ids for the whole lifetime of the object, and the last\n    type is silently left unresolved.\n\nPropagate the error so that the object is rejected instead."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "kernel/bpf/btf.c"
                    ],
                    "versions": [
                        {
                            "version": "69b693f0aefa0ed521e8bd02260523b5ae446ad7",
                            "lessThan": "aeeb7926e7ee1f1166dfcb2579273f7853e5c827",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69b693f0aefa0ed521e8bd02260523b5ae446ad7",
                            "lessThan": "d2e15eaac0b5ca659d2b96b9c318280aa5687f4e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69b693f0aefa0ed521e8bd02260523b5ae446ad7",
                            "lessThan": "97de075a17067937958d2fe90b2ab0835d67065c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69b693f0aefa0ed521e8bd02260523b5ae446ad7",
                            "lessThan": "e54eece54464c30aef9fd13f7260cecee680888b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69b693f0aefa0ed521e8bd02260523b5ae446ad7",
                            "lessThan": "04665d07fa1bd6043a32388e0dc58ca0592647db",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69b693f0aefa0ed521e8bd02260523b5ae446ad7",
                            "lessThan": "808354dd05f7f40d1d4ff1f070c8ce2e7acf9eb8",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69b693f0aefa0ed521e8bd02260523b5ae446ad7",
                            "lessThan": "a704a0e7b2749f665b5bc16ef4e49e27f750adda",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69b693f0aefa0ed521e8bd02260523b5ae446ad7",
                            "lessThan": "fb2b27d214c3b88d926a303267dd83cfdb428b13",
                            "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/btf.c"
                    ],
                    "versions": [
                        {
                            "version": "4.18",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.18",
                            "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": "4.18",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.18",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.18",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.18",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.18",
                                    "versionEndExcluding": "6.12.119"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.18",
                                    "versionEndExcluding": "6.18.65"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.18",
                                    "versionEndExcluding": "7.3.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.18",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/aeeb7926e7ee1f1166dfcb2579273f7853e5c827"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d2e15eaac0b5ca659d2b96b9c318280aa5687f4e"
                },
                {
                    "url": "https://git.kernel.org/stable/c/97de075a17067937958d2fe90b2ab0835d67065c"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e54eece54464c30aef9fd13f7260cecee680888b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/04665d07fa1bd6043a32388e0dc58ca0592647db"
                },
                {
                    "url": "https://git.kernel.org/stable/c/808354dd05f7f40d1d4ff1f070c8ce2e7acf9eb8"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a704a0e7b2749f665b5bc16ef4e49e27f750adda"
                },
                {
                    "url": "https://git.kernel.org/stable/c/fb2b27d214c3b88d926a303267dd83cfdb428b13"
                }
            ],
            "title": "bpf: Propagate btf_add_type() errors in btf_check_all_metas()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}