Skip to contentSkip to conversation

CVE-2026-72225: jbd2: fix integer underflow in jbd2_journal_initialize_fast_commit()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

lore
Share & tools
lore
#0 lore raw

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

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

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

jbd2: fix integer underflow in jbd2_journal_initialize_fast_commit()

jbd2_journal_initialize_fast_commit() validates journal capacity by checking (journal->j_last - num_fc_blks < JBD2_MIN_JOURNAL_BLOCKS). Both j_last and num_fc_blks are unsigned, so when num_fc_blks exceeds j_last the subtraction wraps to a large value, bypassing the bounds check.

The resulting underflow corrupts j_last, j_fc_first, and j_free, leading to journal abort.

Fix by checking num_fc_blks against j_last before the subtraction, returning -EFSCORRUPTED.

The Linux kernel CVE team has assigned CVE-2026-72225 to this issue.

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

	Issue introduced in 5.10 with commit 6866d7b3f2bb4f011041ba54c98b1584497fe2fd and fixed in 5.15.212 with commit e144ad0250f77e23e28949587b8b57e40dc3b512
	Issue introduced in 5.10 with commit 6866d7b3f2bb4f011041ba54c98b1584497fe2fd and fixed in 6.1.178 with commit 4b48dcb88bb9117e3d3f051175a9a8b7cff7f8b6
	Issue introduced in 5.10 with commit 6866d7b3f2bb4f011041ba54c98b1584497fe2fd and fixed in 6.6.145 with commit fb9b49618ed7296ebfad62a3835da8945f727001
	Issue introduced in 5.10 with commit 6866d7b3f2bb4f011041ba54c98b1584497fe2fd and fixed in 6.12.97 with commit 4450dcaadf7d4aae8b6e4223b5d6ee4eb77097a9
	Issue introduced in 5.10 with commit 6866d7b3f2bb4f011041ba54c98b1584497fe2fd and fixed in 6.18.40 with commit 78955fdce8ff654e6d33a2fa90882a1e7eb26330
	Issue introduced in 5.10 with commit 6866d7b3f2bb4f011041ba54c98b1584497fe2fd and fixed in 7.1.5 with commit a58fc10adf503969fec2007b5afe8987258046c4
	Issue introduced in 5.10 with commit 6866d7b3f2bb4f011041ba54c98b1584497fe2fd and fixed in 7.2-rc1 with commit 289a2ca0c9b7eae74f93fc213b0b971669b8683d

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-2026-72225

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/jbd2/journal.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/e144ad0250f77e23e28949587b8b57e40dc3b512
	https://git.kernel.org/stable/c/4b48dcb88bb9117e3d3f051175a9a8b7cff7f8b6
	https://git.kernel.org/stable/c/fb9b49618ed7296ebfad62a3835da8945f727001
	https://git.kernel.org/stable/c/4450dcaadf7d4aae8b6e4223b5d6ee4eb77097a9
	https://git.kernel.org/stable/c/78955fdce8ff654e6d33a2fa90882a1e7eb26330
	https://git.kernel.org/stable/c/a58fc10adf503969fec2007b5afe8987258046c4
	https://git.kernel.org/stable/c/289a2ca0c9b7eae74f93fc213b0b971669b8683d