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 C89272ED872 for ; Tue, 30 Dec 2025 12:25:42 +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=1767097542; cv=none; b=QVobkSRbYdW2q5yF45l+mz3R3InH8bYE+vQcr6FhHXI2ZFDmCIruvBqXRC0EeskmT3CKtBuayLD3Eoj49+/AN1Grurjlfkvx+wiNdy27qjdTHvmCkezHa/SWhqppmHAriFStIq2B9XUn0WHmlfZNymPCfPdWz6q5kqvH8ki5jTw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767097542; c=relaxed/simple; bh=Wrw9kmTmDt3qOAPCVQ4ExhPPJx3WyyDsQmeqypaeHYw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fQfjZANZ0LocmQ3CDsjpsdWArUHISH9kyuZFYUM4TqzsGZkQONJ+ubhSpDyutRpdbqbOP/JQFy0osZc/KVzdtFXQrUbJO6Pilxgd5O6CQOEglgIGGaGgtw5pVWne0cTl2S26vOAOquJwLQYmFZ5kHcUxKhmmlzXAET3aWcz1t8M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vJVO3jof; 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="vJVO3jof" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 580ACC4CEFB; Tue, 30 Dec 2025 12:25:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767097542; bh=Wrw9kmTmDt3qOAPCVQ4ExhPPJx3WyyDsQmeqypaeHYw=; h=From:To:Cc:Subject:Date:Reply-To:From; b=vJVO3jofS7SrSYnMA1J4sF5V5eb/klr/qJB+W3RBBmNatglZbFWgIFyEinvAZ7GjL NHYu/cCyKLFqQbpAcOyW2CggiDYY5wdlOtqT2SYUXSFRFAtYpVhYWm8UwJ5bOus22b 53vBVHqD14ObmK3TIl6eanXAEeL8BKcSKP8uy35w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54292: RDMA/irdma: Fix data race on CQP request done Date: Tue, 30 Dec 2025 13:23:45 +0100 Message-ID: <2025123029-CVE-2023-54292-26cb@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=4553; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rWr6A8YxK8Br0iaxQUKuGYNh95XqlQJzONeIzc9CEpY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBR5z85/wM3Lr2Vuju5YFSj/bsNTNfm31spsehFzwdt 6UELxrydMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE8tUZFhz7aXDu+gv79VIm Hwta7KVEVi24+IlhwaQ/auctNGu7d5VzWV/rUPzmY+F+HQA= 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/irdma: Fix data race on CQP request done KCSAN detects a data race on cqp_request->request_done memory location which is accessed locklessly in irdma_handle_cqp_op while being updated in irdma_cqp_ce_handler. Annotate lockless intent with READ_ONCE/WRITE_ONCE to avoid any compiler optimizations like load fusing and/or KCSAN warning. [222808.417128] BUG: KCSAN: data-race in irdma_cqp_ce_handler [irdma] / irdma_wait_event [irdma] [222808.417532] write to 0xffff8e44107019dc of 1 bytes by task 29658 on cpu 5: [222808.417610] irdma_cqp_ce_handler+0x21e/0x270 [irdma] [222808.417725] cqp_compl_worker+0x1b/0x20 [irdma] [222808.417827] process_one_work+0x4d1/0xa40 [222808.417835] worker_thread+0x319/0x700 [222808.417842] kthread+0x180/0x1b0 [222808.417852] ret_from_fork+0x22/0x30 [222808.417918] read to 0xffff8e44107019dc of 1 bytes by task 29688 on cpu 1: [222808.417995] irdma_wait_event+0x1e2/0x2c0 [irdma] [222808.418099] irdma_handle_cqp_op+0xae/0x170 [irdma] [222808.418202] irdma_cqp_cq_destroy_cmd+0x70/0x90 [irdma] [222808.418308] irdma_puda_dele_rsrc+0x46d/0x4d0 [irdma] [222808.418411] irdma_rt_deinit_hw+0x179/0x1d0 [irdma] [222808.418514] irdma_ib_dealloc_device+0x11/0x40 [irdma] [222808.418618] ib_dealloc_device+0x2a/0x120 [ib_core] [222808.418823] __ib_unregister_device+0xde/0x100 [ib_core] [222808.418981] ib_unregister_device+0x22/0x40 [ib_core] [222808.419142] irdma_ib_unregister_device+0x70/0x90 [irdma] [222808.419248] i40iw_close+0x6f/0xc0 [irdma] [222808.419352] i40e_client_device_unregister+0x14a/0x180 [i40e] [222808.419450] i40iw_remove+0x21/0x30 [irdma] [222808.419554] auxiliary_bus_remove+0x31/0x50 [222808.419563] device_remove+0x69/0xb0 [222808.419572] device_release_driver_internal+0x293/0x360 [222808.419582] driver_detach+0x7c/0xf0 [222808.419592] bus_remove_driver+0x8c/0x150 [222808.419600] driver_unregister+0x45/0x70 [222808.419610] auxiliary_driver_unregister+0x16/0x30 [222808.419618] irdma_exit_module+0x18/0x1e [irdma] [222808.419733] __do_sys_delete_module.constprop.0+0x1e2/0x310 [222808.419745] __x64_sys_delete_module+0x1b/0x30 [222808.419755] do_syscall_64+0x39/0x90 [222808.419763] entry_SYSCALL_64_after_hwframe+0x63/0xcd [222808.419829] value changed: 0x01 -> 0x03 The Linux kernel CVE team has assigned CVE-2023-54292 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 915cc7ac0f8e2a23675ee896e87f17c7d3c47089 and fixed in 5.15.124 with commit c5b5dbcbf91f769b8eb25f88e32a1522f920f37a Issue introduced in 5.14 with commit 915cc7ac0f8e2a23675ee896e87f17c7d3c47089 and fixed in 6.1.43 with commit 5986e96be7d0b82e50a9c6b019ea3f1926fd8764 Issue introduced in 5.14 with commit 915cc7ac0f8e2a23675ee896e87f17c7d3c47089 and fixed in 6.4.8 with commit b8b90ba636e3861665aef9a3eab5fcf92839a2c5 Issue introduced in 5.14 with commit 915cc7ac0f8e2a23675ee896e87f17c7d3c47089 and fixed in 6.5 with commit f0842bb3d38863777e3454da5653d80b5fde6321 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-54292 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/irdma/hw.c drivers/infiniband/hw/irdma/main.h drivers/infiniband/hw/irdma/utils.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/c5b5dbcbf91f769b8eb25f88e32a1522f920f37a https://git.kernel.org/stable/c/5986e96be7d0b82e50a9c6b019ea3f1926fd8764 https://git.kernel.org/stable/c/b8b90ba636e3861665aef9a3eab5fcf92839a2c5 https://git.kernel.org/stable/c/f0842bb3d38863777e3454da5653d80b5fde6321