From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 277A83AE1BC for ; Thu, 28 May 2026 09:42:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961341; cv=none; b=gJDNRhPA7s0PjEZb1YIFxBDmJJt5ruU+FYcQ6LsjlDKPxLKfRB4PcWW2OoZa4qws/+/Q3DRyoyCdPIE6ZiF+fxR4HZF2/XhMsvbpFp/Lyx7cVc+ge3teBpaRGb3XCge37Q5upZua7Jy870LAe/NunAM+tDhrEkhlyiT+UzXvo8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961341; c=relaxed/simple; bh=+gY6wIejBoDCoV8Ofx8c2TbIGYy7f4NxWSBmxm0iJj4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lFEg94N7LILhZFtxxWTgVTavN9qU21zIzQoiqBSabr1Q+ZjAW8WTtivIKA7axE2dqn4LftCFpUMlsZna07A5epvRiWGh8qmW60RvXH95mtTlqE97R6yH04sOt3NtA9hKEgIIRdGjoWPaRn078XagX+ibLLLKnjuMSZeP3BZq/3o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jnfVlK4Y; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jnfVlK4Y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31C9F1F00A3A; Thu, 28 May 2026 09:42:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961339; bh=4JO/uNa3cBXEVIC5EVrcaWl+G+qqf57/qxBkJBpSTSw=; h=From:To:Cc:Subject:Date:Reply-To; b=jnfVlK4YKh0DAH2yoQGuPycnzxIxoWUGbORi46sJnJnqYLP8ODo0qFo4eP1TsQaH6 RfjrRDkdCS4oZHSG3NzHy+EpXwpSle2KMkkvu2TQ4i++yDO/yyb58cHmNEOkI/9JB0 c6ndaV3oGstAbBDFXs8zA7ZuCKixj/L6zTlINItQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46181: RDMA/mlx4: Fix mis-use of RCU in mlx4_srq_event() Date: Thu, 28 May 2026 11:37:26 +0200 Message-ID: <2026052829-CVE-2026-46181-ecff@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=2471; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UGXnhTj/tP6KH8d2ANFnfUlZhZulBZ4h9kqWo3obg08=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSPHNrVPmnfcjy75MSdm3d6mQkw+LzcXuU1z7RZYUC3 dbPbRI6YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCL/XBkWTPip8V/2GvdCxT3M G7edNuy8239sIcOCmZLCSv7uU/iFxA43nz0x6aONeowxAA== 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/mlx4: Fix mis-use of RCU in mlx4_srq_event() Sashiko points out the radix_tree itself is RCU safe, but nothing ever frees the mlx4_srq struct with RCU, and it isn't even accessed within the RCU critical section. It also will crash if an event is delivered before the srq object is finished initializing. Use the spinlock since it isn't easy to make RCU work, use refcount_inc_not_zero() to protect against partially initialized objects, and order the refcount_set() to be after the srq is fully initialized. The Linux kernel CVE team has assigned CVE-2026-46181 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit 30353bfc43a1602c020f31d95cf27182ffd23824 and fixed in 6.18.30 with commit 1e2a44875b6afb4add1115f7f3351dcbeb6f273d Issue introduced in 4.9 with commit 30353bfc43a1602c020f31d95cf27182ffd23824 and fixed in 7.0.7 with commit 8b7833f3bce35cb0d01c1503781523c099c675f0 Issue introduced in 4.9 with commit 30353bfc43a1602c020f31d95cf27182ffd23824 and fixed in 7.1-rc3 with commit c9341307ea16b9395c2e4c9c94d8499d91fe31d0 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-46181 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/net/ethernet/mellanox/mlx4/srq.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/1e2a44875b6afb4add1115f7f3351dcbeb6f273d https://git.kernel.org/stable/c/8b7833f3bce35cb0d01c1503781523c099c675f0 https://git.kernel.org/stable/c/c9341307ea16b9395c2e4c9c94d8499d91fe31d0