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=1792759594; b=apA8iA3H9P8DN5mQ+EPafvfpXQtm01OUX78rbdV2+nZvp2NEBgd2Qi1DWCYAdkBRaSjU Yqsk7ZqXTj2yF+X2ZRcwYaDpY3UQcbvxIpiUQgN+w+4bHKLYmVuA590Hh5mFCZ+IZghf6 afv31mgB9QE2nFq3GD8cOr0Hb22usejOwieUNK+YhszTxuVblXH7iNXs7aQC+EfqaiyNF /dZbnmDsVTmuZOkhP6mkn6QabCLikxbJfzsTzAPZpsEHx2jyOZFhRXZaAb2zDcohfJXfM q1MWWFWlY/Beczbl7lWCPJpB/MsqD9OQOApcuiglNyAqxqNr1b2T36IHFaMTvnQP/Xw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792759594; 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=v5uqyyl3fXwt6Y1M+OgSaLtfvPt+FMaAGI6tjkl0HYY=; b=5NfMEqKCGipX3m4vmkVdp3lvXe8JJzH/BEWy66LEmpCNku188HyuE93G006wsaD2u8tr 1RzGFCnvDlaabxqGKXkgtJ17rZs+pwu9pC2GIXl0Vu3XIA6RTcVIQMrtWdTrpyevkkttq 67HAhR2k7PntAJa19RXsIS5ev5+B91QkrPxUq3odHskT8qyoXuUqz4+rLTDJR/4bx5XM7 0jEbkuQzhRGwHB8KS/nbiljC5/zYmSuD7WJVx1HZTbI6S6ZxhxmO0U7prp1IFYKXgP9ue WRxdy79XH/yVObzTZNgDfZcGMsrwbNYQhu3NiVVZsnVzvL+8t7PPYH8zxvibuKDKjow== 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=BrWHshE3; 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 DE16C606A31B for ; Fri, 23 Oct 2026 12:46:33 +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=BrWHshE3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B18151F01825; Fri, 23 Oct 2026 12:46:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792759593; bh=v5uqyyl3fXwt6Y1M+OgSaLtfvPt+FMaAGI6tjkl0HYY=; h=From:To:Cc:Subject:Date:Reply-To; b=BrWHshE3O6U/B7CHu1MI8kxzjGQl2Fvpv4tLihx4AjntFlFUEIaKabCmCmQ34xlwD wrv79Nwv9N/nOM2KmKMCKyt175MVqWor8+H6mfTKUQOqwbwUaz6p73kX23ci9qLLc1 Eel1xnnCRPpzaNj7wjDl4CvFVPYvXPGlcS7wv2dA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99084: readdir: take no inode lock on an immutable directory Date: Fri, 23 Oct 2026 14:45:17 +0200 Message-ID: <2026102316-CVE-2026-99084-217a@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=3361; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qCHHyhz+boHe7X7p1nWW6SN5KKAVPALY3f9DMGZcJD4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3w+5oyll5886dFbn1RK6KkbnFCvey+UfEBQOabs84v 0O6VfxSRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk+iSGuZIaq/fqKH87vEC/ Rsv5hWnUTp4zBQzzQ3q/16gJuoqEn1I0mDw1/qpVHOMnAA== 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: readdir: take no inode lock on an immutable directory iterate_dir() takes the directory's i_rwsem shared and holds it across ->iterate_shared(). For a directory that never has an entry and is never removed the lock keeps nothing still, it only orders every reader and every writer of that inode behind each other. For the directory of a nullfs instance that matters. The instance of the initial mount namespace is the root of every empty mount namespace and the private instance is the root of every kernel thread, so one inode is shared across users who have nothing else in common. And a reader can hold the lock for as long as it likes: back the getdents() buffer with a mapping of a file on a FUSE mount of your own, let the copy of "." and ".." fault and let the server wait. Queue an exclusive taker behind it, a mkdir() in that directory goes through start_dirop() before the read-only mount is reported, and from then on every lookup that misses the dcache in that directory, every create and every mount on it waits until the server answers. One user of an empty mount namespace stalls all the others. Add FOP_IMMUTABLE for the file operations of a directory that never changes and is never removed and let iterate_dir() skip the lock for it. The flag never changes for a file, ->f_pos is protected by f_pos_lock since directories are FMODE_ATOMIC_POS, IS_DEADDIR can't be set on such a directory and neither touch_atime() nor fsnotify take i_rwsem. Set it on the nullfs directory. The placeholder directories of libfs never have an entry either but their owners remove them, so they keep the lock. The Linux kernel CVE team has assigned CVE-2026-99084 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit 9d4e752a24f740b31ca827bfab07010e4e7f34b0 and fixed in 7.2.12 with commit 6d30b399ae28e5166d62484f81ccaefde6fe7996 Issue introduced in 7.1 with commit 9d4e752a24f740b31ca827bfab07010e4e7f34b0 and fixed in 7.3 with commit e08f57a7dcb83818c058e415988c23beb6c5a47f 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-99084 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/nullfs.c fs/readdir.c include/linux/fs.h 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/6d30b399ae28e5166d62484f81ccaefde6fe7996 https://git.kernel.org/stable/c/e08f57a7dcb83818c058e415988c23beb6c5a47f