Skip to contentSkip to conversation

CVE-2026-31451: ext4: replace BUG_ON with proper error handling in ext4_read_inline_folio

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 22

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: replace BUG_ON with proper error handling in ext4_read_inline_folio

Replace BUG_ON() with proper error handling when inline data size exceeds PAGE_SIZE. This prevents kernel panic and allows the system to continue running while properly reporting the filesystem corruption.

The error is logged via ext4_error_inode(), the buffer head is released to prevent memory leak, and -EFSCORRUPTED is returned to indicate filesystem corruption.

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

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

	Fixed in 6.6.131 with commit 65c6c30ce6362c1c684568744ea510c921a756cd
	Fixed in 6.12.80 with commit d4b3f370c3d8f7ce565d4a718572c9f7c12f77ed
	Fixed in 6.18.21 with commit 823849a26af089ffc5dfdd2ae4b9d446b46a0cda
	Fixed in 6.19.11 with commit a7d600e04732a7d29b107c91fe3aec64cf6ce7f2
	Fixed in 7.0 with commit 356227096eb66e41b23caf7045e6304877322edf

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

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/inline.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/65c6c30ce6362c1c684568744ea510c921a756cd
	https://git.kernel.org/stable/c/d4b3f370c3d8f7ce565d4a718572c9f7c12f77ed
	https://git.kernel.org/stable/c/823849a26af089ffc5dfdd2ae4b9d446b46a0cda
	https://git.kernel.org/stable/c/a7d600e04732a7d29b107c91fe3aec64cf6ce7f2
	https://git.kernel.org/stable/c/356227096eb66e41b23caf7045e6304877322edf