CVE-2025-38339

Description

A flaw was found in the Linux kernel's Berkeley Packet Filter (BPF) Just-In-Time (JIT) compiler on PowerPC architectures. When sizing memory for BPF trampolines—mechanisms used to intercept and monitor kernel functions—the compiler can underestimate the buffer size needed for the generated machine code. A local user with privileges to load and attach BPF programs could exploit this calculation error to trigger a buffer overflow, potentially leading to a kernel crash and Denial of Service (DoS).

Statement

This vulnerability poses no direct security risk to supported Red Hat Enterprise Linux products because the vulnerable powerpc BPF trampoline logic is not present in shipped kernels. The issue is restricted to the JIT compilation logic on PowerPC architectures introduced in later upstream kernels. Furthermore, exploiting the condition would require local access with privileges to load and attach BPF trampolines.

Understanding the Weakness (CWE)

Integrity,Availability,Confidentiality

Technical Impact: DoS: Crash, Exit, or Restart; Execute Unauthorized Code or Commands; Read Memory; Modify Memory

If the incorrect calculation is used in the context of memory allocation, then the software may create a buffer that is smaller or larger than expected. If the allocated buffer is smaller than expected, this could lead to an out-of-bounds read or write (CWE-119), possibly causing a crash, allowing arbitrary code execution, or exposing sensitive data.

Frequently Asked Questions

Want to get errata notifications? Sign up here.