PT-2026-167222
CVE-2026-143364
·
Published
2026-12-03
·
Updated
2026-12-03
Description by
Score
N/A
Not availableNo 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 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.
Found an issue in the description? Have something to add? Feel free to write us 👾