# CVE-2023-53276: ubifs: Free memory for tmpfile name

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-09-16T08:11:11.328Z
- **Modified:** 2026-06-17T06:44:42.973Z

## Who should check

- Anyone running Linux \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< 8ad8c67a897e68426e85990ebfe0a7d1f71fc79f; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< 107d481642c356a5668058066360fc473911e628; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< 823f554747f8aafaa965fb2f3ae794110ed429ef; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< b8f444a4fadfb5070ed7e298e0a5ceb4a18014f3; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< ce840284929b75dbbf062e0ce7fcb78a63b08b5e; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< 29738e1bcc799dd754711d4e4aab967f0c018175; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< fd197308c0e4f738c7ea687d5332035c5753881c; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< 1e43d4284bdc3bd34bd770fea13910ac37ab0618; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< 1fb815b38bb31d6af9bd0540b8652a0d6fe6cfd3
- Anyone running Linux 4.10

## Description

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

ubifs: Free memory for tmpfile name

When opening a ubifs tmpfile on an encrypted directory, function
fscrypt\_setup\_filename allocates memory for the name that is to be
stored in the directory entry, but after the name has been copied to the
directory entry inode, the memory 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 'tmpfile' just opening a
tmpfile:

  unreferenced object 0xffff88810178f380 (size 32):
    comm "tmpfile", pid 509, jiffies 4294934744 (age 1524.742s)
    backtrace:
      \_\_kmem\_cache\_alloc\_node
      \_\_kmalloc
      fscrypt\_setup\_filename
      ubifs\_tmpfile
      vfs\_tmpfile
      path\_openat

Free this memory after it has been copied to the inode.

## Affected and fixed versions

- Linux: \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< 8ad8c67a897e68426e85990ebfe0a7d1f71fc79f; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< 107d481642c356a5668058066360fc473911e628; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< 823f554747f8aafaa965fb2f3ae794110ed429ef; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< b8f444a4fadfb5070ed7e298e0a5ceb4a18014f3; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< ce840284929b75dbbf062e0ce7fcb78a63b08b5e; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< 29738e1bcc799dd754711d4e4aab967f0c018175; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< fd197308c0e4f738c7ea687d5332035c5753881c; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< 1e43d4284bdc3bd34bd770fea13910ac37ab0618; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< 1fb815b38bb31d6af9bd0540b8652a0d6fe6cfd3 (cvelist)
- Linux: 4.10 (cvelist)

## Mitigation

- Upgrade Linux to 1fb815b38bb31d6af9bd0540b8652a0d6fe6cfd3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53276. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53276.md
Affected: Linux >= f4f61d2cc6d8789a52245a4733b3e5643be154f3, < 8ad8c67a897e68426e85990ebfe0a7d1f71fc79f; >= f4f61d2cc6d8789a52245a4733b3e5643be154f3, < 107d481642c356a5668058066360fc473911e628; >= f4f61d2cc6d8789a52245a4733b3e5643be154f3, < 823f554747f8aafaa965fb2f3ae794110ed429ef; >= f4f61d2cc6d8789a52245a4…
Fixed in: Linux 8ad8c67a897e68426e85990ebfe0a7d1f71fc79f, Linux 107d481642c356a5668058066360fc473911e628, Linux 823f554747f8aafaa965fb2f3ae794110ed429ef, Linux 29738e1bcc799dd754711d4e4aab967f0c018175, Linux 1e43d4284bdc3bd34bd770fea13910ac37ab0618, Linux 1fb815b38bb31d6af9bd0540b8652a0d6fe6cfd3

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53276 being exploited?

There is no confirmed exploitation: CVE-2023-53276 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53276?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53276?

Linux \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< 8ad8c67a897e68426e85990ebfe0a7d1f71fc79f; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< 107d481642c356a5668058066360fc473911e628; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< 823f554747f8aafaa965fb2f3ae794110ed429ef; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< b8f444a4fadfb5070ed7e298e0a5ceb4a18014f3; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< ce840284929b75dbbf062e0ce7fcb78a63b08b5e; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< 29738e1bcc799dd754711d4e4aab967f0c018175; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< fd197308c0e4f738c7ea687d5332035c5753881c; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< 1e43d4284bdc3bd34bd770fea13910ac37ab0618; \>= f4f61d2cc6d8789a52245a4733b3e5643be154f3, \< 1fb815b38bb31d6af9bd0540b8652a0d6fe6cfd3; Linux 4.10.

### Is there a fix for CVE-2023-53276?

Yes. Fixed in Linux 8ad8c67a897e68426e85990ebfe0a7d1f71fc79f, Linux 107d481642c356a5668058066360fc473911e628, Linux 823f554747f8aafaa965fb2f3ae794110ed429ef, Linux 29738e1bcc799dd754711d4e4aab967f0c018175, Linux 1e43d4284bdc3bd34bd770fea13910ac37ab0618, Linux 1fb815b38bb31d6af9bd0540b8652a0d6fe6cfd3. Upgrade Linux to 1fb815b38bb31d6af9bd0540b8652a0d6fe6cfd3 or later.

### How do I check if I'm affected by CVE-2023-53276?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/8ad8c67a897e68426e85990ebfe0a7d1f71fc79f>
- patch: <https://git.kernel.org/stable/c/107d481642c356a5668058066360fc473911e628>
- patch: <https://git.kernel.org/stable/c/823f554747f8aafaa965fb2f3ae794110ed429ef>
- patch: <https://git.kernel.org/stable/c/b8f444a4fadfb5070ed7e298e0a5ceb4a18014f3>
- patch: <https://git.kernel.org/stable/c/ce840284929b75dbbf062e0ce7fcb78a63b08b5e>
- patch: <https://git.kernel.org/stable/c/29738e1bcc799dd754711d4e4aab967f0c018175>
- patch: <https://git.kernel.org/stable/c/fd197308c0e4f738c7ea687d5332035c5753881c>
- patch: <https://git.kernel.org/stable/c/1e43d4284bdc3bd34bd770fea13910ac37ab0618>
- patch: <https://git.kernel.org/stable/c/1fb815b38bb31d6af9bd0540b8652a0d6fe6cfd3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53276>

HTML: <https://flawdb.com/CVE-2023-53276> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53276>
