CVE-2026-98007
Medium 5.5No known exploitationFix availablebpf: Reject non-scalar bpf_loop iteration counts
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 6% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Patching and mitigation
- Patch status
- Fix available (source: Microsoft MSRC)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- msrc.microsoft.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Linux | Linux | from 6.6.15 before 6.6.158 | 6.6.158 | CVE Program |
| Linux | Linux | from bb124da69c47dd98d69361ec13244ece50bec63e before 656d40d1ca228ee21a9b3280432479fc9eae75ab | 656d40d1ca228ee21a9b3280432479fc9eae75ab | CVE Program |
| Linux | Linux | from bb124da69c47dd98d69361ec13244ece50bec63e before f8ae8275c721334ee50fafdd986fb83294eb941a | f8ae8275c721334ee50fafdd986fb83294eb941a | CVE Program |
| Linux | Linux | from bb124da69c47dd98d69361ec13244ece50bec63e before c3fd8e5fd100f122bad503bdc0e9277219533253 | c3fd8e5fd100f122bad503bdc0e9277219533253 | CVE Program |
| Linux | Linux | from bb124da69c47dd98d69361ec13244ece50bec63e before e2e1161e03fecff6d2229a81b024337144bfcd97 | e2e1161e03fecff6d2229a81b024337144bfcd97 | CVE Program |
| Linux | Linux | from bfc5c19b4b48840627af0d0f1c8f4461b276e508 before 2ff38b3552af53238aee6c877ae64cc798d46fce | 2ff38b3552af53238aee6c877ae64cc798d46fce | CVE Program |
| Linux | Linux | 6.7 | Not documented | CVE Program |
| Microsoft | azl3 kernel 6.6.157.1-1 on Azure Linux 3.0 | Not documented | 6.6.158.1-1 | Microsoft MSRC |
| Microsoft | azl4 kernel 6.18.50-1.5.azl4 on Azure Linux 4.0 | Not documented | 0:6.18.57-1.1.azl4 | Microsoft MSRC |
| Linux | Linux (unaffected) | from 6.12.111 up to and including 6.12.* | Not documented | CVE Program |
| Linux | Linux (unaffected) | from 6.18.53 up to and including 6.18.* | Not documented | CVE Program |
| Linux | Linux (unaffected) | from 6.6.158 up to and including 6.6.* | Not documented | CVE Program |
| Linux | Linux (unaffected) | from 7.2.7 up to and including 7.2.* | Not documented | CVE Program |
| Linux | Linux (unaffected) | 7.3 | Not documented | CVE Program |
| Linux | Linux (unaffected) | all versions before 6.7 | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by Linux
Source: CVE Program (opens in a new tab)
Advisory
Microsoft advisory published
Advisory change
Microsoft advisory revised (2.0): Information published.
Advisory change
Microsoft advisory revised (3.0): Information published.
Advisory change
Microsoft advisory revised (4.0): Information published.
Advisory change
Microsoft advisory revised (5.0): Information published.
Patch
Fix documented by Microsoft MSRC
Vendor guidance and references
- Microsoft Security Update Guide (opens in a new tab)vendor-advisory
- https://git.kernel.org/stable/c/2ff38b3552af53238aee6c877ae64cc798d46fce (opens in a new tab)
- https://git.kernel.org/stable/c/656d40d1ca228ee21a9b3280432479fc9eae75ab (opens in a new tab)
- https://git.kernel.org/stable/c/c3fd8e5fd100f122bad503bdc0e9277219533253 (opens in a new tab)
- https://git.kernel.org/stable/c/e2e1161e03fecff6d2229a81b024337144bfcd97 (opens in a new tab)
- https://git.kernel.org/stable/c/f8ae8275c721334ee50fafdd986fb83294eb941a (opens in a new tab)