CVE-2026-139205
bpf: Propagate btf_add_type() errors in btf_check_all_metas()
Check your servers for CVE-2026-139205
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139205 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.2% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 69b693f0aefa0ed521e8bd02260523b5ae446ad7, before aeeb7926e7ee1f1166dfcb2579273f7853e5c827 affected from 69b693f0aefa0ed521e8bd02260523b5ae446ad7, before d2e15eaac0b5ca659d2b96b9c318280aa5687f4e affected from 69b693f0aefa0ed521e8bd02260523b5ae446ad7, before 97de075a17067937958d2fe90b2ab0835d67065c affected from 69b693f0aefa0ed521e8bd02260523b5ae446ad7, before e54eece54464c30aef9fd13f7260cecee680888b affected from 69b693f0aefa0ed521e8bd02260523b5ae446ad7, before 04665d07fa1bd6043a32388e0dc58ca0592647db affected from 69b693f0aefa0ed521e8bd02260523b5ae446ad7, before 808354dd05f7f40d1d4ff1f070c8ce2e7acf9eb8 affected from 69b693f0aefa0ed521e8bd02260523b5ae446ad7, before a704a0e7b2749f665b5bc16ef4e49e27f750adda affected from 69b693f0aefa0ed521e8bd02260523b5ae446ad7, before fb2b27d214c3b88d926a303267dd83cfdb428b13
Other versions: unaffected
|
| Linux |
affected 4.18 unaffected before 4.18 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.119 up to and including 6.12.* unaffected from 6.18.65 up to and including 6.18.* unaffected from 7.3.6 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139205 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139205
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-139205
trivy image --scanners vuln IMAGE | grep CVE-2026-139205
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/aeeb7926e7ee1f1166dfcb2579273f7853e5c827 git.kernel.org
- https://git.kernel.org/stable/c/d2e15eaac0b5ca659d2b96b9c318280aa5687f4e git.kernel.org
- https://git.kernel.org/stable/c/97de075a17067937958d2fe90b2ab0835d67065c git.kernel.org
- https://git.kernel.org/stable/c/e54eece54464c30aef9fd13f7260cecee680888b git.kernel.org
- https://git.kernel.org/stable/c/04665d07fa1bd6043a32388e0dc58ca0592647db git.kernel.org
- https://git.kernel.org/stable/c/808354dd05f7f40d1d4ff1f070c8ce2e7acf9eb8 git.kernel.org
- https://git.kernel.org/stable/c/a704a0e7b2749f665b5bc16ef4e49e27f750adda git.kernel.org
- https://git.kernel.org/stable/c/fb2b27d214c3b88d926a303267dd83cfdb428b13 git.kernel.org
Source: the record CVE-2026-139205 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse