CVE-2026-142841: ext4: skip extra isize expansion while unmounting
In the Linux kernel, the following vulnerability has been resolved:
ext4: skip extra isize expansion while unmounting
syzbot reports a WARN from ext4xattrinodecreate() reached through the unmount path:
EXT4-fs warning (device loop0): ext4xattrinodecreate:1485: refuse to create EA inode when umounting WARNING: fs/ext4/xattr.c:1486 at ext4xattrinodelookupcreate ext4xattrblockset ext4expandextraisizeea ext4expandextraisize ext4markinodedirty ext4dirtyinode markinodedirty synclazytime iput dentrykill shrinkdentrylist shrinkdcacheforumount genericshutdownsuper killblocksuper ext4killsb
shrinkdcacheforumount() clears sroot before genericshutdownsuper() clears SBACTIVE, so during the dcache shrink the last iput() of a lazytime inode still redirties it and reaches the isize expansion. The expansion can move xattrs out to a block, and creating the EA inode for them needs sroot, which ext4xattrinodecreate() refuses without.
ext4trytoexpandextraisize() already declines to expand when the superblock is not active, but that test does not cover this window. Decline while sroot is gone as well. The expansion is best effort and ext4markinodedirty() ignores its return value, so nothing else changes; the inode can be expanded on a later mount.
Running the syzbot reproducer for 60 seconds produced 3583 splats before this change and none after it, with the same number of mount cycles.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel with ext4 filesystems may encounter it during unmount. The reported path involves a lazytime inode whose final reference is dropped while the dcache is being shrunk for unmount.
What conditions trigger the warning?
The issue occurs in the interval after the ext4 superblock root has been cleared but before the superblock is marked inactive. If dirtying the final lazytime inode attempts extra inode-size expansion and xattrs must be moved out, ext4 can attempt EA inode creation without an available s_root.
How can I tell whether this has occurred?
Kernel logs may contain an EXT4-fs warning for ext4_xattr_inode_create stating that it refused to create an EA inode while unmounting. The stack trace can include ext4_expand_extra_isize_ea, ext4_dirty_inode, sync_lazytime, iput, shrink_dcache_for_umount, and ext4_kill_sb.