Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 159EC4F4CE7 for ; Thu, 17 Sep 2026 16:23:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662216; cv=none; b=GpVo6ZcwDIdkJD5hHbCdyKa+4H45Cc6Jsccx1I8YZkAC7rgkXi3H7xTVQ+XFvVF7O5d3hSC0DYLNBr8iFpNGSJwWQGvb5MSwa8N7cp27FJ3SMO99uub+Ni14rZbitUgmh7JzJSh8RrgIVvzmN4puyexq1kuKieQ0RRfX4EIzGY0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662216; c=relaxed/simple; bh=2shHXsJvlK8R3GZPoQ2F/UI9cHVPW2VOwNOvkQM+uVI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S7W7fxWm0Ae1GZ+ui5emYCHvFjNEYezvDVA6mr6IbeIAgHhYkX56hr4L7hYJTSthjbgj+vXDTpQN2T4GhVBO8NmriGQiqQO4fwKasr9rEgDHKQnp0plOH4pzqeTamaEwhvHuNALVEJnlQulQeN4F2OO9zFa6J15Wdnl2+jwLFoY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WIn1afsK; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="WIn1afsK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8C491F00898; Thu, 17 Sep 2026 16:23:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662214; bh=fbJikMzffXBmK7FhIki6eGwLjh6vNXJtcj5MnQdzhIc=; h=From:To:Cc:Subject:Date:Reply-To; b=WIn1afsKaoaAuYCIgAT6tRknJmznuzaCdlQ38ErFm/B+c1R8MoRxS1XUOTf6W5UUp d+GP0YD8om01CHrNFQKOWMF/xUhDdeJJEAdF5HxLXOI2xwlwGiXyu0sbCecM06Qieb cSQE1B7MTnjsIH10c92AutwHZ3Xsg3I9YyXNalpQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90278: md: wait for behind writes before destroying bitmap Date: Thu, 17 Sep 2026 17:11:48 +0100 Message-ID: <2026091749-CVE-2026-90278-0a5b@gregkh> X-Mailer: git-send-email 2.55.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=2696; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=96gQF9j0gWnBPc2GT25LsIreFgxMmiU+QXXrQ4SWymw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBCaxdh2N3b/5uesLMdU172aVs07tixOecnjDpINCH q9P5U1364hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJxHxhmGfcOJFfLODo7CUP KrqZ3Z59k41b/IphwVJO5fvuEv+DX03Z+Wa+ULFYV2KYJgA= 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: md: wait for behind writes before destroying bitmap __md_stop() destroyed the bitmap before calling mddev_detach(). That made mddev_detach() skip bitmap_ops->wait_behind_writes(), because the bitmap was already disconnected from mddev. This was still safe for the legacy bitmap because bitmap_destroy() waits for behind writes itself. llbitmap keeps that wait in its ->wait_behind_writes() operation instead, while ->destroy() tears down the llbitmap storage. With the old ordering, RAID1 behind-write completions could still run after llbitmap storage had been freed. Call mddev_detach() before md_bitmap_destroy() so the common detach path can wait for behind writes while the bitmap is still alive. Only destroy the bitmap after those users are gone. The Linux kernel CVE team has assigned CVE-2026-90278 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 5ab829f1971dc99f2aac10846c378e67fc875abc and fixed in 6.18.52 with commit 73881ff7a75913f919a1ce9d9571bfaab8e8588d Issue introduced in 6.18 with commit 5ab829f1971dc99f2aac10846c378e67fc875abc and fixed in 7.2.6 with commit 4224dccd325a9380e8edfb66aad8bb5771c94222 Issue introduced in 6.18 with commit 5ab829f1971dc99f2aac10846c378e67fc875abc and fixed in 7.3-rc1 with commit 2a79365b2278f16e163e4024086105693b421601 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-90278 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/md/md.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/73881ff7a75913f919a1ce9d9571bfaab8e8588d https://git.kernel.org/stable/c/4224dccd325a9380e8edfb66aad8bb5771c94222 https://git.kernel.org/stable/c/2a79365b2278f16e163e4024086105693b421601