CVE-2023-54050

Source
https://cve.org/CVERecord?id=CVE-2023-54050
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54050.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-54050
Downstream
Related
Published
2025-12-24T12:23:00.366Z
Modified
2026-03-20T12:33:25.328858Z
Summary
ubifs: Fix memleak when insert_old_idx() failed
Details

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

ubifs: Fix memleak when insertoldidx() failed

Following process will cause a memleak for copied up znode:

dirtycowznode zn = copyznode(c, znode); err = insertoldidx(c, zbr->lnum, zbr->offs); if (unlikely(err)) return ERRPTR(err); // No one refers to zn.

Fetch a reproducer in [Link].

Function copyznode() is split into 2 parts: resource allocation and znode replacement, insertoldidx() 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 addidxdirt(), old index is used in layoutlebingaps(), so the two processes do not depend on each other.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54050.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d
Fixed
cc29c7216d7f057eb0613b97dc38c7e1962a88d2
Fixed
6f2eee5457bc48b0426dedfd78cdbdea241a6edb
Fixed
66e9f2fb3e753f820bec2a98e8c6387029988320
Fixed
3ae75f82c33fa1b4ca2006b55c84f4ef4a428d4d
Fixed
ef9aac603659e9ffe7d69ae16e3f0fc0991a965b
Fixed
79079cebbeed624b9d01cfcf1e3254ae1a1f6e14
Fixed
a6da0ab9847779e05a7416c7a98148b549de69ef
Fixed
b5fda08ef213352ac2df7447611eb4d383cce929

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54050.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.27
Fixed
4.19.283
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.243
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.180
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.111
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.28
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.2.15
Type
ECOSYSTEM
Events
Introduced
6.3.0
Fixed
6.3.2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54050.json"