CVE-2025-21830

Description

From CVE.org

In the Linux kernel, the following vulnerability has been resolved: landlock: Handle weird files A corrupted filesystem (e.g. bcachefs) might return weird files. Instead of throwing a warning and allowing access to such file, treat them as regular files.

Statement

A flaw was found in the Linux kernel's Landlock security module. When a corrupted filesystem (for example, bcachefs) returns a file with an unexpected file type, Landlock logged a warning and allowed access to that file instead of applying its access-control rules, so an unprivileged local user could gain access to a file that Landlock restrictions should have blocked. Red Hat rates this issue as Low impact for the kernel and kernel-rt packages in Red Hat Enterprise Linux 9 and 10 and in Red Hat In-Vehicle OS 1, which are affected. Red Hat Enterprise Linux 6, 7, and 8 are not affected because the Landlock code was introduced upstream in kernel version 5.13 and the vulnerable code is not present in those releases. The fix for the affected streams is deferred: because of the low severity and the unusual preconditions required, it is planned for a future update rather than an immediate erratum, and the residual risk until then is considered low since triggering the flaw requires a corrupted filesystem that returns files with unexpected file types. This Red Hat Low rating is lower than the upstream CVE.org severity of Important (7.3) because Red Hat assesses the practical impact, given the required preconditions, as limited.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

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 Score5.55.57.3
Attack VectorLocalLocalLocal
Attack ComplexityLowLowLow
Privileges RequiredLowLowLow
User InteractionNoneNoneNone
ScopeUnchangedUnchangedChanged
ConfidentialityNoneNoneNone
Integrity ImpactNoneNoneLow
Availability ImpactHighHighHigh

Vector

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

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

cve.org: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H

Understanding the Weakness (CWE)

Availability

Technical Impact: DoS: Crash, Exit, or Restart; DoS: Resource Consumption (CPU); DoS: Resource Consumption (Memory)

An attacker could provide unexpected values and cause a program crash or arbitrary control of resource allocation, leading to excessive consumption of resources such as memory and CPU.

Confidentiality

Technical Impact: Read Memory; Read Files or Directories

An attacker could read confidential data if they are able to control resource references.

Integrity,Confidentiality,Availability

Technical Impact: Modify Memory; Execute Unauthorized Code or Commands

An attacker could use malicious input to modify data or possibly alter control flow in unexpected ways, including arbitrary command execution.

Frequently Asked Questions

Want to get errata notifications? Sign up here.