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 5FD3F3783A0 for ; Sat, 15 Aug 2026 06:28:23 +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=1786775304; cv=none; b=C7vVtodqsIN3sWRkRM1+NVvoarrW2qccX6b4kEgVuTc9oCAPODMMaU6vYNKmZFYJTQx0blAPDW3rZDRg5Pop/rK1Mk8UVUEBlMpOAqpBi4WzxVmfQnzi8n8bWqCVrxghQVjyiOp62COkMiX4OJotGgblMjEAkTqdPA/vqkma3lE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775304; c=relaxed/simple; bh=6wR20G85Rxzsz9cufYTfPlT2+OrXQEv5jUWrusvBUso=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RxuzAm7DyrI8DHt7SyTs4vXc4ZmnaoCvPm/NgExPWAK/8+0/NLqddlG0jjfnLOxnNLVsVmA0ielZpFC7XsQtrNPhp4ViummMYtencGG0TwQMJBZiT1752H3loNdZWfEcKats351q9znImOP87wzpgKQf5q05xGlbvWW/HKwM7ZY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XgNPyGiL; 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="XgNPyGiL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AAEFA1F000E9; Sat, 15 Aug 2026 06:28:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775303; bh=4oj7LzPNyYnTBSTpNc1j1ktHxaQmGNiDUU+IgFXTvdc=; h=From:To:Cc:Subject:Date:Reply-To; b=XgNPyGiLsmkPBbzjkjIiFmDUUkGSWiAJOS8U8Sk14NQPuKi6NTz2p0nmdZT2lJc9a fdwzFl4obi/NcwRJXqFalRDmabkVqCl6vDrrY+nsdu1ztlo3y3ibBeLDCf2UuOCaqX +dCOKW76vVZzn2YCSWtY/jFwx6DPr5ACkbT484oI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72440: md/raid1: fix writes_pending and barrier reference leaks on write failures Date: Sat, 15 Aug 2026 15:08:39 +0900 Message-ID: <2026081529-CVE-2026-72440-c178@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=2506; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=17Ky2Y5gheg1AgT8Z84jZA/RcL82+WsXZRtEf09nJTA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDF9z+zScbFbs8Dq5vlDi77LL2w15Fvpe0ktduOetx W+//StjO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAifb8YFiyZqHudK7Zo6+wD u/vPSQStYHqU3skwP8z0zebnn91j5uiuZXRxL904M21DIQA= 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/raid1: fix writes_pending and barrier reference leaks on write failures raid1_make_request() acquires a writes_pending reference with md_write_start() before calling raid1_write_request(). Several failure paths in raid1_write_request() complete the bio and return without reaching the normal write completion path, causing the corresponding md_write_end() to be skipped. Make raid1_write_request() return a status indicating whether the write request was successfully queued. This allows raid1_make_request() to call md_write_end() when raid1_write_request() fails. Additionally, if wait_blocked_rdev() fails after wait_barrier() succeeds, the associated barrier reference is not released. Call allow_barrier() before returning from that path to keep the barrier accounting balanced. The Linux kernel CVE team has assigned CVE-2026-72440 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 5aa705039c4fca84575539bfa2b8a28454a3d2ca and fixed in 7.1.5 with commit bffbbfcbd9393e315a7a4286dcd70e875265db9a Issue introduced in 5.17 with commit 5aa705039c4fca84575539bfa2b8a28454a3d2ca and fixed in 7.2-rc1 with commit 8e065a1602511282fc0da2dc89445e0eb71a681c 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-72440 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/raid1.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/bffbbfcbd9393e315a7a4286dcd70e875265db9a https://git.kernel.org/stable/c/8e065a1602511282fc0da2dc89445e0eb71a681c