From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796047058; b=dVCepuuUYZfenauG1zs3xvVwSHdzk9P0DhfZgQn7WeUFsHFUqmtL5nPLjoj2xD1lvFmh q49I7sCL3+RUiOkXyKgVrj4kYCWuYhLNEnDXxTH5QJMaLbzWW1Yb3BEUAkYpUUDnjVKsZ pbCz+EfU83dnfAk9buSev2EZmgoxzFB0oZEUFtI85hj4tivfXkovs6e2hg6/M6Det2kTz JY0L26RizaCQ+u+Q6XA0LJmBH9dG5l+ym628TPXNah9zn50ikjM42HJSvYoVX4b1cMaWG F8jSl9O3TPWjim4SShMYz0CTD5uWWZ4gVbyMYfc0IXfYtrxiLkOFwJ2HdWARv6HdO3g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796047058; 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=HRMSV3NmEaNR9LIEARrHw+Cmbxm/KzxEvEnVyN+BDqY=; b=E2DjbEVb7QuOjFSqzpx1l1G9VfJhws1KAufodgAr46ekL8nrH4QuK4uckgTqIZMfzVhP roNBzMUf83PNqE8jMBh7V4hgaqXfhtG3S6Ozm0cLcb4pAkOZxd0RNgJXIjw9ZEKwf7qYL 7mg1yh+foVPfXVX8ZcyGbrtkoW6nutR7xq4rGt8wzAJwQfk+yrh9SZIHOUBQAw7IggoGS Qev09G/y58zzA88T9GP6kXL2k4AfX3LNQW3bewxyqmBNV4MnZ1WqvFa32YBjYE38zDn25 NXNyAAVKEKrq+4onjNKhoGtPg3sMUsm2+tas2c4M+Rq9mhR7t5FuuDyviPqt4XUMx6w== 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=lbz5Zgvt; 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 B907B606A683 for ; Mon, 30 Nov 2026 13:57:38 +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=lbz5Zgvt Received: by smtp.kernel.org (Postfix) with ESMTPSA id 932AB1F00936; Mon, 30 Nov 2026 13:57:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796047058; bh=HRMSV3NmEaNR9LIEARrHw+Cmbxm/KzxEvEnVyN+BDqY=; h=From:To:Cc:Subject:Date:Reply-To; b=lbz5ZgvtupecPZR0WmLWXuFdLVv7E2h0luoiqbs1HyMGSLZnwWU6HRpFE8cELsdUQ 4WFnMMjpUpdcaRyKfEt2Q7de1F808vYEzMSswziPwSwShKfYweOdNfwySqLPuRe2y5 QpsrVrRNb7uO9OWut34G77P3Axgo616PPol+Bw04= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-139150: nvmet-rdma: fix double puts after a failed RDMA WRITE Date: Mon, 30 Nov 2026 14:32:39 +0100 Message-ID: <2026113042-CVE-2026-139150-e60c@gregkh> X-Mailer: git-send-email 2.56.1 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=4234; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Wq4Qh/8n7dGuFOtxWiQgPPv+mU5LTXQ/EKRkxFQnJvg=; b=owGbwMvMwCRo6H6F97bub03G02pJDNm8VfuMT9hvlM8T0zzrsbLkfQbHOkvleznr55+6Xrkqr e49+wqvjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIux8M893/XD9+rvhyT+SG Q9/WX188tya/w5BhfoZjxq0kOe2JElPmV3TU/b3BUuJyCQA= 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: nvmet-rdma: fix double puts after a failed RDMA WRITE For a read with T10-PI the RDMA WRITE is posted alone and nvmet_rdma_write_data_done() posts the SEND once the metadata check result is known. By then the request has been completed and its references put: __nvmet_req_complete() put ns->ref and the pc_ref, and nvmet_req_complete() sq->ref, right after queuing the response. The error branch of nvmet_rdma_write_data_done() copies the one from nvmet_rdma_read_data_done() and calls nvmet_req_uninit(), which puts all three again. A WRITE fails whenever the connection ends with reads in flight, which is up to the host. Depending on timing the sq->ref count goes to zero early and the queue is freed under the remaining completions, or never reaches zero and nvmet_sq_destroy() sleeps forever, or percpu_ref_put() dereferences NULL after percpu_ref_exit(). ns->ref stays too low for good, so disabling the namespace hangs too. Reproduced with KASAN over rxe with a test patch forcing the PI path. Drop the nvmet_req_uninit(). The branch still releases the RDMA context and the response, which is all the request owns at that point. The Linux kernel CVE team has assigned CVE-2026-139150 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit b09160c3996c11d62a08f9534c755103a10a89b4 and fixed in 5.10.275 with commit 04284e1aaa2644d0545b4da5796032b9bbaf3bf7 Issue introduced in 5.8 with commit b09160c3996c11d62a08f9534c755103a10a89b4 and fixed in 5.15.226 with commit 8ad99847a4404d6511e9dc96d3424145594dc878 Issue introduced in 5.8 with commit b09160c3996c11d62a08f9534c755103a10a89b4 and fixed in 6.1.193 with commit 96ef50841a6b1dd9aca7e6161306574c16f9dab7 Issue introduced in 5.8 with commit b09160c3996c11d62a08f9534c755103a10a89b4 and fixed in 6.6.163 with commit 924393942038ea82073719ce999cc7272584f40e Issue introduced in 5.8 with commit b09160c3996c11d62a08f9534c755103a10a89b4 and fixed in 6.12.119 with commit 5355474f0cef789cf22236351cf18d09ffa46984 Issue introduced in 5.8 with commit b09160c3996c11d62a08f9534c755103a10a89b4 and fixed in 6.18.65 with commit 7adbb35416225a013739854fc5014417a835b4ad Issue introduced in 5.8 with commit b09160c3996c11d62a08f9534c755103a10a89b4 and fixed in 7.3.6 with commit 79c4b29b0520d52010caf94bc7b1b44c3e9de6f1 Issue introduced in 5.8 with commit b09160c3996c11d62a08f9534c755103a10a89b4 and fixed in 7.4-rc1 with commit f1dac2a2e75260d1466d9f03ccf0944d6d0449a4 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-139150 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/nvme/target/rdma.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/04284e1aaa2644d0545b4da5796032b9bbaf3bf7 https://git.kernel.org/stable/c/8ad99847a4404d6511e9dc96d3424145594dc878 https://git.kernel.org/stable/c/96ef50841a6b1dd9aca7e6161306574c16f9dab7 https://git.kernel.org/stable/c/924393942038ea82073719ce999cc7272584f40e https://git.kernel.org/stable/c/5355474f0cef789cf22236351cf18d09ffa46984 https://git.kernel.org/stable/c/7adbb35416225a013739854fc5014417a835b4ad https://git.kernel.org/stable/c/79c4b29b0520d52010caf94bc7b1b44c3e9de6f1 https://git.kernel.org/stable/c/f1dac2a2e75260d1466d9f03ccf0944d6d0449a4