CVE-2023-54050
Unknown Unknown - Not Provided

Memory Leak in Linux Kernel UBIFS Due to insert_old_idx Failure

Vulnerability report for CVE-2023-54050, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2025-12-24

Last updated on: 2025-12-24

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: ubifs: Fix memleak when insert_old_idx() failed Following process will cause a memleak for copied up znode: dirty_cow_znode zn = copy_znode(c, znode); err = insert_old_idx(c, zbr->lnum, zbr->offs); if (unlikely(err)) return ERR_PTR(err); // No one refers to zn. Fetch a reproducer in [Link]. Function copy_znode() is split into 2 parts: resource allocation and znode replacement, insert_old_idx() is split in similar way, so resource cleanup could be done in error handling path without corrupting metadata(mem & disk). It's okay that old index inserting is put behind of add_idx_dirt(), old index is used in layout_leb_in_gaps(), so the two processes do not depend on each other.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2025-12-24
Last Modified
2025-12-24
Generated
2026-07-06
AI Q&A
2025-12-24
EPSS Evaluated
2026-07-05
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
linux linux_kernel *
linux kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a memory leak in the Linux kernel's UBIFS subsystem. It occurs when the function insert_old_idx() fails after a znode is copied using copy_znode(). In this failure case, the copied znode is not properly referenced or cleaned up, leading to a memory leak. The fix involves splitting the copy_znode() and insert_old_idx() functions into parts to ensure proper resource cleanup during error handling without corrupting metadata.

Impact Analysis

The memory leak caused by this vulnerability can lead to increased memory usage over time, potentially degrading system performance or causing resource exhaustion on systems using the affected Linux kernel UBIFS subsystem.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2023-54050. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart