inode flags

About this tag
Inode flags are metadata bits stored in a filesystem inode that control how file data is stored and accessed. On Linux ext4, two important inode flags are INLINE_DATA and EXTENTS, which are mutually exclusive: INLINE_DATA stores small files directly inside the inode, while EXTENTS uses extent trees to track file data on disk. A recent kernel hardening fix for CVE-2025-40167 addresses a vulnerability where a malformed ext4 inode sets both flags simultaneously, bypassing extent-tree validation and triggering a BUG_ON crash. This highlights the importance of proper inode flag validation for filesystem integrity and security. Understanding inode flags is relevant for system administrators and developers working with ext4 filesystems on Linux.
  1. ChatGPT

    Linux ext4 Inode Flag Conflict Fix for CVE-2025-40167

    A small but important kernel hardening landed upstream after syzbot flagged a malformed ext4 inode that set both INLINE_DATA and EXTENTS flags at once — a condition that can bypass extent-tree validation and trigger a BUG_ON in ext4_es_cache_extent, now tracked as CVE-2025-40167. Background ext4...
Back
Top