CVE-2025-40241

Description

A flaw was found in the Linux kernel's EROFS (Enhanced Read-Only File System) component. Improper validation of encoded extent boundaries allows an integer wraparound and subsequent out-of-bounds memory access. A local attacker could exploit this vulnerability by mounting or processing a specially crafted filesystem image to trigger a system crash, resulting in a Denial of Service (DoS).

Statement

This vulnerability poses no security risk to supported Red Hat products because the affected functionality is not present in Red Hat Enterprise Linux kernels. The issue stems from boundary validation flaws when handling specially crafted filesystem images with encoded extents, a feature introduced in newer upstream development kernels. As this code is not part of supported enterprise releases, Red Hat environments are not affected.

Understanding the Weakness (CWE)

Confidentiality

Technical Impact: Read Memory

An attacker could get secret values such as cryptographic keys, PII, memory addresses, or other information that could be used in additional attacks.

Confidentiality

Technical Impact: Bypass Protection Mechanism

Out-of-bounds memory could contain memory addresses or other information that can be used to bypass ASLR and other protection mechanisms in order to improve the reliability of exploiting a separate weakness for code execution.

Availability

Technical Impact: DoS: Crash, Exit, or Restart

An attacker could cause a segmentation fault or crash by causing memory to be read outside of the bounds of the buffer. This is especially likely when the code reads a variable amount of data and assumes that a sentinel exists to stop the read operation, such as a NUL in a string.

Other

Technical Impact: Varies by Context

The read operation could produce other undefined or unexpected results.

Frequently Asked Questions

Want to get errata notifications? Sign up here.