Skip to content
Threat Brief

← All advisories

CVE-2026-98007

Medium 5.5No known exploitationFix available

bpf: Reject non-scalar bpf_loop iteration counts

Record last updated

CVSS score

5.5

Medium on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.2%

Higher than 6% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

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

VendorProductAffected versionsFixed inPer
LinuxLinuxfrom 6.6.15 before 6.6.1586.6.158CVE Program
LinuxLinuxfrom bb124da69c47dd98d69361ec13244ece50bec63e before 656d40d1ca228ee21a9b3280432479fc9eae75ab656d40d1ca228ee21a9b3280432479fc9eae75abCVE Program
LinuxLinuxfrom bb124da69c47dd98d69361ec13244ece50bec63e before f8ae8275c721334ee50fafdd986fb83294eb941af8ae8275c721334ee50fafdd986fb83294eb941aCVE Program
LinuxLinuxfrom bb124da69c47dd98d69361ec13244ece50bec63e before c3fd8e5fd100f122bad503bdc0e9277219533253c3fd8e5fd100f122bad503bdc0e9277219533253CVE Program
LinuxLinuxfrom bb124da69c47dd98d69361ec13244ece50bec63e before e2e1161e03fecff6d2229a81b024337144bfcd97e2e1161e03fecff6d2229a81b024337144bfcd97CVE Program
LinuxLinuxfrom bfc5c19b4b48840627af0d0f1c8f4461b276e508 before 2ff38b3552af53238aee6c877ae64cc798d46fce2ff38b3552af53238aee6c877ae64cc798d46fceCVE Program
LinuxLinux6.7Not documentedCVE Program
Microsoftazl3 kernel 6.6.157.1-1 on Azure Linux 3.0Not documented6.6.158.1-1Microsoft MSRC
Microsoftazl4 kernel 6.18.50-1.5.azl4 on Azure Linux 4.0Not documented0:6.18.57-1.1.azl4Microsoft MSRC
LinuxLinux (unaffected)from 6.12.111 up to and including 6.12.*Not documentedCVE Program
LinuxLinux (unaffected)from 6.18.53 up to and including 6.18.*Not documentedCVE Program
LinuxLinux (unaffected)from 6.6.158 up to and including 6.6.*Not documentedCVE Program
LinuxLinux (unaffected)from 7.2.7 up to and including 7.2.*Not documentedCVE Program
LinuxLinux (unaffected)7.3Not documentedCVE Program
LinuxLinux (unaffected)all versions before 6.7Not documentedCVE Program

Timeline

  1. Disclosure

    CVE record published by Linux

    Source: CVE Program (opens in a new tab)

  2. Advisory

    Microsoft advisory published

    Source: Microsoft MSRC (opens in a new tab)

  3. Advisory change

    Microsoft advisory revised (2.0): Information published.

    Source: Microsoft MSRC (opens in a new tab)

  4. Advisory change

    Microsoft advisory revised (3.0): Information published.

    Source: Microsoft MSRC (opens in a new tab)

  5. Advisory change

    Microsoft advisory revised (4.0): Information published.

    Source: Microsoft MSRC (opens in a new tab)

  6. Advisory change

    Microsoft advisory revised (5.0): Information published.

    Source: Microsoft MSRC (opens in a new tab)

  7. Patch

    Fix documented by Microsoft MSRC

    Source: Microsoft MSRC (opens in a new tab)

Vendor guidance and references