CVE Database›Document archive›CVE-2025-38172

CVE-2025-38172

kernel: Linux kernel erofs: Use-After-Free due to device type mismatch

Loading…

Severity

Moderate

Red Hat Product Security

7.3

CVSS 3.1

Review impact separately from score.

Published · July 3, 2025

Updated · October 30, 2026

Description

A flaw was found in the Linux kernel's erofs filesystem. A local attacker could exploit a use-after-free (UAF) vulnerability by mounting an erofs filesystem with a specific configuration where the primary and extra devices have mismatched types. This improper handling of device initialization errors could lead to a system crash (denial of service) or potentially allow a local attacker to execute arbitrary code, thereby gaining full control over the affected system.

Statement

This vulnerability is rated as Moderate impact for Red Hat Enterprise Linux because exploitation requires local privileges to mount filesystems or access to unprivileged user namespaces. Standard enterprise deployments rarely utilize EROFS, limiting exposure to environments permitting untrusted filesystem mounts. Red Hat Enterprise Linux 8 and 9 do not contain the affected device handling logic and are not vulnerable.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

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

CWE-390 · Detection of Error Condition Without Action