From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796289985; b=3Gg78cyJpHWrxR9LqdDrajZHAUmEZOg9KcDmgaej5p8hDnbsDVgs+/40bQuz6FK6gEKN eN+XNXadRhLoKCTASydgglqlHwbG8zbDEyf3d1jcHybMO2Fugn/EVpovPvL2awx7QigX7 00iXUQZxZTXrwXI3LNcq/JTvpKhICKmHw3VvORCjPSZ6DG9geNIt+62SE4uK/8VYfhuKG bEWYj6kbKJTBYwODVNKPSP4CvL7LTgS14EH6EjpiAudSDGJD68QXln72TtUU8xL/M3c9P X2F91xdumbMiNUFcQzBRtalq5AUjY8P8M1hsulLZy9/LD5SuAE9eXN8b7RVXkzGkooQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796289985; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=F+6hmM3exWjvDIZYG8wQVuqfa7QY8bwGajJvvy+Jb4E=; b=TgcchSruU0fBNHRVbXmIWm/kRtIY7rTc8RCKeYIC+KAgztAJGSPxoQb8c7VcztsnLSRx OaSR5rgwFBzhMWsAfkcVkX4oOubHlFyDfv7FxiouzCAYfCHZJip4AGqPkkk4q1vSLJPSO 2Bg40Ky2AZE0oEAd7AFAsZnlpPi10q0GCDddXJQCL2HXb3KIc9VQssFMDtVoGrJlOnn65 7SyTjsQKuuz/Xey/nUmInr2GI7l6v/y4kiGtZhyOAf7qoHJD7HMswtRiERKxs3oUdgUHR 3aHItbvvFgDZgN6F48Q2eaXsO66XvZGFthNExJ196gYnsSCRE4lN+azru3JTi/BPCXg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=mTskfMtb; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79D7A606A322 for ; Thu, 3 Dec 2026 09:26:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=mTskfMtb Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB0451F00893; Thu, 3 Dec 2026 09:26:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796289985; bh=F+6hmM3exWjvDIZYG8wQVuqfa7QY8bwGajJvvy+Jb4E=; h=From:To:Cc:Subject:Date:Reply-To; b=mTskfMtbCKsrS4PrevyxQaZ8YDIZ/xtKbfk0Ss1tIrYGQ+JU3/XXnEbUqFUtscOjx JEK+RVbcZ0Zj+WX6oa9z8IGxt6YXbO1YV+de6D5rfE4IwsOsbDOCYLQKJhJIQOEsmw H2ANUGoN80vWEeNDWTmJ5ufJDd1Napgh2cxkIr6A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-143105: fs: don't strand I_METADATA_WRITEBACK inodes outside the LRU Date: Thu, 3 Dec 2026 10:19:01 +0100 Message-ID: <2026120357-CVE-2026-143105-da38@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4308; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+AjFT24A8/DvKPckVMQh++K3lyqmCBaKnB+WDrdXDkk=; b=owGbwMvMwCRo6H6F97bub03G02pJDNmCxp3pFm2HGI9aZ34V2Zu2vffdqxB2xynOrbOPcbRJn A0qv8bbEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABP5v5hhQX/woh2rZnjfOOl7 MHXxhoZyxgW1lgzzk1t/ZHy59erWL7b5tYrHdoft5Gz5BgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-143105 to this issue. Affected and fixed versions =========================== Issue introduced in 7.3 with commit c474bc56b6d147b40b96cfed6a30d8302cef0a33 and fixed in 7.3.7 with commit 37774263930a2965b7d50b70746b441dee2821c3 Issue introduced in 7.3 with commit c474bc56b6d147b40b96cfed6a30d8302cef0a33 and fixed in 7.4-rc3 with commit 9b4b26d110f32008134750f82c98e621f2e4758f Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-143105 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/inode.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/37774263930a2965b7d50b70746b441dee2821c3 https://git.kernel.org/stable/c/9b4b26d110f32008134750f82c98e621f2e4758f