CVE-2026-98007: bpf: Reject non-scalar bpf_loop iteration counts

Published Sep 25, 2026
·
Updated

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

bpf: Reject non-scalar bpfloop iteration counts

bpfloop() declares its nrloops argument as ARGANYTHING. Privileged programs may pass pointer values to such arguments, so checkfuncarg() lets a pointer-valued R1 reach the helper-specific checks.

Since commit bb124da69c47 ("bpf: keep track of max number of bpfloop callback iterations"), the verifier marks R1 precise and reads its upper bound to limit callback simulation. Precision backtracking only accepts scalar registers, so passing a pointer instead triggers the "backtracking misuse" verifier warning. Kernels with paniconwarn enabled subsequently panic.

Introduce ARGSCALAR for helper arguments that only accept scalar values and use it for bpfloop() nrloops. Generic helper argument validation then rejects pointers before loop inlining and precision processing.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 25, 2026
CVE Published
via MITRE·10:23 AM
Data Sourced
via MITRE·10:23 AM
Description

Frequently Asked Questions

1

Who can trigger this issue?

A privileged BPF program must pass a pointer-valued register as the bpf_loop() iteration-count argument. The problematic path occurs during BPF verifier processing.

2

When does this become a system availability issue?

The malformed argument can trigger a verifier warning reporting "backtracking misuse." Systems configured with panic_on_warn enabled subsequently panic.

3

How can administrators identify possible exposure or exploitation attempts?

Look for Linux kernel verifier warnings containing "backtracking misuse," particularly while loading privileged BPF programs that use bpf_loop(). A panic following such a warning indicates that panic_on_warn was enabled.

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