CVE-2026-143365

critical

Description

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.

References

https://git.kernel.org/stable/c/f9045c09e95923b91d99916f0c821a4efbff4be4

https://git.kernel.org/stable/c/7735e81c34d7aed929b4a3864941f675f34ea07f

https://git.kernel.org/stable/c/5e0ae0ed5db60a22aca6ef1f8aeed677bed323f9

https://git.kernel.org/stable/c/007fd460798be9af7d4874734f934afa47742f29

https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-143015

Details

Source: Mitre, NVD

Published: 2026-12-03

Updated: 2026-12-03

Risk Information

CVSS v2

Base Score: 8.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:C

Severity: High

CVSS v3

Base Score: 9.8

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Severity: Critical

EPSS

EPSS: 0.00368