CVE-2026-89799: bpf: Disable preemption in bpf_get_stackid
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
bpf: Disable preemption in bpf_get_stackid
The get_perf_callchain call needs disabled preemption plus we need it disabled as long as we access its returned trace entries buffer.
Note the bpf_get_stackid_pe function is executed already with preemption disabled.
The Linux kernel CVE team has assigned CVE-2026-89799 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.6 with commit d5a3b1f691865be576c2bffa708549b8cdccda19 and fixed in 6.18.51 with commit ccf481d73bce6e851cec364fe831c86fe66877cf Issue introduced in 4.6 with commit d5a3b1f691865be576c2bffa708549b8cdccda19 and fixed in 7.2.5 with commit c4efdc1d4cb3e9183e41a1b2a5e0901dbbb31cdf Issue introduced in 4.6 with commit d5a3b1f691865be576c2bffa708549b8cdccda19 and fixed in 7.3-rc1 with commit 15f1bd8574662f1b7b26aaa2e23ebf4066f0117d
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-89799
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/stackmap.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/ccf481d73bce6e851cec364fe831c86fe66877cf https://git.kernel.org/stable/c/c4efdc1d4cb3e9183e41a1b2a5e0901dbbb31cdf https://git.kernel.org/stable/c/15f1bd8574662f1b7b26aaa2e23ebf4066f0117d