Skip to contentSkip to conversation

CVE-2026-90210: bpf: Fix UAF in bpf_trampoline_multi_attach_free on update failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-90210 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 7.2 with commit aef4dfa790b22d8052cfb78044eadbe03c876c39 and fixed in 7.2.6 with commit 65c3939656fd7848e9274faa07c26748b5bf049c
	Issue introduced in 7.2 with commit aef4dfa790b22d8052cfb78044eadbe03c876c39 and fixed in 7.3-rc1 with commit 0253073fb7d79a2dd2eae9581ea16db2aef395a6

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-90210

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
kernel/bpf/trampoline.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/65c3939656fd7848e9274faa07c26748b5bf049c
	https://git.kernel.org/stable/c/0253073fb7d79a2dd2eae9581ea16db2aef395a6