CVE-2026-143367

Not scored yetLast modified Dec 3, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

bpf, x86: Fix bpf_throw() in a prog with a private stack

When the main prog has a private stack and the prog calls bpf_throw(), it returns to the kernel with wrong values in r12, rbx, r13, r14 and r15. The kernel crashes soon after that, for example:

BUG: kernel NULL pointer dereference, address: 0000000000000010 RIP: 0010:__bpf_prog_test_run_raw_tp+0x125/0x380

The main prog of a prog that can throw saves these five registers at its entry. bpf_throw() walks the stack to the frame of the main prog and gives the stack pointer of that frame to the exception callback, which pops the registers from there. In a function with a private stack r9 is the frame pointer, and the JIT emits 'push r9' in front of every call and 'pop r9' after it. So the stack pointer that bpf_throw() finds is 8 bytes too low:

r12 rbx r13 r14 r15 <- the callback has to pop from here r9 <- rsp of the main prog at the call

r15 gets the address of the private stack and every other register gets the value of its neighbour.

This happens in tracepoint, raw_tp, perf_event and tracing progs, except iterators, and in struct_ops progs that ask for a private stack, when the main prog has more than 48 bytes of stack. The throw can be in the main prog or in a subprog.

aux->stack_arg_sp_adjust already moves the stack pointer from the outgoing stack arguments up to the saved registers. Add the 8 bytes of r9 to it when the main prog has a private stack.

A constant is enough. Calls of helpers, kfuncs and subprogs and callx all have the push. A prog with tail calls has no private stack, and a callback cannot throw. Only the frame of the main prog matters: the frames of subprogs are dropped, with or without a private stack. On x86-64 a function with stack arguments has no private stack, hence only one of the two parts is not zero.

The JITed code does not change.

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-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_dCVE-2026-143377In the Linux kernel, the following vulnerability has been resolved: bpf: Drop percpu_counter from the htab element count The element countCVE-2026-143378In the Linux kernel, the following vulnerability has been resolved: btrfs: zoned: fix double free of bitmaps on clone failure btrfs_clone_
CVE-2026-143367: Unscored | Vulnix