CVE-2026-90210 PUBLISHED

bpf: Fix UAF in bpf_trampoline_multi_attach_free on update failure

Assigner: Linux
Reserved: 11.09.2026 Published: 17.09.2026 Updated: 17.09.2026

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix UAF in bpf_trampoline_multi_attach_free on update failure

When bpf_trampoline_update() fails before modify_fentry_multi()/ unregister_fentry_multi() is called, cur_image is unchanged (cur_image == old_image) and ftrace still calls into it. Freeing old_image in that case causes a UAF.

Only free old_image when it differs from cur_image.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from aef4dfa790b22d8052cfb78044eadbe03c876c39 to 65c3939656fd7848e9274faa07c26748b5bf049c (excl.)
  • affected from aef4dfa790b22d8052cfb78044eadbe03c876c39 to 0253073fb7d79a2dd2eae9581ea16db2aef395a6 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 7.2 is affected
  • unaffected from 0 to 7.2 (excl.)
  • unaffected from 7.2.6 to 7.2.* (incl.)
  • unaffected from 7.3-rc1 to * (incl.)

References