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=1793187620; b=JCz84xMxjXVrjLRvjFT9qL/4YKuZrQueKhbZiuIh6k2vIWS2b5anDijRjyJEq75xuBB3 Bj9WVimYZ1MCwN4T8zIF/evJ9eL/VcixSxO2YXmCDVQ9V95jKhGI/t+lGjdv/0OKVAaPe AlkRA5VC0nIfxCVWlNfrIC8Hs5sbc9m0R3EUOTiL4kpx4YLZraz51NyiCD/SsPMbn1PTE 1vzrlHsVFpTp6Fc0OwaRgMkx2KerdZBiaIsl7B5ljpx/IuI3wdr9E8r8zkG0pmw3M3bDF jHwVLmCxeq7z7/QGeSGT4cjCdGxPraTbxIhd6j6CwFwhW17nBX4JxXMOm2RrnbtZslA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187620; 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=Q2FyFZOg2P9AovEGEqoYbvfEy82nyhHzePTNFcUvXqs=; b=KpqUyCF6/IQBQwmc/h5z105vVdnFaJ0xTMjuze5u0uy4NLzbTU4kIz7pP6bCZBZiG9dE infGIlqREJOa5M05iNbqmKk1AlAAj8evxdGt2bnPwkgnun/ng+RTmKOoZ2zEzVGj16xTH F8MR7Hk99Zv/RCDsDmMytEIgTmed5MWnz1fUTaL9dUz6Cei8SpAX6z8ZBF4icaieR0mFb 5uC8DXsGSkINaONVOgQjA/aeXpr0br5LaYY6y8XF07UHX3yEvgbYbyVUxzfn5fP+qsEO/ fc9i+h8/Re2Zua80tmLAllthkUIkEzxf2Pcvk/e1YIRrvQ6jv6i+ed1i1UL/XRf4EFw== 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=gkVr1j2s; 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 18D72606A31A for ; Wed, 28 Oct 2026 11:40:20 +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=gkVr1j2s Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C85A1F01825; Wed, 28 Oct 2026 11:40:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187620; bh=Q2FyFZOg2P9AovEGEqoYbvfEy82nyhHzePTNFcUvXqs=; h=From:To:Cc:Subject:Date:Reply-To; b=gkVr1j2scm/6EFor27ermnUrtIffi4Afw8MdRDiF48j6jMjDmxTAzqGQa2shHBxN9 YyVRlMaEvepChDP5MGEHAFGRkJEb9dUeoTOvxWR8Y4UUybQdwNeqvy3fgago+9h654 bp6o2JzUFtDDlY8AA6HS3kxzVwct0Lg7I2SCou6k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99175: fsnotify: prevent mark additions during connector teardown Date: Wed, 28 Oct 2026 11:36:02 +0100 Message-ID: <2026102808-CVE-2026-99175-d023@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=3442; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1bM+/JG4Hs+udW+Jsc4zM8dQ2TIP4kUC0mc4S5siUJk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz995u/X5ogcfVCZMtNe89rrz4RKp1cntmmcWpu1Mm 2GS8+NJS0csC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMhGUZwzzltKWzf8hkPE+I 2FLOm5NZVbOzUJphnv3aZfevCwZefrrGqsRK8A5zysvwTgA= 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: fsnotify: prevent mark additions during connector teardown fsnotify_destroy_marks() keeps a reference to its current mark while it drops conn->lock to destroy the mark. This stabilizes the forward-walk cursor, but does not prevent a new mark from being inserted before it. For example, an inotify watch re-added after IN_IGNORED sorts before the old, detached mark for the same group. The walk can miss the replacement and then detach the entire connector from the object. The replacement is still on its group's marks_list and, for inotify, in the watch IDR. The group mutex no longer protects the connector's object from disappearing. An unprivileged fdinfo read racing the final detach can consequently call igrab(NULL): BUG: KASAN: null-ptr-deref in igrab+0x24/0x100 Write of size 4 at addr 0000000000000148 Call Trace: igrab+0x24/0x100 inotify_show_fdinfo+0x1dc/0x5e0 seq_show+0x397/0x690 Set a DESTROYING flag under conn->lock before starting the walk, and reject new marks on that connector with -ENOENT. The existing add-mark error paths undo the temporary group-list entry and the backend's watch allocation. Do not wait for teardown while holding the group mutex, which the destroyer needs. Once the old connector is detached, an add can install a fresh connector as before. This closes the insertion race for all object types using the common connector teardown, without changing the mark reference or SRCU lifetime rules. The Linux kernel CVE team has assigned CVE-2026-99175 to this issue. Affected and fixed versions =========================== Issue introduced in 4.12 with commit 6b3f05d24d355f50f3d9814304650fcab0efb482 and fixed in 6.18.59 with commit 952501bfc6e5e654ac4a17ec9d90c1ec614bd9f1 Issue introduced in 4.12 with commit 6b3f05d24d355f50f3d9814304650fcab0efb482 and fixed in 7.2.13 with commit 472589eacdf10b5f9bd10b333957ed5291b2544b Issue introduced in 4.12 with commit 6b3f05d24d355f50f3d9814304650fcab0efb482 and fixed in 7.3 with commit 36ebddca56b9d8993d6dc984fdecc748ee1f5e06 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-99175 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/notify/mark.c include/linux/fsnotify_backend.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/952501bfc6e5e654ac4a17ec9d90c1ec614bd9f1 https://git.kernel.org/stable/c/472589eacdf10b5f9bd10b333957ed5291b2544b https://git.kernel.org/stable/c/36ebddca56b9d8993d6dc984fdecc748ee1f5e06