CVE-2026-31452: ext4: convert inline data to extents when truncate exceeds inline size
ext4: convert inline data to extents when truncate exceeds inline size
ext4: convert inline data to extents when truncate exceeds inline size
The vulnerability has local attack vector and requires low privileges. Triggering it involves operating on an ext4 filesystem containing an inode marked for inline data storage.
A file with the inline-data flag and a small initial size must be grown with truncate() beyond its actual inline capacity. A subsequent sendfile() write can then reach ext4_write_inline_data() with a write size larger than the inline capacity and trigger a kernel BUG_ON().
The ext4 inode can enter an inconsistent state in which its inline-data flag remains set even though its file size exceeds inline storage capacity. The observable consequence described is a kernel crash through BUG_ON() during a later write attempt.