CVE-2026-139205

Source
https://cve.org/CVERecord?id=CVE-2026-139205
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139205.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139205
Downstream
Published
2026-11-30T13:32:33Z
Modified
2026-11-30T15:02:27Z
Summary
bpf: Propagate btf_add_type() errors in btf_check_all_metas()
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139205.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
69b693f0aefa0ed521e8bd02260523b5ae446ad7
Fixed
aeeb7926e7ee1f1166dfcb2579273f7853e5c827
Fixed
d2e15eaac0b5ca659d2b96b9c318280aa5687f4e
Fixed
97de075a17067937958d2fe90b2ab0835d67065c
Fixed
e54eece54464c30aef9fd13f7260cecee680888b
Fixed
04665d07fa1bd6043a32388e0dc58ca0592647db
Fixed
808354dd05f7f40d1d4ff1f070c8ce2e7acf9eb8
Fixed
a704a0e7b2749f665b5bc16ef4e49e27f750adda
Fixed
fb2b27d214c3b88d926a303267dd83cfdb428b13

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139205.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.18.0
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139205.json"