Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-93269 Overview
CVE-2026-93269 is a Linux kernel vulnerability in the ext4 filesystem affecting the ext4_ext_migrate() function. The flaw introduces a circular lock dependency between s_writepages_rwsem and sb_internal (freeze protection), which can deadlock the kernel. The condition triggers when an EXT4_IOC_MIGRATE ioctl executes concurrently with orphan cleanup during mount. Maintainers resolved the issue by moving iput(tmp_inode) after ext4_writepages_up_write() so that eviction of the temporary inode no longer occurs while the writepages rwsem is held.
Critical Impact
A local user invoking the ext4 migrate ioctl can trigger a kernel deadlock that halts filesystem progress on the affected mount.
Affected Products
- Linux kernel versions containing the pre-patch ext4_ext_migrate() implementation
- Distributions shipping the vulnerable ext4 code path prior to the referenced stable commits
- Systems where unprivileged users can issue the EXT4_IOC_MIGRATE ioctl on ext4 inodes
Discovery Timeline
- 2026-09-24 - CVE-2026-93269 published to NVD
- 2026-09-24 - Last updated in NVD database
Technical Details for CVE-2026-93269
Vulnerability Analysis
The defect is a race condition and lock ordering bug [Deadlock] in the ext4 extent migration path. On CPU0, ext4_ext_migrate() calls ext4_writepages_down_write(), taking s_writepages_rwsem for write. It then calls iput(tmp_inode), which transitions into ext4_evict_inode() and attempts sb_start_intwrite() on sb_internal.
Concurrently on CPU1, orphan cleanup during mount invokes ext4_evict_inode(), which first takes sb_start_intwrite() and then calls ext4_writepages(), which attempts to acquire s_writepages_rwsem for read. The acquisition orders invert between the two CPUs, forming a classic AB-BA deadlock.
The tmp_inode created during migration has nlink=0 and exists only to build the extent tree. Its eviction does not require s_writepages_rwsem protection, so deferring the iput() eliminates the circular dependency without altering semantics.
Root Cause
The root cause is incorrect lock scope. The iput() on the temporary inode is executed while s_writepages_rwsem is still held for write. Because iput() can trigger inode eviction, which independently acquires freeze protection, the lock chain s_writepages_rwsem → sb_internal collides with the inverse chain taken by concurrent writeback paths. See the upstream fix in Kernel Commit 32f7ab5 for the exact code movement.
Attack Vector
Exploitation requires local access and the ability to call ioctl(fd, EXT4_IOC_MIGRATE) against an ext4 inode. A local user can intentionally trigger the deadlock when conditions align with orphan cleanup or other writeback activity contending on s_writepages_rwsem. The impact is a denial-of-service condition against filesystem operations on the affected mount. See Kernel Commit 4529504 and Kernel Commit a897682 for backport details.
Detection Methods for CVE-2026-93269
Indicators of Compromise
- Kernel soft lockup or hung task messages referencing ext4_ext_migrate, ext4_writepages_down_write, or ext4_evict_inode in dmesg or /var/log/messages.
- Processes stuck in uninterruptible sleep (D state) waiting on s_writepages_rwsem or sb_internal.
- Lockdep splats reporting circular dependency between s_writepages_rwsem and sb_internal on kernels built with CONFIG_PROVE_LOCKING.
Detection Strategies
- Enable kernel lockdep (CONFIG_PROVE_LOCKING=y) on test systems to surface the circular lock dependency during functional testing.
- Monitor for repeated invocations of the EXT4_IOC_MIGRATE ioctl by non-root processes through audit rules on ioctl syscalls.
- Correlate hung task warnings with filesystem activity timelines to identify deadlock onset.
Monitoring Recommendations
- Forward kernel logs to a central store and alert on hung_task_timeout_secs and soft lockup messages that reference ext4 symbols.
- Track /proc/*/stack for threads blocked on rwsem_down_write_slowpath or rwsem_down_read_slowpath in ext4 contexts.
- Baseline normal EXT4_IOC_MIGRATE usage; most production workloads should rarely invoke it.
How to Mitigate CVE-2026-93269
Immediate Actions Required
- Apply the upstream kernel patch that reorders iput(tmp_inode) to execute after ext4_writepages_up_write().
- Update to a distribution kernel that includes the backports referenced in the stable tree commits.
- Restrict access to the EXT4_IOC_MIGRATE ioctl where migration is not operationally required.
Patch Information
The fix is distributed across the following stable kernel commits: Kernel Commit 32f7ab5, Kernel Commit 4529504, Kernel Commit a897682, Kernel Commit ada2345, and Kernel Commit e422323. Each commit moves the iput() on the temporary inode outside the s_writepages_rwsem critical section.
Workarounds
- Avoid invoking the ext4 online defragmentation and migration tooling (e4defrag and related utilities that use EXT4_IOC_MIGRATE) on production systems until patched.
- Use SELinux, AppArmor, or seccomp policies to deny the EXT4_IOC_MIGRATE ioctl to unprivileged processes.
- Reduce concurrent heavy writeback activity during administrative migration operations to lower the probability of hitting the race.
# Verify running kernel includes the ext4_ext_migrate fix
uname -r
git -C /usr/src/linux log --oneline fs/ext4/migrate.c | head -n 20
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

