CVE-2026-143105

Not scored yetLast modified Dec 3, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

fs: don't strand I_METADATA_WRITEBACK inodes outside the LRU

Since commit c474bc56b6d1 ("fs: Provide way for filesystem to wait for metadata writeback") ext2, ext4 without a journal, fat, udf and minix set I_METADATA_WRITEBACK on an inode whose metadata was copied into a buffer that might not have reached the disk yet. Only data integrity writeback, i.e. fsync() and friends, clears it again. The flusher and sync(2) leave it alone.

inode_lru_isolate() treats every state bit other than I_REFERENCED as a reason not to reclaim the inode right now. It takes the inode off the LRU and relies on iput(), writeback completion or the removal of the last page from the page cache to put it back once the reason is gone.

But I_METADATA_WRITEBACK doesn't go away on its own. iput() puts the inode back on the LRU with the bit still set and the next scan takes it off again. So neither memory pressure nor drop_caches can free these inodes. Only fsync() and friends or unmounting the filesystem get rid of them.

On ext4 without a journal ext4_mark_iloc_dirty() sets the bit on every ext4_mark_inode_dirty(), so even an atime update is enough. An unprivileged user creating or touching lots of files grows the inode cache without bound until the OOM killer comes along.

The inode can't just be thrown away though. An fsync() after the inode was read back in wouldn't know that its metadata still has to be written out. So let the shrinker reclaim inodes with I_METADATA_WRITEBACK like any other clean inode and make evict() write out what the bit tracks unless the inode is being deleted. Since the previous patch the bit covers the tracked metadata buffers as well, and since the lookup patches ->sync_inode_metadata() doesn't read anything from disk for that. It writes and waits for whatever is still dirty or under writeback. The mmb_sync() calls in ->evict_inode() are redundant with that and the following patches drop them.

Handing these inodes to a work item that syncs them and puts them back on the LRU would work too. But that's a second inode reclaim offload mechanism next to the deferred inode reclaim that is being worked on, and it needs a reference on the inode which leaks into remount, freeze and umount.

For stable this needs the previous patches as well. Without the lookup changes evict() ends up reading inode blocks from disk with __GFP_NOFAIL allocations from reclaim. v7.3 also still has bfs which sets I_METADATA_WRITEBACK too and reads the inode block in bfs_sync_inode_metadata(), so the backport needs the cache-only lookup for bfs as well.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143106In the Linux kernel, the following vulnerability has been resolved: fs/splice: clamp an over-reported write_iter result iter_file_splice_wCVE-2026-143107In the Linux kernel, the following vulnerability has been resolved: fs/proc: fix the write length returned by proc_sys_call_handler() procCVE-2026-143108In the Linux kernel, the following vulnerability has been resolved: fs/adfs: bound directory entry name length in adfs_fplus_getnext() adfCVE-2026-143109In the Linux kernel, the following vulnerability has been resolved: dcache: let umount find a disconnected ex-mountpoint When a mount goesCVE-2026-143115.4The Booking for Appointments and Events Calendar – Amelia plugin for WordPress is vulnerable to unauthorized access and modification of dataCVE-2026-143110In the Linux kernel, the following vulnerability has been resolved: dcache: wait for a racing eviction of a secondary root Commit e9895609CVE-2026-143111In the Linux kernel, the following vulnerability has been resolved: dcache: let d_invalidate() wait for a d_set_mounted() in flight d_invaCVE-2026-143112In the Linux kernel, the following vulnerability has been resolved: crypto: essiv - fix use-after-free in AEAD path The request that ESSIVCVE-2026-143113In the Linux kernel, the following vulnerability has been resolved: crypto: caam - reject overlong RSA CRT parameters caam_read_rsa_crt() CVE-2026-143114In the Linux kernel, the following vulnerability has been resolved: cgroup: arm the notify timer only while the file exists cgroup_rm_fileCVE-2026-143115In the Linux kernel, the following vulnerability has been resolved: cgroup/freezer: Fix exiting tasks left frozen forever after rmdir SincCVE-2026-143116In the Linux kernel, the following vulnerability has been resolved: cgroup/freezer: walk exiting tasks in the v1 freezer An exiting task c
CVE-2026-143105: Unscored | Vulnix