In the Linux kernel, the following vulnerability has been resolved: bpf: Clamp the trace length in bpfgetstack() again getperfcallchain()…
CVE-2026-143365
In the Linux kernel, the following vulnerability has been resolved: bpf: Clamp the trace length in bpfgetstack() again getperfcallchain() and getcallchainentryfortask() 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. preemptdisable() stops only other tasks. bpfgetstack() requests at most maxdepth frames. This is skip plus the frames that fit in the buffer, but not more than perfeventmaxstack. 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 maxdepth does not limit. In both cases the copy writes after the end of the buffer. Read trace->nr one time. Clamp the value to maxdepth before the skip test, as bpfgetstackpe() does. Thus when maxdepth is less than skip, the helper returns -EFAULT, and 'tracenr - skip' does not underflow. The copied frames can still be those of the second user.
Assessment
- CVSS
- 0
- Severity
- Unscored
- EPSS
- 0% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 3 December 2026
- Last updated
- 3 December 2026
- Assigner
- Linux
At the source
References
- https://git.kernel.org/stable/c/7735e81c34d7aed929b4a3864941f675f34ea07f
- https://git.kernel.org/stable/c/5e0ae0ed5db60a22aca6ef1f8aeed677bed323f9
- https://git.kernel.org/stable/c/f9045c09e95923b91d99916f0c821a4efbff4be4
- https://git.kernel.org/stable/c/007fd460798be9af7d4874734f934afa47742f29
- https://nvd.nist.gov/vuln/detail/CVE-2026-143365
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-143365