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=1792758098; b=4GrTrLcvpzCpVTlmwCcS3ioFCzPH3J58sF8nY12iAb7ePxu9uJ2fsXH+c4nV3BCygLQE Eg+fFTcUU2FRGoegB+Q9xtsmpvx9IvKcI6GvCCZBdzpIVw8GFicnQ2+TDIU+9kT1JSUVk bhrT0jrO04BkzYd8IrYY7PWx+BAEnIB5VYSCIeDDuYxDKk6epgCktKsgv8C3pamJOSw+L RbDZZM8IDe+VdSZmDpLJJHeBo+E+KcvgnYaKx8soqPzqk7t8whvSuB7F1lxJ131J8drHE Unucm4kqaU7cEkUKjHEgFTKkiaH8370/EfKyKhvlm3+tl2XsDJ61G3wO1j/0m+K1Y4A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758098; 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=UnZ7mhN0ZsxsnQSIkKT7cb/lk+wtmGRIw55wg8iMy+A=; b=GALHrEARmR4Fu+6HdnWpGh/waf23tExBABHvDhQPpAV396h9AODUDawQNw/4jYZDmT4F WlmM5vO32u8UM9hMEYaxUT1Fces/28jVdYTipEHFzT0mH0rDwHdojFGCiuuRz5q3Q/lgO uVa3G8VXWBCPy1yqcriR2HnpYcKBN4orRsQG6gjjyKm0Mm1wF2gg6ZpNN6lRZ+pKTsxCd ohK6cM/kK42asNF85yy16bQE2eDCUMuYPHETPQYGraV1rWGVZWV701YLdg75zgT9B0LUV JQLbhtzkz3Poi0NtYC6Sil8sWA3vn7qOwAK2DP4HgMvSMwr3B547AjaeVXkjwpAvL4A== 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=a6x+2TkR; 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 9E170606A31E for ; Fri, 23 Oct 2026 12:21:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=a6x+2TkR Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05D0D1F01825; Fri, 23 Oct 2026 12:21:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758098; bh=UnZ7mhN0ZsxsnQSIkKT7cb/lk+wtmGRIw55wg8iMy+A=; h=From:To:Cc:Subject:Date:Reply-To; b=a6x+2TkRtAPRPYjsWxqD+RmSDinHny4NGAjsFU398zvakJ6PYJhWLEtyNqC/xjXYX IvFX9hNbL+lB6SctLNlQ23t7aNfLu+auU2N2y9Pr0NJ+nSJfFL5yEKJDnh8i1eIV9C W3LdDspZLvwPkZ0WmfBRbB5wv96E+fNDunI1Wz8E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98924: fs: avoid repeated scans in evict_inodes() Date: Fri, 23 Oct 2026 14:01:45 +0200 Message-ID: <2026102339-CVE-2026-98924-a30b@gregkh> X-Mailer: git-send-email 2.56.0 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=4871; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=p+NTuUGL1ItfndnNnWc+6l764hwQ2iZrsXkPM1ZcUAg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3fRZPTg6xLftqFDhbaIJ7Ed+NnFdi8kny7RsE+e4p/ lvxYydDRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk0zmGBcfnuVtGXjq5j8vs idvHtT2R4hv59zAs6JWdsmLCW1lPv1evvfiEdh9zLQ1dDAA= 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: avoid repeated scans in evict_inodes() We observed hung tasks when users attempted to unmount a filesystem after its disk had been removed while still in use. During device removal, fs_bdev_mark_dead() calls evict_inodes() while holding s_umount. Each time evict_inodes() drops s_inode_list_lock to reschedule, it restarts the walk from the head of s_inodes. With many referenced inodes at the head of the list, these restarts repeatedly scan the same inodes without reclaiming them. This can keep s_umount held for a long time, blocking concurrent umount attempts and triggering hung-task reports. Keep the current inode, already marked I_FREEING, out of the disposal batch until s_inode_list_lock is reacquired. Resume the walk from this inode and dispose of it in a later batch or at the end of the walk. The zero-refcount and state checks under i_lock allow this walker to claim the inode by setting I_FREEING and removing it from the LRU. Other reclaimers skip the inode, leaving this walker responsible for eviction. Only evict() removes it from s_inodes, so keeping it out of the disposal batch ensures that it remains on the list while the lock is dropped. After reacquiring the lock, reading its current next pointer accounts for concurrent removal of following inodes. The existing inode lifetime rules prohibit acquiring a reference to an inode marked I_FREEING or I_WILL_FREE. __iget() requires its caller to hold i_lock and establish that taking a reference is valid. Inode lookup and igrab() check these flags under i_lock when acquiring a reference from zero. ihold() requires an existing reference, which would keep i_count nonzero and prevent this walker from claiming the inode. These rules already allow iput_final() and the inode shrinker to release i_lock after setting I_FREEING and before eviction completes. A temporary __iget() reference would also keep the inode on the list, but its release must preserve last-reference handling. Another user can acquire a reference, update lazy timestamps and drop its reference while the pin is held. If the pin becomes the last reference, dropping it with atomic_dec_and_test() and evicting directly bypasses iput()'s lazytime handling and can lose those timestamp updates. Releasing the pin with iput() preserves that handling, but does not guarantee eviction. fs_bdev_mark_dead() runs with SB_ACTIVE set, so iput() may retain the inode in cache, whereas evict_inodes() must evict eligible zero-reference inodes. The inode may also have been freed when iput() returns, so the walker cannot then use it to force eviction. Using I_FREEING preserves the existing eviction behavior without introducing an additional last-reference transition. The xfstests auto group passed on ext4 and XFS with known unrelated failures excluded. No new issues were observed, and the previously reproducible hung task no longer occurs with this patch. The Linux kernel CVE team has assigned CVE-2026-98924 to this issue. Affected and fixed versions =========================== Issue introduced in 4.3 with commit ac05fbb40062411ea1b722aa2cede7feaa94f1b4 and fixed in 6.18.55 with commit e4f3e476cd4066a815ef68cd6caa1828b9c167d5 Issue introduced in 4.3 with commit ac05fbb40062411ea1b722aa2cede7feaa94f1b4 and fixed in 7.2.9 with commit 3cdc6e12ff79f0f8a3ba62d7e61474ae4b5e119a Issue introduced in 4.3 with commit ac05fbb40062411ea1b722aa2cede7feaa94f1b4 and fixed in 7.3 with commit 7459c021874246c196f397686e100702f059b9e7 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-98924 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/e4f3e476cd4066a815ef68cd6caa1828b9c167d5 https://git.kernel.org/stable/c/3cdc6e12ff79f0f8a3ba62d7e61474ae4b5e119a https://git.kernel.org/stable/c/7459c021874246c196f397686e100702f059b9e7