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 7E624334695 for ; Wed, 24 Dec 2025 12:27:54 +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=1766579274; cv=none; b=ZzNBcnoXeH5vx7sDMHstlcrdBNFS5bmD6ATFsZqZ3IjGWZXNZ37fdcC+DXH63l9OBRh0AsZTuCeqlRMAK7NK6rVshc1ybT/Z7N6yp4epgx59QQrYKZMrWVs1UmrbN0EFaPgjTBcS0ssD0scw5Ov1J9vsH/XQ2UoqfEiJ7pApZWg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766579274; c=relaxed/simple; bh=hov4K5CrH6HOG7FpylOwF0H94tfTKeyaElRD2Jt6o3c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=XFJktcG45B+SRHqHkhyU+CAHO0nUIS2JqWGKfgH6PK8Nmg/VmmWzbrOBoaCWNprDh2EStvQW2WIcgpswBPHWHJAkSCHZjigUjkiinrcHl1HNAl0EPGIqk7Jk5PsgQjs0YUaL9eYeZm2K4OWT27CPv/Iezk6HQ0G9PY4bLpGw/XI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Q0bnw960; 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="Q0bnw960" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9E4BC4CEFB; Wed, 24 Dec 2025 12:27:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766579274; bh=hov4K5CrH6HOG7FpylOwF0H94tfTKeyaElRD2Jt6o3c=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Q0bnw960w9tWkWHv3wl67EJQVs9PRbcsO5IytlJatX4C5ZkNMvcXtYCuJf1ifT6n6 JJF/sc219PUCY3zZvKSgFqEdS8jRbz6GLgXq2DetZYKPF0PCtunJDGS8jYt/rVsk4J 3297FOQwLvetfRhW6Cupi/rRX9bnh0rTzu3iGbGI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54048: RDMA/bnxt_re: Prevent handling any completions after qp destroy Date: Wed, 24 Dec 2025 13:26:41 +0100 Message-ID: <2025122424-CVE-2023-54048-ea7d@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=3558; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qdSW5JntXmvUXppZ3oB5ltN8JWcDyxX4HW9zXYSdJns=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnetz8YafYvOfPJalWSze3Qtp3u9jVv/Lnn/OZ5sud/6 Sau7umKHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR1+8Z5qcGuS+R6o31+N4z yVpnT4DKmZI1/gwL9pu3+eodcjv2VS5p4vOVBo+VGwMiAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: RDMA/bnxt_re: Prevent handling any completions after qp destroy HW may generate completions that indicates QP is destroyed. Driver should not be scheduling any more completion handlers for this QP, after the QP is destroyed. Since CQs are active during the QP destroy, driver may still schedule completion handlers. This can cause a race where the destroy_cq and poll_cq running simultaneously. Snippet of kernel panic while doing bnxt_re driver load unload in loop. This indicates a poll after the CQ is freed.  [77786.481636] Call Trace: [77786.481640]   [77786.481644]  bnxt_re_poll_cq+0x14a/0x620 [bnxt_re] [77786.481658]  ? kvm_clock_read+0x14/0x30 [77786.481693]  __ib_process_cq+0x57/0x190 [ib_core] [77786.481728]  ib_cq_poll_work+0x26/0x80 [ib_core] [77786.481761]  process_one_work+0x1e5/0x3f0 [77786.481768]  worker_thread+0x50/0x3a0 [77786.481785]  ? __pfx_worker_thread+0x10/0x10 [77786.481790]  kthread+0xe2/0x110 [77786.481794]  ? __pfx_kthread+0x10/0x10 [77786.481797]  ret_from_fork+0x2c/0x50 To avoid this, complete all completion handlers before returning the destroy QP. If free_cq is called soon after destroy_qp, IB stack will cancel the CQ work before invoking the destroy_cq verb and this will prevent any race mentioned. The Linux kernel CVE team has assigned CVE-2023-54048 to this issue. Affected and fixed versions =========================== Issue introduced in 4.11 with commit 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 and fixed in 5.15.124 with commit b79a0e71d6e8692e0b6da05f8aaa7d69191cf7e7 Issue introduced in 4.11 with commit 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 and fixed in 6.1.43 with commit b8500538b8f5b2cd86b02754c8de83eaa7a2d6ba Issue introduced in 4.11 with commit 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 and fixed in 6.4.8 with commit 7faa6097694164380ed19600c7a7993d071270b9 Issue introduced in 4.11 with commit 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 and fixed in 6.5 with commit b5bbc6551297447d3cca55cf907079e206e9cd82 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-54048 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/bnxt_re/ib_verbs.c drivers/infiniband/hw/bnxt_re/qplib_fp.c drivers/infiniband/hw/bnxt_re/qplib_fp.h 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/b79a0e71d6e8692e0b6da05f8aaa7d69191cf7e7 https://git.kernel.org/stable/c/b8500538b8f5b2cd86b02754c8de83eaa7a2d6ba https://git.kernel.org/stable/c/7faa6097694164380ed19600c7a7993d071270b9 https://git.kernel.org/stable/c/b5bbc6551297447d3cca55cf907079e206e9cd82