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 8440E43C069 for ; Wed, 6 May 2026 11:35:31 +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=1778067331; cv=none; b=C42v5sCyyDLLQu/VMioVQB6fUsCj4SDmvcOWiaZhzgqnVpJITcq1/wWNL8RCQOUKhJvWyCLyh0Rly8DvzGrVbFmqyPxvEHcCyiXe+84OVPlkKx7PcExt4gklOtzFA9ph9T8/69AnjN7UajiijsN26zqq5iftxfNYvfFgu2q9tTo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067331; c=relaxed/simple; bh=9fSLJnY8TjppKnyDo0AX5jmN6Olg/4WCbpYesNOaVek=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZKZ5dKVIABO5kwGoMaumpYo1Y3z3cfi4JhAHSsIU60hwxjyQ2+6vdB7TIj6OnVfJxt9+Fb+FDCJVFr6ApShKE9mvW7wYJOSDkciOCYmKWx+QjWXhWbDgy1PU5bs66oU7QoFDhSW9YOZ/LgASSinGGZtNKln3HYKrQ2mkdU+odvU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rptL6rft; 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="rptL6rft" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15EDCC2BCB8; Wed, 6 May 2026 11:35:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778067331; bh=9fSLJnY8TjppKnyDo0AX5jmN6Olg/4WCbpYesNOaVek=; h=From:To:Cc:Subject:Date:Reply-To:From; b=rptL6rftOGreJ+NubqHI/9mB1dIDKkGKDs51Vyp0GDYANETQTsXE5dMcA8uNXpLj4 mAJLbf4rTa0ITe9dOoyT5rh3k6cNG+K6eY1RuGpl7SQADQJsBfTCCDu/ObXomuet8c Cup6Ni7kgTRecI5EyHtjKTAnxNBiTJfrKyXN8OKs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43278: dm: clear cloned request bio pointer when last clone bio completes Date: Wed, 6 May 2026 13:29:54 +0200 Message-ID: <2026050613-CVE-2026-43278-95fa@gregkh> X-Mailer: git-send-email 2.54.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=3677; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kMy76FIGZDIwxMhgaeHRmLrhyMXOSqk9As1jxAaM1C0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/Vc+uF7j54KiYybyUOYtmf11t7tkzed+E2U71Nf/q3 j6qL5p/uCOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmomTBsOB0THXpk3mhq0SW +36/uk3FiuXIifsMC9b4zjc7IcaU+efx6YWaMXJqbRY54QA= 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: dm: clear cloned request bio pointer when last clone bio completes Stale rq->bio values have been observed to cause double-initialization of cloned bios in request-based device-mapper targets, leading to use-after-free and double-free scenarios. One such case occurs when using dm-multipath on top of a PCIe NVMe namespace, where cloned request bios are freed during blk_complete_request(), but rq->bio is left intact. Subsequent clone teardown then attempts to free the same bios again via blk_rq_unprep_clone(). The resulting double-free path looks like: nvme_pci_complete_batch() nvme_complete_batch() blk_mq_end_request_batch() blk_complete_request() // called on a DM clone request bio_endio() // first free of all clone bios ... rq->end_io() // end_clone_request() dm_complete_request(tio->orig) dm_softirq_done() dm_done() dm_end_request() blk_rq_unprep_clone() // second free of clone bios Fix this by clearing the clone request's bio pointer when the last cloned bio completes, ensuring that later teardown paths do not attempt to free already-released bios. The Linux kernel CVE team has assigned CVE-2026-43278 to this issue. Affected and fixed versions =========================== Fixed in 5.10.252 with commit 3d746b639be4b4f5cd8ce2b06aa52dc443f50edc Fixed in 5.15.202 with commit 9a95b98202113045bc1a5bcb30388a500f25e050 Fixed in 6.1.165 with commit 8d9ddad561136f7e6a9346767bf97b4d79e38e67 Fixed in 6.6.128 with commit 7daf279c674d515fb22a727a7bbc92aeb35c5442 Fixed in 6.12.75 with commit e2e738e8dfbbf83bd2bae0467ec4420cc52da42a Fixed in 6.18.16 with commit b1c1a2637ebd675aa2d71fee8c70da8791d73850 Fixed in 6.19.6 with commit 83d72091804600ead96dc9e9f518ea56cb4942f6 Fixed in 7.0 with commit fb8a6c18fb9a6561f7a15b58b272442b77a242dd 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-43278 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/dm-rq.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/3d746b639be4b4f5cd8ce2b06aa52dc443f50edc https://git.kernel.org/stable/c/9a95b98202113045bc1a5bcb30388a500f25e050 https://git.kernel.org/stable/c/8d9ddad561136f7e6a9346767bf97b4d79e38e67 https://git.kernel.org/stable/c/7daf279c674d515fb22a727a7bbc92aeb35c5442 https://git.kernel.org/stable/c/e2e738e8dfbbf83bd2bae0467ec4420cc52da42a https://git.kernel.org/stable/c/b1c1a2637ebd675aa2d71fee8c70da8791d73850 https://git.kernel.org/stable/c/83d72091804600ead96dc9e9f518ea56cb4942f6 https://git.kernel.org/stable/c/fb8a6c18fb9a6561f7a15b58b272442b77a242dd