CVE-2023-53396

ubifs: Fix memory leak in do_rename

MEDIUM
5.5
CVSS Score
Published: September 18, 2025 at 01:33 PM UTC
Updated: June 17, 2026 at 06:45 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.16.19v ≥ 5.17.25.15.33 ≤ v < 5.15.1125.16.19 ≤ v < 5.175.17.2 ≤ v < 5.185.17.2 ≤ v < 6.1.285.18 ≤ v < 6.1.285.18 ≤ v < 6.2.155.18 ≤ v < 6.3.25.18 ≤ v < 6.46.2 ≤ v < 6.2.156.3 ≤ v < 6.3.217495eb2f7f08113b50aba298c2c1a045824c4f7278d9a243635f26c05ad95dcf9c5a593b9e04dc65.15.335.16.195.17.25.18868de33a39e0e1e91ed3ce4a23a65f30144d2443c67bc98d1f0853bb196e9c48eab38b6f2ddab795
Vendor states this is fixed in 3a36d20e012903f45714df2731261fdefac900cb (fixed)
Vendor states this is fixed in 43b2f7d690697182beed6f71aa57b7249d3cfc9c (fixed)
Vendor states this is fixed in 517ddc0259d7a7231486bdafde8035c478bc4088 (fixed)
Vendor states this is fixed in 7e264f67b7d6580eff5c2696961039fd05c69258 (fixed)
Vendor states this is fixed in 9f565752b328fe53c9e42b7d4e4d89a1da63d738 (fixed)
Vendor states this is fixed in 5.15.112 (unaffected)
Affected range stops below 5.17, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5.18 (unaffected)
Vendor states this is fixed in 6.1.28 (unaffected)
Vendor states this is fixed in 6.2.15 (unaffected)
Vendor states this is fixed in 6.3.2 (unaffected)
Vendor states this is fixed in 6.4 (unaffected)

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card