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=1793187772; b=3fzxabIEVbMb9OnsNZ/072P4F3RE4ELwcYLQuKMX9FjA8eCKjM84+qNPuLjfu3F/pKs6 YlEzNc2PpJVDUfO0L8J8aLJbn6njfus27SGQBUwCjPzkzoxPGMBWtaXsjA+KK2Zv6r9dP BVngCc5qEPishhmGcyJ3Eyg/dxJX0VytWwQTZxOdwW3XkuKpUYAUTCT3xltBnqTRhDtGU pwZabdvWioGdABgbkvlqL5S9AXIvL0JZu/8enTlRtK8P5kli0HIVHw++4FIKvr/3RgYFp 5cWPbSgtdyho0HjHqj5C2JjQ71wPbKdvq9+pZ5k7GS/hGaiMCk2ghMW1oJEYOtB+oQQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187772; 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=F7rJzGIyR5ec69tZRpqyzmrfiC+a5iI8on3++FE7tZo=; b=1syfxpuA1Q9iGpBbJrOWIThzwhC87ViJs4Sgxy95qmxmUaR0JJxZcoRceLo4VEDTPHqb 1Ezl22aMo59Pjc2Rz46ptR1J8w7EZQmCzPvnkiuUFYZEdKgwTXFRgEVEU1UJeIP+G6b46 eaSwelAyFC007xeFgWfaB3jJDAqReiS6rVL2YNJ9n4+UKho++DE+WOrTPOBxMn9fEnLpb kqJEpioGE5+JR3OW304t4hW/sOnD0TkulI+fajcH/GcLZp7C2p0JrnzFvurp194T+9Nap Su059JF21/q7PXzVWA28ddqzxD/khnphYHNykFPT3eSYfEiQpsRq/lVPkvJD+LEF8iA== 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=KUUYxgDI; 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 12A8A606A31A for ; Wed, 28 Oct 2026 11:42:52 +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=KUUYxgDI Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DC6F1F01825; Wed, 28 Oct 2026 11:42:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187771; bh=F7rJzGIyR5ec69tZRpqyzmrfiC+a5iI8on3++FE7tZo=; h=From:To:Cc:Subject:Date:Reply-To; b=KUUYxgDIQYq3T5vdLH9denLvBjRQWlcIfRcGCrbfRQycaQiwUZZwVR/YQQkMr7iju DWIj6FqxHoOjD72r/aDGKn/aHbQylW4kH2mD5xTXSdDmpHrpAWQbQnTD6uiONIfyrj XPZIGb3WBfOUHRt1QvgzyX1hHrGqJIWybZWsJqQc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99204: ocfs2/dlm: Protect the recovery list during debugfs reads Date: Wed, 28 Oct 2026 11:36:31 +0100 Message-ID: <2026102814-CVE-2026-99204-fe59@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=5764; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=r/SqoGyx1p7YRTKdicQ+DVJanFgBz922XXypUIt9P6M=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPzz+yYmX7eH2X61fWRtaFW+YnLn214dPS8D16V0//7 DeSqOqu64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICLvGaYX+Sw6t1r4/S4r/7G kns/dTjukNhxhmHBuk153QJXry6MOcFeESW6YsYNmWO6AA== 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/dlm: Protect the recovery list during debugfs reads Recovery participant records must remain alive while debug_state_print() walks reco.node_data and formats their fields. The formatter holds dlm->spinlock, but the recovery participant list is protected by dlm_reco_state_lock. In particular, dlm_destroy_recovery_area() detaches the list under dlm_reco_state_lock and frees the detached records after releasing it. A concurrent debugfs open can therefore read freed memory. Protect the participant traversal and field reads in debug_state_print() with dlm_reco_state_lock, matching the existing list writers. This also serializes the traversal against list_add_tail() during recovery-area initialization. Make the existing lock available to the debug code through dlmcommon.h; the lock remains internal to the OCFS2 DLM module. Release dlm->spinlock after formatting the other domain state and before acquiring dlm_reco_state_lock, so the debug reader does not nest the two locks. Leave recovery list insertion, detachment and freeing unchanged. KASAN report as below: BUG: KASAN: slab-use-after-free in debug_state_open+0x1169/0x12d0 Read of size 4 at addr ffff88810662ef80 by task dlm-state-stres/896 CPU: 1 UID: 0 PID: 896 Comm: dlm-state-stres 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 ? debug_state_open+0x1169/0x12d0 ? srso_alias_return_thunk+0x5/0xfbef5 ? __virt_addr_valid+0x20e/0x420 ? debug_state_open+0x1169/0x12d0 kasan_report+0xe0/0x110 ? debug_state_open+0x1169/0x12d0 debug_state_open+0x1169/0x12d0 ? __pfx_debug_state_open+0x10/0x10 full_proxy_open_regular+0x193/0x310 do_dentry_open+0x595/0x12d0 ? __pfx_full_proxy_open_regular+0x10/0x10 vfs_open_consume+0xd1/0x400 ? srso_alias_return_thunk+0x5/0xfbef5 path_openat+0x18d0/0x2020 ? __pfx_path_openat+0x10/0x10 do_file_open+0x21e/0x470 ? __pfx_do_file_open+0x10/0x10 ? _raw_spin_unlock+0x23/0x40 ? srso_alias_return_thunk+0x5/0xfbef5 ? alloc_fd+0x3a6/0x6b0 do_sys_openat2+0xf4/0x1b0 ? __pfx_do_sys_openat2+0x10/0x10 ? srso_alias_return_thunk+0x5/0xfbef5 ? __fput+0x5b5/0xa60 __x64_sys_openat+0x136/0x1e0 ? __pfx___x64_sys_openat+0x10/0x10 do_syscall_64+0x114/0x620 entry_SYSCALL_64_after_hwframe+0x77/0x7f [Register dump omitted.] Allocated by task 880: kasan_save_stack+0x33/0x60 kasan_save_track+0x14/0x30 __kasan_kmalloc+0xaa/0xb0 __kmalloc_cache_noprof+0x28d/0x610 dlm_remaster_locks+0x147/0x1d90 dlm_do_recovery+0xde1/0x1580 dlm_recovery_thread+0x109/0x300 kthread+0x351/0x460 ret_from_fork+0x659/0x940 ret_from_fork_asm+0x1a/0x30 Freed by task 880: kasan_save_stack+0x33/0x60 kasan_save_track+0x14/0x30 kasan_save_free_info+0x3b/0x60 __kasan_slab_free+0x5f/0x80 kfree+0x308/0x580 dlm_destroy_recovery_area+0x285/0x460 dlm_remaster_locks+0x17c4/0x1d90 dlm_do_recovery+0xde1/0x1580 dlm_recovery_thread+0x109/0x300 kthread+0x351/0x460 ret_from_fork+0x659/0x940 ret_from_fork_asm+0x1a/0x30 The buggy address belongs to the object at ffff88810662ef80 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 0 bytes inside of freed 32-byte region [ffff88810662ef80, ffff88810662efa0) [Page and memory-state dumps omitted.] The Linux kernel CVE team has assigned CVE-2026-99204 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.26 with commit 007dce53a29ccffc000ab5373d188f73881390fd and fixed in 6.18.59 with commit 04d4571c00db61a9664f387752fa05cb3c08a537 Issue introduced in 2.6.26 with commit 007dce53a29ccffc000ab5373d188f73881390fd and fixed in 7.2.13 with commit 2bc426a32bfb78868c7f76d9547132837b6b5284 Issue introduced in 2.6.26 with commit 007dce53a29ccffc000ab5373d188f73881390fd and fixed in 7.3 with commit 4c435828932bf46f29860e4a0375bcae101b778a 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-99204 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/dlm/dlmcommon.h fs/ocfs2/dlm/dlmdebug.c fs/ocfs2/dlm/dlmrecovery.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/04d4571c00db61a9664f387752fa05cb3c08a537 https://git.kernel.org/stable/c/2bc426a32bfb78868c7f76d9547132837b6b5284 https://git.kernel.org/stable/c/4c435828932bf46f29860e4a0375bcae101b778a