[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025100701-CVE-2022-50512-f95b@gregkh>
Date: Tue, 7 Oct 2025 17:18:59 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-50512: ext4: fix potential memory leak in ext4_fc_record_regions()
From: Greg Kroah-Hartman <gregkh@...nel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ext4: fix potential memory leak in ext4_fc_record_regions()
As krealloc may return NULL, in this case 'state->fc_regions' may not be
freed by krealloc, but 'state->fc_regions' already set NULL. Then will
lead to 'state->fc_regions' memory leak.
The Linux kernel CVE team has assigned CVE-2022-50512 to this issue.
Affected and fixed versions
===========================
Fixed in 5.10.150 with commit 2cfb769d60a2a57eb3566765428b6131cd16dcfe
Fixed in 5.15.75 with commit 417b0455a0b6d0f60a2930592731d1f8340e24be
Fixed in 5.19.17 with commit a4058b869e6c5e517c79e30532a350d0f3115c3e
Fixed in 6.0.3 with commit 518566e71ad86b7c2f1bf6d9caee9588bb7ac158
Fixed in 6.1 with commit 7069d105c1f15c442b68af43f7fde784f3126739
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-2022-50512
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/ext4/fast_commit.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/2cfb769d60a2a57eb3566765428b6131cd16dcfe
https://git.kernel.org/stable/c/417b0455a0b6d0f60a2930592731d1f8340e24be
https://git.kernel.org/stable/c/a4058b869e6c5e517c79e30532a350d0f3115c3e
https://git.kernel.org/stable/c/518566e71ad86b7c2f1bf6d9caee9588bb7ac158
https://git.kernel.org/stable/c/7069d105c1f15c442b68af43f7fde784f3126739
Powered by blists - more mailing lists