cvelo
P4 · InfoEPSS 0.4%

ext4: skip extra isize expansion while unmounting

  • CVE-2026-142841
  • GHSA-m6g4-383w-8r5g
  • EUVD-2026-142091

Description

Show the whole description

In the Linux kernel, the following vulnerability has been resolved: ext4: skip extra isize expansion while unmounting syzbot reports a WARN from ext4_xattr_inode_create() reached through the unmount path: EXT4-fs warning (device loop0): ext4_xattr_inode_create:1485: refuse to create EA inode when umounting WARNING: fs/ext4/xattr.c:1486 at ext4_xattr_inode_lookup_create ext4_xattr_block_set ext4_expand_extra_isize_ea __ext4_expand_extra_isize __ext4_mark_inode_dirty ext4_dirty_inode __mark_inode_dirty sync_lazytime iput dentry_kill shrink_dentry_list shrink_dcache_for_umount generic_shutdown_super kill_block_super ext4_kill_sb shrink_dcache_for_umount() clears s_root before generic_shutdown_super() clears SB_ACTIVE, 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 s_root, which ext4_xattr_inode_create() refuses without. ext4_try_to_expand_extra_isize() already declines to expand when the superblock is not active, but that test does not cover this window. Decline while s_root is gone as well. The expansion is best effort and __ext4_mark_inode_dirty() 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.

Text from the CVE.org record.

Recommendation

  • Linux

    • If you run 6.1.xupdate to 6.1.193 or laterPatch update: breaking changes are unlikely
    • If you run 5.15.xupdate to 5.15.226 or laterPatch update: breaking changes are unlikely
    • If you run 5.10.xupdate to 5.10.275 or laterPatch update: breaking changes are unlikely
    • If you run a version from 5.4.235 to before 5.5update to 5.5 or laterMinor version change: check the release notes
    • If you run a version from 4.19.276 to before 4.20update to 4.20 or laterMinor version change: check the release notes
    • If you run a version from 4.14.308 to before 4.15update to 4.15 or laterMinor version change: check the release notes

    Some affected versions have no stated fix.

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Linux

    Affected versionsFixed in
    from 6.1.16 to before 6.1.1936.1.193
    from 5.15.99 to before 5.15.2265.15.226
    from 5.10.173 to before 5.10.2755.10.275
    from 5.4.235 to before 5.55.5
    from 4.19.276 to before 4.204.20
    from 4.14.308 to before 4.154.15
    from 6.2.3 to before 6.3none stated
    6.3none stated

    and 9 more

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.