EnvMap GitHub

CVE-2026-143364

bpf: Clamp the trace length before the skip test in stackid_init()

Not scored yetEPSS 0.37%Received

Description

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.

In the words of the organisation that published it (Linux).

Affected

  • Linux: from d1f424a77b6bd27b361737ed73df49a0158f1590 before 7203b3225a0533d1cfd89dd4695; from 4669a8db976c8cbd5427fe9945f12c5fa5168ff3 before a18b920a21163cfcef67d3913c8; from 23f852daa4bab4d579110e034e4d513f7d490846 before f624585522f6fe93823a3feea28; from 23f852daa4bab4d579110e034e4d513f7d490846 before a08ba2ab79dffd92c32d3f2dadf; 6.19

as the publisher (Linux) lists them.

Likelihood of exploitation

FIRST's EPSS gives a 0.37% chance of exploitation in the next 30 days, higher than 33% of all CVEs (as of 4 December 2026).

References

Record

Published10:18 UTC, 3 December 2026
Last changed10:18 UTC, 3 December 2026
NVD statusReceived
Published byLinux

CVE-2026-143364 on NVD · on CVE.org · Security Briefing

Follow it

Add the feed to a feed reader and new items arrive there as they are published, with no account here and no email.

Add to Feedly Add to Inoreader

Any other reader: paste https://envmap.tech/security/feed.xml

Where this comes from

Nothing here is written by an AI, summarised or rewritten: a headline is its newsroom's own and opens its story. A description is in the words of the organisation that published the CVE; a score says whose it is, NVD's or the publisher's; a CVE nobody has scored yet says so. A CVE that is rejected comes off every list. When a source does not answer, the page keeps the last answer it gave and says since when.

How to read it

EnvMap is a free, open-source DevOps control plane that you run yourself; its Security page brings your scanners' findings into one place. See what it does.