PT-2026-167223

CVE-2026-143365

·

Published

2026-12-03

·

Updated

2026-12-03

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

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.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾