CVE-2026-143364
In the Linux kernel, the following vulnerability has been resolved: bpf: Clamp the trace length before the skip test in stackid_init() stackid_init() gives a bucket of the stack map min(trace_nr - skip, max_depth - skip) trace entries. Here max_depth is the size of a bucket plus skip, but at most perf_event_max_stack. Context markers can make trace_nr larger than that, so the skip test can pass when max_depth < skip. Then 'max_depth - skip' wraps, and the kernel can write after the bucket. Clamp trace_nr to max_depth before the skip test, as __bpf_get_stack_pe() does. The result changes only when skip >= max_depth. Then it is -EFAULT. Until now skip == max_depth could give the id of an empty trace. get_perf_callchain() releases the trace, so an NMI can change trace->nr. Use READ_ONCE() in bpf_get_stackid(), so the compiler reads it one time.
Affected versions
Linux kernel versions
6.12.63,
6.18.2,
6.1.191,
6.6.160,
6.17.13,
6.19
and later are affected. Fixed in
6.12.120,
6.18.66,
7.3.7,
7.4-rc2
and their respective stable series.
References
4 totalFrequently asked questions
-
What is CVE-2026-143364?
CVE-2026-143364 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 6.12.63 onward and has been patched in 6.12.120, 6.18.66, 7.3.7 and others. CVE-2026-143364 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
Is there a patch available for CVE-2026-143364?
Yes. CVE-2026-143364 has been patched. Fixed versions include 6.12.120, 6.18.66, 7.3.7 and others. If you are running Linux kernel 6.12.63 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2026-143364 actively exploited?
No. CVE-2026-143364 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.