Skip to contentSkip to conversation

CVE-2022-50465: ext4: fix leaking uninitialized memory in fast-commit journal

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 1, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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

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

ext4: fix leaking uninitialized memory in fast-commit journal

When space at the end of fast-commit journal blocks is unused, make sure to zero it out so that uninitialized memory is not leaked to disk.

The Linux kernel CVE team has assigned CVE-2022-50465 to this issue.

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

	Issue introduced in 5.10 with commit aa75f4d3daaeb1389b9cce9d6b84401eaf228d4e and fixed in 5.10.163 with commit b8b7922374b00a44137e5bcdd46ef86c8b065f27
	Issue introduced in 5.10 with commit aa75f4d3daaeb1389b9cce9d6b84401eaf228d4e and fixed in 5.15.87 with commit 871800770d7f2f952c7249ad52485c3564dab44e
	Issue introduced in 5.10 with commit aa75f4d3daaeb1389b9cce9d6b84401eaf228d4e and fixed in 6.0.18 with commit d9ba03eb03dc2dccb5450de388ea46bdcaaf8348
	Issue introduced in 5.10 with commit aa75f4d3daaeb1389b9cce9d6b84401eaf228d4e and fixed in 6.1.4 with commit 7c1fb65e8ce85c281d2cba9c236f9edbbc4eaca6
	Issue introduced in 5.10 with commit aa75f4d3daaeb1389b9cce9d6b84401eaf228d4e and fixed in 6.2 with commit 594bc43b410316d70bb42aeff168837888d96810

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-50465

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/b8b7922374b00a44137e5bcdd46ef86c8b065f27
	https://git.kernel.org/stable/c/871800770d7f2f952c7249ad52485c3564dab44e
	https://git.kernel.org/stable/c/d9ba03eb03dc2dccb5450de388ea46bdcaaf8348
	https://git.kernel.org/stable/c/7c1fb65e8ce85c281d2cba9c236f9edbbc4eaca6
	https://git.kernel.org/stable/c/594bc43b410316d70bb42aeff168837888d96810