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=1795099983; b=LQ4VzJyLpx42Tzp0zrtitXtg+N6GUCUogHFNxf+U5Kv+M0b1y58rWoU03T6tB6Rxr0M3 0uhpFMa16VTrnjSllRO7No/SPpE/ONp1TGSTeDH3GjWuRUwQ9FLR2UUbKDPky4ec6UW5o zN7B2dLrzSG5xid5B4jOFNtQYidK1HUN8OfznPTHxSZ9HceLj4OZvuPML5jJXCw93DpS3 hTRLBK8lFRdgrIIs1V4oOQfy7SEzbwx6e92QGd5a7Bm/iuvA2chBOzrwglUpB/DCX/nPN Wu8GyGZFFv5WfWvMVR1kkp+2MCXmS7z9n+7D3mxDXAZYUL8LgbUgyEGwEjvNT3zZBoQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099983; 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=8WB2fjS8dw9sxWFcd0x+GumDUa51lC8IfdzdjINgopc=; b=hQAHrJnCG/rHK1vca9Ol5flvusfZZtS+MUQKw89isJ6K4o0xtlUllu0zTyIp5mcerohZ BoZCrclLv+K3OBrY50k0MkA3P4uGBxOgam+FF5IXhmW96Cuk86MxkgDdKENbBSQ9bAH4K R+kWrYfpEFclaQoJ1sJrMcjtsVhCyHGPzjA3/HYPsBRWB6AtcvD4W9diRbhXFQ4Atxq/9 M7PRQ2L85Nak0Oe/xi+7gsZXpL7FhxPWUVXZRwWtyrrIH9GYBoolBG3zLx7T2ezWhehx8 b1xwMG2CvuvDy97RU3uIsfjjzxzzgnLhC/txug6VsqrWAHDzT8WSTAnzU1cdh3kduGw== 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=OPuM588f; 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 E17D7606A334 for ; Thu, 19 Nov 2026 14:53:02 +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=OPuM588f Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE4F81F000C9; Thu, 19 Nov 2026 14:53:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099982; bh=8WB2fjS8dw9sxWFcd0x+GumDUa51lC8IfdzdjINgopc=; h=From:To:Cc:Subject:Date:Reply-To; b=OPuM588fPHnkwXfhb0yVD2RI5u3fvzVZoSMcUoUz1IXIAxRW8TydO733VpI2g7/69 IOfQv9Jg/BJdAOq7RxgMCWmKmdDbQr9RLzlDtGXGQlWKx0A0zw2uCryH3RG0jYNRxE FPUNalDycP95rX8s8pbUU5jAgmi0YWeQO3Ohr5oQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99432: ocfs2/dlm: hold the lookup reference across convert AST enqueue Date: Thu, 19 Nov 2026 15:25:30 +0100 Message-ID: <2026111903-CVE-2026-99432-74dd@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=5361; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eIGfzRaThktjohjFef1Lu5Z1Txt9HjRolVMCJYrZZPI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2Zq1O46rbjZuXjB12yZ19bAllnuS6joiUqq9V8tWS G1nKFTuiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImsucWwYLXH9HCbvxt2zUw7 /XHKqd7qh3MDJzAs2MmftpWtdybL876lT1Wacg9euVF2DAA= 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: hold the lookup reference across convert AST enqueue dlm_convert_lock_handler() drops the reference it took when it found the lock on res->granted at its leave label, one statement before it calls dlm_queue_ast(). dlm_free_dead_locks() takes res->spinlock and drops the list and base references, so a peer death landing in that gap leaves the handler's own put as the one that frees the lock, and __dlm_queue_ast() then reads lock->lockres from freed memory. The handler is registered next to dlm_create_lock_handler(), so a convert message buffered on a dying peer's socket arrives on the same o2net receive work that o2net_disconnect_node() does not wait for. The two can interleave as follows, with the reference counts as they are before this fix: Socket data-ready Node-down thread Receive worker ----------------- ---------------- -------------- o2net_data_ready() select sc under callback read lock o2net_disconnect_node() queue shutdown begin flush; new color queue sc_rx_work in the new color release callback lock shutdown socket flush returns read buffered convert_lock dlm_convert_lock_handler() find lock on res->granted dlm_lock_get() refs = 3 lock res->spinlock __dlmconvert_master() call_ast = 1 unlock res->spinlock DLM node-down cleanup lock res->spinlock dlm_free_dead_locks() unlink lock put list ref refs = 2 put base ref refs = 1 unlock res->spinlock dlm_lock_put() refs = 0 free lock dlm_queue_ast() __dlm_queue_ast() read lock->lockres (use-after-free) __dlmconvert_master() only moves the lock between lists, so the count entering the gap is base, list and lookup. Drop the lookup reference after the AST is queued instead of before it and the race ends with the one __dlm_queue_ast() took, which dlm_flush_asts() releases later with ast_pending cleared and ast_list unlinked. No extra get is needed, and the normal case ends with the same count as before. dlmconvert_master() has the same shape but is only reached from dlmlock() for a lock this node owns, which dlm_free_dead_locks() never matches. The Linux kernel CVE team has assigned CVE-2026-99432 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.25 with commit 2c5c54aca9d0263f81bd4886232835ba31f7635a and fixed in 6.12.117 with commit ecc5b17b8d2b1f720262e991896da2c909154a4d Issue introduced in 2.6.25 with commit 2c5c54aca9d0263f81bd4886232835ba31f7635a and fixed in 6.18.61 with commit a3dd8d3af023837516d8715393acbaa7b252f6d7 Issue introduced in 2.6.25 with commit 2c5c54aca9d0263f81bd4886232835ba31f7635a and fixed in 7.3.2 with commit 574aa7782c780b130463e1d7c0605a9e617880d1 Issue introduced in 2.6.25 with commit 2c5c54aca9d0263f81bd4886232835ba31f7635a and fixed in 7.4-rc1 with commit 125fe08ff6cfa064e1212f586f01993ee45c0330 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-99432 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/dlmconvert.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/ecc5b17b8d2b1f720262e991896da2c909154a4d https://git.kernel.org/stable/c/a3dd8d3af023837516d8715393acbaa7b252f6d7 https://git.kernel.org/stable/c/574aa7782c780b130463e1d7c0605a9e617880d1 https://git.kernel.org/stable/c/125fe08ff6cfa064e1212f586f01993ee45c0330