CVE-2026-98641: bpf, arm64: set up the frame pointer for the exception callback

Published Oct 18, 2026
·
Updated

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

bpf, arm64: set up the frame pointer for the exception callback

A program acting as exception boundary saves all callee-saved registers, so buildprologue() takes the exceptioncb path and never calls pushcalleeregs(). That is the only place findusedcalleeregs() runs, and with it the only place ctx->fpused is set, so the callback prologue does not emit the

mov x25, sp

that points BPFREGFP at the frame the callback runs on. x25 keeps whatever it held when bpfthrow() was called. If the throw came from a subprogram that uses its own BPF stack, that is the subprogram's frame pointer, and since the subprogram never returns it never restores x25 either.

Stack accesses through BPFREGFP are rewritten to be stack pointer relative, so those still land in the callback's own frame. Materializing the register does not: a callback that passes the address of a local variable to a helper hands over an address in the dead subprogram's frame. That address is below the callback's stack pointer by then, and the helper's own call chain covers it, so the helper can write over its own return address. 0x1234 below is the value the helper was asked to store:

pc : 0x1234 lr : 0x1234 Call trace: 0x1234 (P) bpftestrun+0x188/0x3e0 bpfprogtestrunskb+0x47c/0x998 sysbpf+0xbdc/0xdd8 Kernel panic - not syncing: Oops: Fatal exception in interrupt

Set ctx->fpused on the exception callback path so that the existing code further down sets x25 from the stack pointer. The epilogue restores it from the main program's save area along with the other callee-saved registers, as it already does. x86 sets the frame pointer for the callback from the argument it is passed, and powerpc computes it from the stack pointer.

Affected Software

1 affected component
Linux Linux kernel

Event History

Oct 18, 2026
CVE Published
via MITRE·03:20 PM
Data Sourced
via MITRE·03:20 PM
Description
Data Sourced
via NVD·04:17 PM
Description

Frequently Asked Questions

1

What conditions are required for this issue to be exploitable?

The affected BPF program must act as an exception boundary, invoke bpf_throw() from a subprogram that has its own BPF stack frame, and have the exception callback materialize and pass a local-variable address to a helper. The stale frame pointer can then cause the helper to receive an address in the abandoned subprogram frame.

2

What is the likely impact of the stale frame pointer?

A helper may write to an address below the callback stack pointer that is covered by the helper call chain. This can overwrite the helper's own return address.

3

How can I determine whether a BPF program is exposed?

Review exception-boundary BPF programs for bpf_throw() calls originating in subprograms that use their own BPF stack, then inspect exception callbacks that pass addresses of local variables to helpers. Those are the conditions described for the unsafe stale frame-pointer use.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203