CVE-2023-53396

ubifs: Fix memory leak in do_rename

Medium · published September 18, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
3.9
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

ubifs: Fix memory leak in do_rename

If renaming a file in an encrypted directory, function

fscrypt_setup_filename allocates memory for a file name. This name is

never used, and before returning to the caller the memory for it is not

freed.

When running kmemleak on it we see that it is registered as a leak. The

report below is triggered by a simple program 'rename' that renames a

file in an encrypted directory:

unreferenced object 0xffff888101502840 (size 32):

comm "rename", pid 9404, jiffies 4302582475 (age 435.735s)

backtrace:

__kmem_cache_alloc_node

__kmalloc

fscrypt_setup_filename

do_rename

ubifs_rename

vfs_rename

do_renameat2

To fix this we can remove the call to fscrypt_setup_filename as it's not

needed.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00151 · 3.9th percentile
Published
2025-09-18T13:33Z
EPSS history
Timeline
  • 18 SEP 13:33Z
    ubifs: Fix memory leak in do_rename
    cvelistv5