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 4F6A129D297 for ; Tue, 30 Dec 2025 12:11:53 +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=1767096713; cv=none; b=hy9LLSezOFgZWPf0JkiY/qfH6yTjucXPVyjowbW9t85f/RK3Npqp6y+xkJzfFagqFgcwzi8xdCxAeiWXGJf2Tfdt/WREn8+4dROfMFunDJ5E2fyzx2ndvZWvpj3dZF+hkgyEVUKWCTx29IWtzbZxhkCtuZPFB1GI19uHw0sKm6I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096713; c=relaxed/simple; bh=E8lWqAiL5w8R6Q+U35Tu2ROr/TR8CrA80UxqXww5vQQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Yn+w3LNM85+e1UqMEzQxOQfAo0klHjOWMjm+B/Bm7eDLL60bg0E0KOr9OY2mT5LL1ld77JzaROwTU4XygyccJPt8dmTcS2LfCUNLE/4KYYwwUi81ZZsXgQG+XO7eJtxxKZjCOOpwafKzqOstEw6tpu9oIlQXGm0/1IBaAGK8JlU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Os2eCi5H; 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="Os2eCi5H" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CEC37C4CEFB; Tue, 30 Dec 2025 12:11:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096713; bh=E8lWqAiL5w8R6Q+U35Tu2ROr/TR8CrA80UxqXww5vQQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Os2eCi5H9mM2lqJGIBMr+thS3d0ZY803NGrdKSa+fZhg68oRtiVsHDxpEXmjxZUNp Nym0XRdDZ3FezQHgyuhmH2Q75O2Lu8masDyD+h6UtC+62xqCeTWCjyjlJrUoTd8cYH XjrlWVNcRbR+m4f+v+AYMr95AfnADEKukb1VB8dw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54201: RDMA/efa: Fix wrong resources deallocation order Date: Tue, 30 Dec 2025 13:10:09 +0100 Message-ID: <2025123030-CVE-2023-54201-3f26@gregkh> X-Mailer: git-send-email 2.52.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=2672; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JBVsAWPmaQOJofmoPeBmqUdlDFeJK29g5sdrlMdyLmY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBB36XRJh///iMRfIWU0zKhvn3bfvjVnQ4pRXyXfX71 amg/0apI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYipckwi/mzs1VzaYG+nkHm A/3lxr1qr3xsGObHzTgetGAOk7Nvf1DLlvojjRy/dmgDAA== 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/efa: Fix wrong resources deallocation order When trying to destroy QP or CQ, we first decrease the refcount and potentially free memory regions allocated for the object and then request the device to destroy the object. If the device fails, the object isn't fully destroyed so the user/IB core can try to destroy the object again which will lead to underflow when trying to decrease an already zeroed refcount. Deallocate resources in reverse order of allocating them to safely free them. The Linux kernel CVE team has assigned CVE-2023-54201 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit ff6629f88c529b07d9704c656c64dae76910e3e9 and fixed in 6.1.53 with commit cf38960386f3cc4abf395e556af915e4babcafd2 Issue introduced in 5.7 with commit ff6629f88c529b07d9704c656c64dae76910e3e9 and fixed in 6.4.16 with commit e79db2f51a564fd4daa3e508b987df5e81c34b20 Issue introduced in 5.7 with commit ff6629f88c529b07d9704c656c64dae76910e3e9 and fixed in 6.5.3 with commit 24f9884971f9b34915b67baacf7350a3f6f19ea4 Issue introduced in 5.7 with commit ff6629f88c529b07d9704c656c64dae76910e3e9 and fixed in 6.6 with commit dc202c57e9a1423aed528e4b8dc949509cd32191 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-2023-54201 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/hw/efa/efa_verbs.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/cf38960386f3cc4abf395e556af915e4babcafd2 https://git.kernel.org/stable/c/e79db2f51a564fd4daa3e508b987df5e81c34b20 https://git.kernel.org/stable/c/24f9884971f9b34915b67baacf7350a3f6f19ea4 https://git.kernel.org/stable/c/dc202c57e9a1423aed528e4b8dc949509cd32191