lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025091514-CVE-2023-53227-6a15@gregkh>
Date: Mon, 15 Sep 2025 16:22:01 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2023-53227: ubifs: dirty_cow_znode: Fix memleak in error handling path

From: Greg Kroah-Hartman <gregkh@...nel.org>

Description
===========

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

ubifs: dirty_cow_znode: Fix memleak in error handling path

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.

Fix it by adding copied znode back to tnc, then it will be freed
by ubifs_destroy_tnc_subtree() while closing tnc.

Fetch a reproducer in [Link].

The Linux kernel CVE team has assigned CVE-2023-53227 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 2.6.27 with commit 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d and fixed in 4.14.308 with commit 011050fc471cd0b32410694facb47bac20e7262b
	Issue introduced in 2.6.27 with commit 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d and fixed in 4.19.276 with commit 5759076fc7c54614084002345a21bc2c578bf4a8
	Issue introduced in 2.6.27 with commit 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d and fixed in 5.4.235 with commit 510b80abe8d2d89e4ff21d71f1804ba2e5d3a96b
	Issue introduced in 2.6.27 with commit 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d and fixed in 5.10.173 with commit 9d4768523b092bfb9a9bfa6b1d903b968c8008cf
	Issue introduced in 2.6.27 with commit 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d and fixed in 5.15.100 with commit 10b6c359e374df1120b951768260083ef047d7fb
	Issue introduced in 2.6.27 with commit 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d and fixed in 6.1.18 with commit 76c488e8a0e2783c6d8753cb7354a420593e8c30
	Issue introduced in 2.6.27 with commit 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d and fixed in 6.2.5 with commit bbcf899036eeb98c3a938fb08946c6b52771f71c
	Issue introduced in 2.6.27 with commit 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d and fixed in 6.3 with commit 122deabfe1428bffe95e2bf364ff8a5059bdf089

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2023-53227
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	fs/ubifs/tnc.c


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	https://git.kernel.org/stable/c/011050fc471cd0b32410694facb47bac20e7262b
	https://git.kernel.org/stable/c/5759076fc7c54614084002345a21bc2c578bf4a8
	https://git.kernel.org/stable/c/510b80abe8d2d89e4ff21d71f1804ba2e5d3a96b
	https://git.kernel.org/stable/c/9d4768523b092bfb9a9bfa6b1d903b968c8008cf
	https://git.kernel.org/stable/c/10b6c359e374df1120b951768260083ef047d7fb
	https://git.kernel.org/stable/c/76c488e8a0e2783c6d8753cb7354a420593e8c30
	https://git.kernel.org/stable/c/bbcf899036eeb98c3a938fb08946c6b52771f71c
	https://git.kernel.org/stable/c/122deabfe1428bffe95e2bf364ff8a5059bdf089

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ