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=1795154286; b=3RldF43e7GWxbvgyKosAnlVX9j9umsyGhqXyFaL+VYDdHrRWCL8F6vZgcIizymp4M+qQ TGGH11miEOIDK5cj09DiT0y3NhEUJX7tio1biyuBy9Y8xM+Y4A+OSmj0J8re1RfihRLA5 BZ7/4WRMITjUw91LS6Ts5uvmNa8DUi3+NeRmXDIvR3sZINnUqPK/U+H6gqsmdbzbLeiiH wJ+irkTswn8nWLwaMcwbfY6Y5L1TfpCjo5DehUybIKglcCLCgxN4dH9Hu5looCJx08lBc YL6cLOsRGrD3u0fR7FIa2nMmLXfa20QaH5hvUucT7u9F9Fc6m8TP1Pse0vK2lfyf3dw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154286; 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=RpBqidGBr6Ij6o/HEGyjeg5NhktCWfZEUB6nzQ0eZ8g=; b=S1/+NMkhoGeHkannyxjGVjEmRXCrpnXYplvQVmjbmyF81fWJU3CJc4W2qnZqRUaKar83 9JP+A2JuiuTzDmFXuAA0X7z1bvCHw0opcDc1yx6/7w42FZk/x3lwCoTvkBrAuUn5Whe5h KsJluiF5sdGvurb7MRLT84Q3OHTdDILUyFBnrGPzSAmaBAF8wnnpcAuXv6j5ck7McxM6O rCkrO6mScqmsndUbf5+IBah+OIGnN9cXkNQq53VM7Ql6bL4dqR7cyNjcRZ2yAuTCMGSA0 2UJtL39xjn8HJ16YX8W0PinSECveN63/6es2SyaUcCAbk2iDr5uM/UmVogz2PLVXKCw== 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="1FuCkbg/"; 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 5673560A260A for ; Fri, 20 Nov 2026 05:58:05 +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=1FuCkbg/ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BDD21F000C4; Fri, 20 Nov 2026 05:58:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154285; bh=RpBqidGBr6Ij6o/HEGyjeg5NhktCWfZEUB6nzQ0eZ8g=; h=From:To:Cc:Subject:Date:Reply-To; b=1FuCkbg/FoDIc4agbPnKvjM9Ov/KSal3ZZFjbOJFPB/pShIy2YXdtw5JYwXm03wOK b3YRaQvdcju/nfBnred2EdQd0vhj+Jyod1OpnE2w0kk50dPgngVSuRZwWQHSJvcuuy COkjYY4gGDt2MNBrr5r353WlHrROTXUqYEI0rCp4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99691: ocfs2/cluster: unlink socket containers before releasing resources Date: Fri, 20 Nov 2026 06:51:17 +0100 Message-ID: <2026112058-CVE-2026-99691-682a@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=6564; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7sXlu01KofiGq3E+3WXY5LHmwcIDD2qlt5WRH/e8UF8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/77cJMn5QMObMZbq4NiXJxie+5XXM2mCW03e22Vpdv Dn9qvzxjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgIkwXD/EqjioBrCcIWyx+W 1iR3ryvYyvlWkWHBucqoG4U1M+pv5NsY925bdZNvN58jAA== 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: ocfs2/cluster: unlink socket containers before releasing resources A socket container's node and socket must remain alive while the container is on sock_containers. The debugfs formatter reads sc_node and sc_sock under o2net_debug_lock without taking their references, but sc_kref_release() releases both before taking that lock to unlink the container. With CONFIG_DEBUG_FS enabled, a synchronous sender can retain its last socket-container reference after o2net_disconnect_node() has detached the connection and flushed o2net_wq. The caller runs outside that workqueue. After the sender removes its configfs dependency, node removal can proceed without waiting for the sender's final sc_put(): Sender (final sc_put) Configfs rmdir Debugfs reader -------------------- -------------- -------------- o2nm_undepend_item() Drop node item refs o2nm_node_put() [node can be freed] sc_seq_show() Lock debug lock Read sc_node->nd_name Unlock debug lock sc_node = NULL o2net_debug_del_sc() The earlier socket release has a similar window. The container is still selectable while its socket has been released and sc_sock has not yet been cleared: Sender (final sc_put) Debugfs reader -------------------- -------------- sock_release(sc->sc_sock) [socket can be freed] sc_seq_show() Lock debug lock Read sc_sock->sk fields Unlock debug lock sc_sock = NULL ... o2net_debug_del_sc() Move o2net_debug_del_sc() before releasing either resource. Unlinking under the existing debug lock waits for an active formatter to finish and prevents later readers from selecting the container. This covers both socket fields and node fields, including nd_num in the stats formatter. KASAN report as below: BUG: KASAN: slab-use-after-free in string+0x42b/0x470 Read of size 1 at addr ffff88810f56fc90 by task python3/506 CPU: 0 UID: 0 PID: 506 Comm: python3 Not tainted 7.3.0-rc4-next-20260921-pmb-ocfs2-functional-v1+ #1 PREEMPT(lazy) Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: dump_stack_lvl+0x93/0xd0 print_report+0xce/0x630 kasan_report+0xe0/0x110 string+0x42b/0x470 vsnprintf+0x330/0x1110 seq_printf+0x1a8/0x260 sc_seq_show+0x604/0x9f0 seq_read_iter+0x480/0x1110 seq_read+0x362/0x5a0 full_proxy_read+0x11f/0x180 vfs_read+0x1a0/0xc20 ksys_read+0x111/0x200 do_syscall_64+0x114/0x620 entry_SYSCALL_64_after_hwframe+0x77/0x7f (User register dump omitted.) Allocated by task 497: kasan_save_stack+0x33/0x60 kasan_save_track+0x14/0x30 __kasan_kmalloc+0xaa/0xb0 __kmalloc_cache_noprof+0x28d/0x610 o2nm_node_group_make_item+0xea/0x1a0 configfs_mkdir+0x762/0xca0 vfs_mkdir+0x399/0x7e0 filename_mkdirat+0x129/0x450 __x64_sys_mkdir+0x70/0xa0 do_syscall_64+0x114/0x620 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 505: kasan_save_stack+0x33/0x60 kasan_save_track+0x14/0x30 kasan_save_free_info+0x3b/0x60 __kasan_slab_free+0x5f/0x80 kfree+0x308/0x580 config_item_cleanup+0x14b/0x230 config_item_put+0x79/0x90 sc_put+0x454/0x6e0 o2net_send_message_vec+0x63d/0x1560 o2net_send_message+0xa6/0xe0 validation_send_write+0x17f/0x1d0 full_proxy_write+0x11f/0x180 vfs_write+0x25a/0x1010 ksys_write+0x111/0x200 do_syscall_64+0x114/0x620 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88810f56fc00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 144 bytes inside of freed 512-byte region [ffff88810f56fc00, ffff88810f56fe00) (Page and shadow-memory dumps omitted.) The Linux kernel CVE team has assigned CVE-2026-99691 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.26 with commit 2309e9e040fe29469fb85a384636c455b62fe525 and fixed in 6.12.118 with commit 8dc77ad4253904eb768f1aff45bb870d6d5a6eb5 Issue introduced in 2.6.26 with commit 2309e9e040fe29469fb85a384636c455b62fe525 and fixed in 6.18.64 with commit 829a331e1b52053c6f2d880daaa2f2c0ee85580f Issue introduced in 2.6.26 with commit 2309e9e040fe29469fb85a384636c455b62fe525 and fixed in 7.3.5 with commit 831f6f917f7e22068d850efc6443eca300a11f95 Issue introduced in 2.6.26 with commit 2309e9e040fe29469fb85a384636c455b62fe525 and fixed in 7.4-rc2 with commit 0988f0c0c7c908f0ff77fd8b90ce9918a1f41479 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-99691 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/ocfs2/cluster/tcp.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/8dc77ad4253904eb768f1aff45bb870d6d5a6eb5 https://git.kernel.org/stable/c/829a331e1b52053c6f2d880daaa2f2c0ee85580f https://git.kernel.org/stable/c/831f6f917f7e22068d850efc6443eca300a11f95 https://git.kernel.org/stable/c/0988f0c0c7c908f0ff77fd8b90ce9918a1f41479