CVE-2026-93268: ext4: skip extra isize expansion during mount to prevent deadlock
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ext4: skip extra isize expansion during mount to prevent deadlock
ext4_try_to_expand_extra_isize() is called from __ext4_mark_inode_dirty() while holding an active jbd2 handle. During mount (!SB_ACTIVE), the expand path may move xattrs to external blocks and release ea_inodes via iput(). When !SB_ACTIVE, iput() calls write_inode_now() which acquires s_writepages_rwsem, creating a circular lock dependency:
s_writepages_rwsem --> jbd2_handle --> xattr_sem --> s_writepages_rwsem
This can be triggered via:
ext4_process_orphan() -> ext4_truncate() -> ext4_mark_inode_dirty()
-> ext4_try_to_expand_extra_isize()
or:
ext4_evict_inode() -> ext4_mark_inode_dirty()
-> ext4_try_to_expand_extra_isize()
Skip expansion when !SB_ACTIVE. This is a minor loss of functionality (extra isize won't grow for these inodes during mount), which e2fsck can resolve later if needed.
The Linux kernel CVE team has assigned CVE-2026-93268 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.7 with commit c8585c6fcaf2011de54c3592e80a634a2b9e1a7f and fixed in 5.10.270 with commit 41897f1bcf4ace5f1f28d0be784b6f4f0e929641 Issue introduced in 4.7 with commit c8585c6fcaf2011de54c3592e80a634a2b9e1a7f and fixed in 5.15.221 with commit 9c3469377b1d8caba6bec6ef3c460810bbfb02cc Issue introduced in 4.7 with commit c8585c6fcaf2011de54c3592e80a634a2b9e1a7f and fixed in 6.1.188 with commit 1dd4882dbdc8bfdf2182fa388883c143fac0902a Issue introduced in 4.7 with commit c8585c6fcaf2011de54c3592e80a634a2b9e1a7f and fixed in 6.6.157 with commit 7ba09330d9ea6e996228316719eae812d7e04983 Issue introduced in 4.7 with commit c8585c6fcaf2011de54c3592e80a634a2b9e1a7f and fixed in 6.12.110 with commit c5e6434cc55f30220b228be237bb666351f9f4dd Issue introduced in 4.7 with commit c8585c6fcaf2011de54c3592e80a634a2b9e1a7f and fixed in 6.18.52 with commit 7ace189b9ea79cf78df9c32b940ce12735f9459a Issue introduced in 4.7 with commit c8585c6fcaf2011de54c3592e80a634a2b9e1a7f and fixed in 7.2.6 with commit 2fb8ff81659a57c42bb7b49e8339a2be2a318ef8 Issue introduced in 4.7 with commit c8585c6fcaf2011de54c3592e80a634a2b9e1a7f and fixed in 7.3-rc1 with commit 7461c60b9c6a839b13ad4c3490681a0cf5aa0637
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-93268
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/inode.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/41897f1bcf4ace5f1f28d0be784b6f4f0e929641 https://git.kernel.org/stable/c/9c3469377b1d8caba6bec6ef3c460810bbfb02cc https://git.kernel.org/stable/c/1dd4882dbdc8bfdf2182fa388883c143fac0902a https://git.kernel.org/stable/c/7ba09330d9ea6e996228316719eae812d7e04983 https://git.kernel.org/stable/c/c5e6434cc55f30220b228be237bb666351f9f4dd https://git.kernel.org/stable/c/7ace189b9ea79cf78df9c32b940ce12735f9459a https://git.kernel.org/stable/c/2fb8ff81659a57c42bb7b49e8339a2be2a318ef8 https://git.kernel.org/stable/c/7461c60b9c6a839b13ad4c3490681a0cf5aa0637