CVE-2026-98061: bpf: Reject tail calls directly from callback frames

Published Sep 25, 2026
·
Updated

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

bpf: Reject tail calls directly from callback frames

A tail call from a non-zero frame is modeled as a return from that frame. The verifier makes R0 unknown and calls preparefuncexit() for the taken branch.

When the current frame is a synchronous callback, preparefuncexit() enforces the callback return-value contract and marks R0 precise. Since the tail-call path synthesized R0 rather than deriving it from an instruction, precision backtracking reaches the callback-calling instruction with R0 still requested and triggers the "callback unexpected regs" verifier bug. A CAPBPF task can therefore cause a WARN and an -EFAULT BPFPROGLOAD.

Tail calls reachable from callbacks are already rejected later by checkmaxstackdepth(). Reject a tail call made directly by a callback before constructing the inconsistent return state, using the existing diagnostic. Tail calls from ordinary subprograms keep their current behavior.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 25, 2026
CVE Published
via MITRE·10:24 AM
Data Sourced
via MITRE·10:24 AM
Description
Data Sourced
via NVD·11:17 AM
Description

Frequently Asked Questions

1

What privileges does an attacker need to trigger this issue?

The triggering task must have CAP_BPF. The issue is reached while loading a crafted BPF program.

2

What is the observable impact of a trigger attempt?

A successful trigger can cause a kernel WARN, and the BPF program load fails with -EFAULT. The provided information does not describe privilege escalation, code execution, or a successful program load.

3

Which BPF program structures are implicated?

The problematic path involves a tail call made directly from a synchronous callback frame. Tail calls from ordinary subprograms retain their existing behavior.

4

How can an operator recognize a possible attempted trigger?

Look for a kernel WARN associated with BPF program loading together with a BPF_PROG_LOAD failure returning -EFAULT. These symptoms would be relevant when the loading task has CAP_BPF.

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