CVE-2026-138941

Description

A flaw was found in the Linux kernel's PowerPC Berkeley Packet Filter (BPF) Just-In-Time (JIT) compiler. When compiling large BPF programs, improper branch range handling causes the compiler to underestimate the required buffer size during memory allocation. A local attacker with permission to load BPF programs can exploit this vulnerability to trigger a buffer overflow, potentially leading to arbitrary code execution, privilege escalation, or a denial of service (DoS) via a system crash.

Statement

This vulnerability is rated as Moderate because exploitation is confined to systems running on the PowerPC architecture and requires high local privileges to load crafted eBPF programs. On default Red Hat Enterprise Linux installations, unprivileged access to the eBPF subsystem is disabled, preventing unprivileged local users from reaching the affected JIT compiler. As a result, successful exploitation is limited to privileged administrators or workloads possessing CAP_BPF or CAP_SYS_ADMIN capabilities.

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 HatNVDcve.org
Base Score6.7N/AN/A
Attack VectorLocalN/AN/A
Attack ComplexityLowN/AN/A
Privileges RequiredHighN/AN/A
User InteractionNoneN/AN/A
ScopeUnchangedN/AN/A
ConfidentialityHighN/AN/A
Integrity ImpactHighN/AN/A
Availability ImpactHighN/AN/A

Vector

Red Hat: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Understanding the Weakness (CWE)

Integrity

Technical Impact: Modify Memory; Execute Unauthorized Code or Commands

Write operations could cause memory corruption. In some cases, an adversary can modify control data such as return addresses in order to execute unexpected code.

Availability

Technical Impact: DoS: Crash, Exit, or Restart

Attempting to access out-of-range, invalid, or unauthorized memory could cause the product to crash.

Other

Technical Impact: Unexpected State

Subsequent write operations can produce undefined or unexpected results.

Frequently Asked Questions

Want to get errata notifications? Sign up here.