CVE-2026-143365

In the Linux kernel, the following vulnerability has been resolved: bpf: Clamp the trace length in __bpf_get_stack() again get_perf_callchain() and get_callchain_entry_for_task() store a trace in a per-CPU entry, one per context. They release the entry before they return it. Thus a second user in the same context can write to the entry while the first user reads it. preempt_disable() stops only other tasks. __bpf_get_stack() requests at most max_depth frames. This is skip plus the frames that fit in the buffer, but not more than perf_event_max_stack. Since the commit below, it copies 'trace->nr - skip' frames with no limit. But a second user can store a longer trace. The unwinders of PowerPC add context markers that max_depth does not limit. In both cases the copy writes after the end of the buffer. Read trace->nr one time. Clamp the value to max_depth before the skip test, as __bpf_get_stack_pe() does. Thus when max_depth is less than skip, the helper returns -EFAULT, and 'trace_nr - skip' does not underflow. The copied frames can still be those of the second user.

Package Linux Kernel
Published 2026-12-03
Last modified 2026-12-03
Patch available
Yes

Affected versions

Linux kernel versions 6.12.63, 6.18.2, 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.

Affected from
≥ 6.12.63 ≥ 6.18.2 ≥ 6.17.13 ≥ 6.19
Fixed in
✓ 6.12.120 6.12.x ✓ 6.18.66 6.18.x ✓ 7.3.7 7.3.x ✓ 7.4-rc2

Frequently asked questions

  • What is CVE-2026-143365?

    CVE-2026-143365 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-143365 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.

  • Is there a patch available for CVE-2026-143365?

    Yes. CVE-2026-143365 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-143365 actively exploited?

    No. CVE-2026-143365 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.