CVE-2026-143105: fs: don't strand I_METADATA_WRITEBACK inodes outside the LRU

Published Dec 3, 2026
·
Updated

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

fs: don't strand IMETADATAWRITEBACK 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 IMETADATAWRITEBACK 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.

inodelruisolate() treats every state bit other than IREFERENCED 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 IMETADATAWRITEBACK 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 dropcaches can free these inodes. Only fsync() and friends or unmounting the filesystem get rid of them.

On ext4 without a journal ext4markilocdirty() sets the bit on every ext4markinodedirty(), 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 IMETADATAWRITEBACK 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 ->syncinodemetadata() doesn't read anything from disk for that. It writes and waits for whatever is still dirty or under writeback. The mmbsync() calls in ->evictinode() 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 GFPNOFAIL allocations from reclaim. v7.3 also still has bfs which sets IMETADATAWRITEBACK too and reads the inode block in bfssyncinodemetadata(), so the backport needs the cache-only lookup for bfs as well.

Affected Software

1 affected component
Linux Linux kernel

Event History

Dec 3, 2026
CVE Published
via MITRE·09:19 AM
Data Sourced
via MITRE·09:19 AM
Description

Frequently Asked Questions

1

Which filesystem configurations are affected?

The issue affects ext2, ext4 mounted without a journal, FAT, UDF, and Minix filesystems. The description specifically distinguishes ext4 without a journal.

2

What activity can cause affected inodes to become unreclaimable?

Metadata updates can set I_METADATA_WRITEBACK while the metadata may not yet be on disk. On ext4 without a journal, even an atime update can be sufficient because ext4_mark_inode_dirty() sets the bit for each inode-dirty operation.

3

How can an administrator recognize the impact?

Inodes with I_METADATA_WRITEBACK can be removed from the inode LRU during reclaim and repeatedly remain unreclaimable. As a result, memory pressure and drop_caches cannot free those inodes.

4

What can be done if the fix cannot be deployed immediately?

Running fsync() or related data-integrity writeback operations clears I_METADATA_WRITEBACK. Unmounting the affected filesystem also removes the condition.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203