Security mailing lists by PureSourceCode

CVE-2026-139205

not scored yet

bpf: Propagate btf_add_type() errors in btf_check_all_metas()

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.

Published
30 Nov 2026
Last modified
30 Nov 2026
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Received
Sources
NVDJSONCVE ListJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List Linux Linux >= 69b693f0aefa0ed521e8bd02260523b5ae446ad7, < aeeb7926e7ee1f1166dfcb2579273f7853e5c827; >= 69b693f0aefa0ed521e8bd02260523b5ae446ad7, < d2e15eaac0b5ca659d2b96b9c318280aa5687f4e; >= 69b693f0aefa0ed521e8bd02260523b5ae446ad7, < 97de075a17067937958d2fe90b2ab0835d67065c; >= 69b693f0aefa0ed521e8bd02260523b5ae446ad7, < e54eece54464c30aef9fd13f7260cecee680888b; >= 69b693f0aefa0ed521e8bd02260523b5ae446ad7, < 04665d07fa1bd6043a32388e0dc58ca0592647db; >= 69b693f0aefa0ed521e8bd02260523b5ae446ad7, < 808354dd05f7f40d1d4ff1f070c8ce2e7acf9eb8; >= 69b693f0aefa0ed521e8bd02260523b5ae446ad7, < a704a0e7b2749f665b5bc16ef4e49e27f750adda; >= 69b693f0aefa0ed521e8bd02260523b5ae446ad7, < fb2b27d214c3b88d926a303267dd83cfdb428b13 aeeb7926e7ee1f1166dfcb2579273f7853e5c827, d2e15eaac0b5ca659d2b96b9c318280aa5687f4e, 97de075a17067937958d2fe90b2ab0835d67065c, e54eece54464c30aef9fd13f7260cecee680888b, 04665d07fa1bd6043a32388e0dc58ca0592647db, 808354dd05f7f40d1d4ff1f070c8ce2e7acf9eb8, a704a0e7b2749f665b5bc16ef4e49e27f750adda, fb2b27d214c3b88d926a303267dd83cfdb428b13
CVE List Linux Linux = 4.18

References

History

  • 30 Nov 2026 14:45 UTC · NVD: first stored (published 30 Nov 2026)
  • 30 Nov 2026 13:58 UTC · CVE List: first stored (published 30 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.