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 EB6D0F507 for ; Wed, 6 May 2026 11:30:29 +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=1778067030; cv=none; b=LpbNUvbQxXWHS9y1YsLeTivbopuqj7+4i0cHKXKj1L036ZnNA9sMI8I031SVUcKIwnqz95UADApEAZ1VtF/LwiwCSHYqxRWnSaKRw7+P5zddTconKK6K54RCfk7SusxuernZGa+MQr0AnZ99Do/ZjVPllWUs/Bc7Hz3mKXkL+Og= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067030; c=relaxed/simple; bh=dfA7SI11S2BjBEYxHxzeDy96qQErNQdPQPfQnPTudBI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HO1mE3UbOS0f6BQxYOapE7ew27FF2ndHn0QdyDB//8oyZH2ao6Lq4lvQFb0DhE84fnhX+N1eLyoUSPwxjjnVlzURB4pCpyNCJwA7IC8/H8oCS9XWJC5EDL+bREG5ZQrmEhnjpfp4MMKKDcuSaLQzcaK1v+ASHdVMa1qL4XwDhN4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=u0yDQnji; 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="u0yDQnji" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B43AC2BCB8; Wed, 6 May 2026 11:30:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778067029; bh=dfA7SI11S2BjBEYxHxzeDy96qQErNQdPQPfQnPTudBI=; h=From:To:Cc:Subject:Date:Reply-To:From; b=u0yDQnjiMzIcW28231w675ZGcMM1VqoDUa7IVlcSZL3dQVrvkbadUTUuSY/u5yeqC QejuIIMv/Vw9YbYedFWFvgO1pCZFXpQOvuj9uQP5qtgN8/n0UmBp1g4OL40v2ZifC0 2+BVA82p7iPFXTYvHApk7UkI8pAHjgTR5dHTdGh8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43128: RDMA/umem: Fix double dma_buf_unpin in failure path Date: Wed, 6 May 2026 13:27:24 +0200 Message-ID: <2026050620-CVE-2026-43128-5ff4@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=3295; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=X6gDIxotPgwj7UMDAJq386wh5SXJg2aAxghY1mJEGNg=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/VWfIps/edMH+xb+1j1hfO741NL46ax3DtbtFRQYKA aXPd9xe0hHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATuR7GMD/eSeR//zSHbKvk xTrytjw2FpKP2Bjm50de7/Z8U2B7sUz43x+dI+muOsn3AA== 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: RDMA/umem: Fix double dma_buf_unpin in failure path In ib_umem_dmabuf_get_pinned_with_dma_device(), the call to ib_umem_dmabuf_map_pages() can fail. If this occurs, the dmabuf is immediately unpinned but the umem_dmabuf->pinned flag is still set. Then, when ib_umem_release() is called, it calls ib_umem_dmabuf_revoke() which will call dma_buf_unpin() again. Fix this by removing the immediate unpin upon failure and just let the ib_umem_release/revoke path handle it. This also ensures the proper unmap-unpin unwind ordering if the dmabuf_map_pages call happened to fail due to dma_resv_wait_timeout (and therefore has a non-NULL umem_dmabuf->sgt). The Linux kernel CVE team has assigned CVE-2026-43128 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 1e4df4a21c5ac722df1099eee30cad9246c889b5 and fixed in 6.1.165 with commit 70542b69abff34d24b11ae0bb200cc7a766d18df Issue introduced in 5.16 with commit 1e4df4a21c5ac722df1099eee30cad9246c889b5 and fixed in 6.6.128 with commit b324327ff6f48d8065dca67eb3b91357e72726bd Issue introduced in 5.16 with commit 1e4df4a21c5ac722df1099eee30cad9246c889b5 and fixed in 6.12.75 with commit ba3bf0f1bf1d5d0404678485e872980532fcc2c4 Issue introduced in 5.16 with commit 1e4df4a21c5ac722df1099eee30cad9246c889b5 and fixed in 6.18.16 with commit d3e32e2f3262f1b25d77c085ace38e2cc4ad75cf Issue introduced in 5.16 with commit 1e4df4a21c5ac722df1099eee30cad9246c889b5 and fixed in 6.19.6 with commit 40126bcbefa79ea86672e05dae608596bab38319 Issue introduced in 5.16 with commit 1e4df4a21c5ac722df1099eee30cad9246c889b5 and fixed in 7.0 with commit 104016eb671e19709721c1b0048dd912dc2e96be 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-43128 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/infiniband/core/umem_dmabuf.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/70542b69abff34d24b11ae0bb200cc7a766d18df https://git.kernel.org/stable/c/b324327ff6f48d8065dca67eb3b91357e72726bd https://git.kernel.org/stable/c/ba3bf0f1bf1d5d0404678485e872980532fcc2c4 https://git.kernel.org/stable/c/d3e32e2f3262f1b25d77c085ace38e2cc4ad75cf https://git.kernel.org/stable/c/40126bcbefa79ea86672e05dae608596bab38319 https://git.kernel.org/stable/c/104016eb671e19709721c1b0048dd912dc2e96be