Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF43F3B893B for ; Wed, 25 Mar 2026 10:32:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434766; cv=none; b=TcDAYvNKPRvahgDXHCs97SX1VJsTl70DBYyAPTZr5so/XJnE4NDXztbyk1D7lhiiu1Mp+qNGumeYUknM+d4gKEhp7Pg5KERIGhPBINJkSuOwqGehNzf1nbYTTJm3KqrjaLhzCRI38ZbRKROEPUjUOnmWx6jmi6muV/dNdgCcQ98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434766; c=relaxed/simple; bh=dATbuZF9lOGuPVrOiez7s9072VwV1LDzNme8ybhYl7w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=afvo6R8Qit9ttvL7unh8Ol4NxYDjtu9zEzYDaEWTDP/2Jz5xUaS8iorcIW/NE6torbp3b+mTySU+KzKyQnElNGRgx6yU3DPcw0IMHWKdgKqiEH++tGUNtRxuWA8tc6QpFcDDiy6JlXjZ1AyA3d22+Nd99Sdj9Pudj3Z1aVNYV1s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=POcI+y4R; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="POcI+y4R" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41E0BC4CEF7; Wed, 25 Mar 2026 10:32:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774434766; bh=dATbuZF9lOGuPVrOiez7s9072VwV1LDzNme8ybhYl7w=; h=From:To:Cc:Subject:Date:Reply-To:From; b=POcI+y4RxNzUsZn5kgLPR28MaFZrxx2q1+uxmOLRDKZZEhn7xqXVaCdqPLBGR/hci uzIEFDcnnYDbF585IsC8v27UKFPygzkiaOR1lYChPSEOT4H6y0kar/kmQb6bRzTn2B ikm85Bt3b26w8WfjvqRdBy2/0rU9pcBOIR3lhk2k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23356: drbd: fix "LOGIC BUG" in drbd_al_begin_io_nonblock() Date: Wed, 25 Mar 2026 11:27:40 +0100 Message-ID: <2026032537-CVE-2026-23356-0014@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3720; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=j2rb1gSAnnJmZCjzjJfTSsKSJuoWmBfHV6Veu+fyUss=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmHd8SenxKQkSrt0eEy50Hl7yspWx+suqk+wfd4WcFvj pzEpGCJjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI0jmG+UGK09Zmhv8+Yrb5 rdQX6RP/urneH2dYcHCWnodA+7M19ysWdS1d+uDt+bMNRgA= 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: drbd: fix "LOGIC BUG" in drbd_al_begin_io_nonblock() Even though we check that we "should" be able to do lc_get_cumulative() while holding the device->al_lock spinlock, it may still fail, if some other code path decided to do lc_try_lock() with bad timing. If that happened, we logged "LOGIC BUG for enr=...", but still did not return an error. The rest of the code now assumed that this request has references for the relevant activity log extents. The implcations are that during an active resync, mutual exclusivity of resync versus application IO is not guaranteed. And a potential crash at this point may not realizs that these extents could have been target of in-flight IO and would need to be resynced just in case. Also, once the request completes, it will give up activity log references it does not even hold, which will trigger a BUG_ON(refcnt == 0) in lc_put(). Fix: Do not crash the kernel for a condition that is harmless during normal operation: also catch "e->refcnt == 0", not only "e == NULL" when being noisy about "al_complete_io() called on inactive extent %u\n". And do not try to be smart and "guess" whether something will work, then be surprised when it does not. Deal with the fact that it may or may not work. If it does not, remember a possible "partially in activity log" state (only possible for requests that cross extent boundaries), and return an error code from drbd_al_begin_io_nonblock(). A latter call for the same request will then resume from where we left off. The Linux kernel CVE team has assigned CVE-2026-23356 to this issue. Affected and fixed versions =========================== Fixed in 6.1.167 with commit 7752569fc78e89794ce28946529850282233f99d Fixed in 6.6.130 with commit e91d8d6565b7819d13dab21d4dbed5b45efba59b Fixed in 6.12.77 with commit eef1390125b660b8b61f9f227a03bb9c5e6d36a5 Fixed in 6.18.17 with commit d1ef3aed4df2ef1fe46befd8f2da9a6ec5445508 Fixed in 6.19.7 with commit f558e5404a72054b525dced1a0c66aa95a144153 Fixed in 7.0-rc2 with commit ab140365fb62c0bdab22b2f516aff563b2559e3b 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-23356 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: drivers/block/drbd/drbd_actlog.c drivers/block/drbd/drbd_interval.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/7752569fc78e89794ce28946529850282233f99d https://git.kernel.org/stable/c/e91d8d6565b7819d13dab21d4dbed5b45efba59b https://git.kernel.org/stable/c/eef1390125b660b8b61f9f227a03bb9c5e6d36a5 https://git.kernel.org/stable/c/d1ef3aed4df2ef1fe46befd8f2da9a6ec5445508 https://git.kernel.org/stable/c/f558e5404a72054b525dced1a0c66aa95a144153 https://git.kernel.org/stable/c/ab140365fb62c0bdab22b2f516aff563b2559e3b