VDB

CVE-2026-98007

CVE-2026-98007 PUBLISHED

bpf: Reject non-scalar bpf_loop iteration counts

Reported by linux · Published September 25, 2026

In the Linux kernel, the following vulnerability has been resolved: bpf: Reject non-scalar bpf_loop iteration counts bpf_loop() declares its nr_loops argument as ARG_ANYTHING. Privileged programs may pass pointer values to such arguments, so check_func_arg() lets a pointer-valued R1 reach the helper-specific checks. Since commit bb124da69c47 ("bpf: keep track of max number of bpf_loop 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 panic_on_warn enabled subsequently panic. Introduce ARG_SCALAR for helper arguments that only accept scalar values and use it for bpf_loop() nr_loops. Generic helper argument validation then rejects pointers before loop inlining and precision processing.

EPSS 0.17% · 6.1th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.18-headersAmazon Linux1:6.18.54-121.166.amzn2023
kernel6.18Amazon Linux1:6.18.54-121.166.amzn2023
perf6.12Amazon Linux1:6.12.111-136.204.amzn2023

Risk scores

EPSS Score
0.17%
6.1th percentile

Affected products

VendorProductVersions
LinuxLinuxbfc5c19b4b48840627af0d0f1c8f4461b276e508, bb124da69c47dd98d69361ec13244ece50bec63e, bb124da69c47dd98d69361ec13244ece50bec63e
LinuxLinux6.7, 0, 6.6.158
amazon:2023kernel6.18-headers0
amazon:2023kernel6.180
amazon:2023perf6.120
linuxlinux_kernel6.7, 6.7, 6.6.15
amazon:2023kernel-livepatch-6.18.54-121.1660
amazon:2023bpftool6.180
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.18-tools0
amazon:2023perf6.180
amazon:2023kernel6.12-tools0
amazon:2023kernel6.12-devel0
amazon:2023kernel-livepatch-6.12.111-136.2040
LinuxLinux7.3, *, *
amazon:2023bpftool6.120
amazon:2023kernel6.120
amazon:2023kernel6.12-headers0
amazon:2023python3-perf6.180

…and 7 more

Timeline

  • Sep 25, 2026 CVE Published
  • Sep 26, 2026 EPSS Score (6 in total, the first dated here)
  • Oct 19, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-98007
vulnetix vdb fixes CVE-2026-98007

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-98007/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›