CVE-2026-139205
publishedbpf: Propagate btf_add_type() errors in btf_check_all_metas()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux69b693f0aefa0ed521e8bd02260523b5ae446ad7 to < aeeb7926e7ee1f1166dfcb2579273f7853e5c827 · 69b693f0aefa0ed521e8bd02260523b5ae446ad7 to < d2e15eaac0b5ca659d2b96b9c318280aa5687f4e · 69b693f0aefa0ed521e8bd02260523b5ae446ad7 to < 97de075a17067937958d2fe90b2ab0835d67065c · 69b693f0aefa0ed521e8bd02260523b5ae446ad7 to < e54eece54464c30aef9fd13f7260cecee680888b · 69b693f0aefa0ed521e8bd02260523b5ae446ad7 to < 04665d07fa1bd6043a32388e0dc58ca0592647db · 69b693f0aefa0ed521e8bd02260523b5ae446ad7 to < 808354dd05f7f40d1d4ff1f070c8ce2e7acf9eb8 · 69b693f0aefa0ed521e8bd02260523b5ae446ad7 to < a704a0e7b2749f665b5bc16ef4e49e27f750adda · 69b693f0aefa0ed521e8bd02260523b5ae446ad7 to < fb2b27d214c3b88d926a303267dd83cfdb428b13 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.18 (affected) · 0 to < 4.18 (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: Propagate btf_add_type() errors in btf_check_all_metas() btf_check_all_metas() ignores the return value of btf_add_type(), so a type that could not be registered is silently dropped while the loop keeps walking over the type section. Both failure modes are reachable: - -E2BIG. Once the types array reaches its capacity (BTF_MAX_TYPE), every following btf_add_type() fails the same way, so btf_check_all_metas() still returns 0 and the BTF object is created with btf->nr_types capped while hdr->type_len claims more records. - -ENOMEM. btf->nr_types is not incremented and the array is not grown, so the next type is recorded at the slot of the dropped one and btf->types[] stays off by one with respect to the type ids for all remaining types. btf_type_by_id() then returns the wrong type for those ids for the whole lifetime of the object, and the last type is silently left unresolved. Propagate the error so that the object is rejected instead.
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 | 69b693f0aefa0ed521e8bd02260523b5ae446ad7 to < aeeb7926e7ee1f1166dfcb2579273f7853e5c827 (affected · git)69b693f0aefa0ed521e8bd02260523b5ae446ad7 to < d2e15eaac0b5ca659d2b96b9c318280aa5687f4e (affected · git)69b693f0aefa0ed521e8bd02260523b5ae446ad7 to < 97de075a17067937958d2fe90b2ab0835d67065c (affected · git)69b693f0aefa0ed521e8bd02260523b5ae446ad7 to < e54eece54464c30aef9fd13f7260cecee680888b (affected · git)69b693f0aefa0ed521e8bd02260523b5ae446ad7 to < 04665d07fa1bd6043a32388e0dc58ca0592647db (affected · git)69b693f0aefa0ed521e8bd02260523b5ae446ad7 to < 808354dd05f7f40d1d4ff1f070c8ce2e7acf9eb8 (affected · git)69b693f0aefa0ed521e8bd02260523b5ae446ad7 to < a704a0e7b2749f665b5bc16ef4e49e27f750adda (affected · git)69b693f0aefa0ed521e8bd02260523b5ae446ad7 to < fb2b27d214c3b88d926a303267dd83cfdb428b13 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.18 (affected)0 to < 4.18 (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/04665d07fa1bd6043a32388e0dc58ca0592647db
- https://git.kernel.org/stable/c/808354dd05f7f40d1d4ff1f070c8ce2e7acf9eb8
- https://git.kernel.org/stable/c/97de075a17067937958d2fe90b2ab0835d67065c
- https://git.kernel.org/stable/c/a704a0e7b2749f665b5bc16ef4e49e27f750adda
- https://git.kernel.org/stable/c/aeeb7926e7ee1f1166dfcb2579273f7853e5c827
- https://git.kernel.org/stable/c/d2e15eaac0b5ca659d2b96b9c318280aa5687f4e
- https://git.kernel.org/stable/c/e54eece54464c30aef9fd13f7260cecee680888b
- https://git.kernel.org/stable/c/fb2b27d214c3b88d926a303267dd83cfdb428b13
Provider assertions
1Linux · cna
bpf: Propagate btf_add_type() errors in btf_check_all_metas()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c2549146f282de84f65dacb00cf05a926b440ce4b88cbe0b53f5bd6e9913bde6
- Ingested
- 30 Nov 2026, 13:42:23 UTC
- Source record
- Official CVE record