CVE Database›Document archive›CVE-2023-53662

CVE-2023-53662

kernel: ext4: fix memory leaks in ext4_fname_{setup_filename,prepare_lookup}

Loading…

Severity

Low

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · October 7, 2025

Updated · June 30, 2026

Description

A memory leak flaw was found in the Linux kernel's ext4 filesystem in the filename casefolding error paths. A local user can trigger this issue by performing directory operations on ext4 filesystems with casefolding enabled when filename setup or lookup operations fail, causing the crypto_buf.name field from the fscrypt_name structure to remain allocated. This results in permanent memory leaks leading to resource exhaustion and denial of service.

Statement

The ext4_fname_setup_filename and ext4_fname_prepare_lookup functions handle filename preparation for encrypted and casefolded filesystems. When casefolding operations fail, the error paths return immediately without freeing the crypto_buf.name buffer that was allocated earlier during fscrypt setup. Since these functions are called for every filename operation on casefolded ext4 filesystems, repeated failures can accumulate significant memory leaks.

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 · 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE-772 · Missing Release of Resource after Effective Lifetime