# CVE-2026-98007: bpf: Reject non-scalar bpf\_loop iteration counts

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-09-25T10:23:32.939Z
- **Modified:** 2026-10-19T10:17:52.070Z

## Who should check

- Anyone running Linux \>= bfc5c19b4b48840627af0d0f1c8f4461b276e508, \< 2ff38b3552af53238aee6c877ae64cc798d46fce; \>= bb124da69c47dd98d69361ec13244ece50bec63e, \< 656d40d1ca228ee21a9b3280432479fc9eae75ab; \>= bb124da69c47dd98d69361ec13244ece50bec63e, \< e2e1161e03fecff6d2229a81b024337144bfcd97; \>= bb124da69c47dd98d69361ec13244ece50bec63e, \< f8ae8275c721334ee50fafdd986fb83294eb941a; \>= bb124da69c47dd98d69361ec13244ece50bec63e, \< c3fd8e5fd100f122bad503bdc0e9277219533253; \>= 6.6.15, \< 6.6.158
- Anyone running Linux 6.7

## Description

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.

## Affected and fixed versions

- Linux: \>= bfc5c19b4b48840627af0d0f1c8f4461b276e508, \< 2ff38b3552af53238aee6c877ae64cc798d46fce; \>= bb124da69c47dd98d69361ec13244ece50bec63e, \< 656d40d1ca228ee21a9b3280432479fc9eae75ab; \>= bb124da69c47dd98d69361ec13244ece50bec63e, \< e2e1161e03fecff6d2229a81b024337144bfcd97; \>= bb124da69c47dd98d69361ec13244ece50bec63e, \< f8ae8275c721334ee50fafdd986fb83294eb941a; \>= bb124da69c47dd98d69361ec13244ece50bec63e, \< c3fd8e5fd100f122bad503bdc0e9277219533253; \>= 6.6.15, \< 6.6.158 (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

- Upgrade Linux to 6.6.158 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98007. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98007.md
Affected: Linux >= bfc5c19b4b48840627af0d0f1c8f4461b276e508, < 2ff38b3552af53238aee6c877ae64cc798d46fce; >= bb124da69c47dd98d69361ec13244ece50bec63e, < 656d40d1ca228ee21a9b3280432479fc9eae75ab; >= bb124da69c47dd98d69361ec13244ece50bec63e, < e2e1161e03fecff6d2229a81b024337144bfcd97; >= bb124da69c47dd98d69361e…
Fixed in: Linux 2ff38b3552af53238aee6c877ae64cc798d46fce, Linux 656d40d1ca228ee21a9b3280432479fc9eae75ab, Linux 6.6.158

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98007 being exploited?

There is no confirmed exploitation: CVE-2026-98007 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98007?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98007?

Linux \>= bfc5c19b4b48840627af0d0f1c8f4461b276e508, \< 2ff38b3552af53238aee6c877ae64cc798d46fce; \>= bb124da69c47dd98d69361ec13244ece50bec63e, \< 656d40d1ca228ee21a9b3280432479fc9eae75ab; \>= bb124da69c47dd98d69361ec13244ece50bec63e, \< e2e1161e03fecff6d2229a81b024337144bfcd97; \>= bb124da69c47dd98d69361ec13244ece50bec63e, \< f8ae8275c721334ee50fafdd986fb83294eb941a; \>= bb124da69c47dd98d69361ec13244ece50bec63e, \< c3fd8e5fd100f122bad503bdc0e9277219533253; \>= 6.6.15, \< 6.6.158; Linux 6.7.

### Is there a fix for CVE-2026-98007?

Yes. Fixed in Linux 2ff38b3552af53238aee6c877ae64cc798d46fce, Linux 656d40d1ca228ee21a9b3280432479fc9eae75ab, Linux 6.6.158. Upgrade Linux to 6.6.158 or later.

### How do I check if I'm affected by CVE-2026-98007?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/2ff38b3552af53238aee6c877ae64cc798d46fce>
- other: <https://git.kernel.org/stable/c/656d40d1ca228ee21a9b3280432479fc9eae75ab>
- other: <https://git.kernel.org/stable/c/e2e1161e03fecff6d2229a81b024337144bfcd97>
- other: <https://git.kernel.org/stable/c/f8ae8275c721334ee50fafdd986fb83294eb941a>
- other: <https://git.kernel.org/stable/c/c3fd8e5fd100f122bad503bdc0e9277219533253>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98007>

HTML: <https://flawdb.com/CVE-2026-98007> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98007>
