CVE-2026-143365

Not scored yetLast modified Dec 3, 2026

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143366In the Linux kernel, the following vulnerability has been resolved: spi: pic32-sqi: fail transfer when the BD ring is exhausted pic32_sqi_CVE-2026-143367In the Linux kernel, the following vulnerability has been resolved: bpf, x86: Fix bpf_throw() in a prog with a private stack When the mainCVE-2026-143368In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_reject: prevent unbounded recursion in output hooks nftCVE-2026-143369In the Linux kernel, the following vulnerability has been resolved: ALSA: hda/core: Fix double free on stream page allocation failure SincCVE-2026-143374.6Pega Platform versions 23.1.0 through 25.1.3 are affected by an Stored Cross-site scripting (XSS) vulnerability in a user interface componenCVE-2026-143370In the Linux kernel, the following vulnerability has been resolved: ALSA: memalloc: Free the new pages when WC DMA mapping fails snd_dma_wCVE-2026-143371In the Linux kernel, the following vulnerability has been resolved: net: ipa: Fix double free of the interrupt structure on config error SCVE-2026-143372In the Linux kernel, the following vulnerability has been resolved: tipc: reject attaching bearer of different media to the same occupied dCVE-2026-143373In the Linux kernel, the following vulnerability has been resolved: scsi: target: Validate REGISTER AND MOVE TransportID length REGISTER ACVE-2026-143374In the Linux kernel, the following vulnerability has been resolved: ptp: unwind partially completed virtual clock creation n_vclocks_storeCVE-2026-143375In the Linux kernel, the following vulnerability has been resolved: ptp: drain virtual clock sysfs operations before unregistering childrenCVE-2026-143376In the Linux kernel, the following vulnerability has been resolved: net: ethernet: mtk_wed: free up rings during detach During __mtk_wed_d
CVE-2026-143365: Unscored | Vulnix