# CVE-2023-53396: ubifs: Fix memory leak in do_rename

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-09-18T13:33:37.360Z
- Modified: 2026-06-17T06:45:12.623Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from c67bc98d1f0853bb196e9c48eab38b6f2ddab795 before 43b2f7d690697182beed6f71aa57b7249d3cfc9c; from 278d9a243635f26c05ad95dcf9c5a593b9e04dc6 before 9f565752b328fe53c9e42b7d4e4d89a1da63d738; from 278d9a243635f26c05ad95dcf9c5a593b9e04dc6 before 7e264f67b7d6580eff5c2696961039fd05c69258; from 278d9a243635f26c05ad95dcf9c5a593b9e04dc6 before 517ddc0259d7a7231486bdafde8035c478bc4088; from 278d9a243635f26c05ad95dcf9c5a593b9e04dc6 before 3a36d20e012903f45714df2731261fdefac900cb; 17495eb2f7f08113b50aba298c2c1a045824c4f7; 868de33a39e0e1e91ed3ce4a23a65f30144d2443; from 5.15.33 before 5.15.112; from 5.16.19 before 5.17; from 5.17.2 before 5.18; 5.18 (not affected: before 5.18; from 5.15.112 up to 5.15.*; from 6.1.28 up to 6.1.*; from 6.2.15 up to 6.2.*; from 6.3.2 up to 6.3.*; from 6.4 up to *)
- linux linux_kernel: from 5.15.33 before 5.15.112; from 5.16.19 before 5.17; from 5.17.2 before 6.1.28; from 6.2 before 6.2.15; from 6.3 before 6.3.2

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/43b2f7d690697182beed6f71aa57b7249d3cfc9c> (patch)
- <https://git.kernel.org/stable/c/9f565752b328fe53c9e42b7d4e4d89a1da63d738> (patch)
- <https://git.kernel.org/stable/c/7e264f67b7d6580eff5c2696961039fd05c69258> (patch)
- <https://git.kernel.org/stable/c/517ddc0259d7a7231486bdafde8035c478bc4088> (patch)
- <https://git.kernel.org/stable/c/3a36d20e012903f45714df2731261fdefac900cb> (patch)

## Sources

- CVE List: [CVE-2023-53396](https://www.cve.org/CVERecord?id=CVE-2023-53396), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2023-53396](https://nvd.nist.gov/vuln/detail/CVE-2023-53396), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53396 · Whole record: https://cve.day/CVE-2023-53396.json · Rebuilt by cve.day 2026-11-25T22:58:34.866Z
