EnvMap GitHub

CVE-2026-143365

bpf: Clamp the trace length in __bpf_get_stack() again

Not scored yetEPSS 0.30%Received

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.

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

Affected

  • Linux: from 0c472ae306761526ba5e96bc4a618e29edb3a85c before 7735e81c34d7aed929b4a386494; from 8fc78e468f9e4dfaa278a84d0b349e2f773aa19b before 5e0ae0ed5db60a22aca6ef1f8ae; from e17d62fedd10ae56e2426858bd0757da544dbc73 before f9045c09e95923b91d99916f0c8; from e17d62fedd10ae56e2426858bd0757da544dbc73 before 007fd460798be9af7d4874734f9; 6.19

as the publisher (Linux) lists them.

Likelihood of exploitation

FIRST's EPSS gives a 0.30% chance of exploitation in the next 30 days, higher than 24% 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-143365 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.