CVE-2026-98151
Description
A flaw was found in the Linux kernel's BPF (Berkeley Packet Filter) verifier. A local user can trigger a Denial of Service (DoS) or kernel verification failure by loading a specially crafted BPF program containing speculative pointer arithmetic. This issue occurs because register subregister bounds are cleared prematurely before saving speculative state snapshots, creating inconsistent internal tracking states that violate verifier safety invariants.
Statement
A flaw of MODERATE impact was found in the Linux kernel BPF verifier affecting Red Hat Enterprise Linux 9 and 10, Red Hat In-Vehicle OS 2, and the RHEL 9 based coreos kernels shipped in OpenShift Container Platform 4.19 and later, including OpenShift 5.x. A local unprivileged user can trigger a denial of service or BPF program verification failure by loading a specially crafted BPF program that adds a bounded scalar to a map value pointer, exercising the speculative pointer arithmetic sanitization path. The verifier clears the destination register's 32-bit subregister bounds before the speculative state snapshot is taken in sanitize_ptr_alu(), so the snapshot captures an inconsistent state in which var_off and r32 are out of sync; when the speculative path is subsequently verified, this trips the REG INVARIANTS VIOLATION warning in reg_bounds_sanity_check(). No confidentiality or integrity impact is demonstrated; the effect is limited to a kernel verifier warning and rejection of the offending program, or a system crash on systems configured with panic_on_warn. RHEL 6, 7, and 8, the earlier RHEL 9 minor streams (rhel-9.2 and rhel-9.4), and the RHEL 8 based RHEL CoreOS kernels used in OpenShift 4.12-4.18 are not affected because the register bounds sanity check and sanitization code that contains this flaw is not present in those streams; it first appeared in RHEL 9.5 based code. For the affected streams the fix has been deferred to a future update; the residual risk is limited to local denial of service that an unprivileged local user can trigger. Red Hat rates this flaw MODERATE (CVSS 3.1: 5.5, AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H), reflecting the availability-only consequence of the demonstrated issue.
Mitigation
The vulnerable path is only exercised when an unprivileged user is able to load BPF programs that perform speculative pointer arithmetic. Disabling unprivileged BPF, for example by setting the kernel.unprivileged_bpf_disabled sysctl to 1, prevents unprivileged users from loading the crafted programs needed to trigger this flaw and reduces exposure until a fix is delivered. Systems that already restrict access to the bpf() system call to privileged users are not exposed to the unprivileged trigger.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 5.5 | N/A | N/A |
| Attack Vector | Local | N/A | N/A |
| Attack Complexity | Low | N/A | N/A |
| Privileges Required | Low | N/A | N/A |
| User Interaction | None | N/A | N/A |
| Scope | Unchanged | N/A | N/A |
| Confidentiality | None | N/A | N/A |
| Integrity Impact | None | N/A | N/A |
| Availability Impact | High | N/A | N/A |
Vector
Red Hat: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Understanding the Weakness (CWE)
Availability
Technical Impact: DoS: Crash, Exit, or Restart
An attacker that can trigger an assert statement can still lead to a denial of service if the relevant code can be triggered by an attacker, and if the scope of the assert() extends beyond the attacker's own session.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.