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 239122139CD for ; Wed, 19 Jun 2024 13:46:21 +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=1718804782; cv=none; b=lpGuT+uq3tUWS5ukv/57ay1kwIhuj6v5VYNAqHSOFdMBd48On07ulexO2R+ZS12jRIpInHqIjHaqDkYhZ32qINjgh3143OsbGer/pP226vwXd86DeMGcPTshwNQbrjPJ332Nxf0bIGQdomKzk7y2NODQdCwgBtCU5Adzr4J3hTE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718804782; c=relaxed/simple; bh=7WGvop40t9HTVNvL6NWasSL1cofmvID8ZToxCPEskQM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EAiv6eJbxIYMwdsyaVimgNff8m9T69v8+yCA6jeh8kxnLdsKrZ4MVgOMQaPQ6brrerdVZbRCjouBL87rTvVgCDhq3+NeUTm09Ge8i1/g/PHZCvt1296p7TqlGPB6aM5uQ23fkxHk+vlotU0gZXBdzqHOVSyKvWVhf9GhjiOzAK4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cVD+SNsw; 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="cVD+SNsw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E019C2BBFC; Wed, 19 Jun 2024 13:46:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718804781; bh=7WGvop40t9HTVNvL6NWasSL1cofmvID8ZToxCPEskQM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cVD+SNswfArT41yY4rrqO2ZKftqraezYtIVZvW3TL6/7CEBYKSo4GbnoQCwkOBi0U F4fznWTHAaSCm2GfA1WxOfLMpXXCbixH2vsDcvBUwaSBr9p5o+R7jwcIs5qdMbC0D6 3c8PGJ5RpM9Qidp+bHOg7wnJ+SoD0/iELX7jmrRg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38591: RDMA/hns: Fix deadlock on SRQ async events. Date: Wed, 19 Jun 2024 15:45:57 +0200 Message-ID: <2024061954-CVE-2024-38591-a4ae@gregkh> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2486; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7WGvop40t9HTVNvL6NWasSL1cofmvID8ZToxCPEskQM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlFD4WU3WaW2Ce3X3PYsf91NMuKtZHZ8oJS1TJ+Ujdvz vt4ytqqI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACby1ophDn9wqXXMrjue5ZuY tCy+pDyJ72zOYVgwe8/rzEUGa90mHW0ra+fOvM/L9L4YAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: RDMA/hns: Fix deadlock on SRQ async events. xa_lock for SRQ table may be required in AEQ. Use xa_store_irq()/ xa_erase_irq() to avoid deadlock. The Linux kernel CVE team has assigned CVE-2024-38591 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit 81fce6291d99 and fixed in 5.15.161 with commit 4a3be1a0ffe0 Issue introduced in 5.0 with commit 81fce6291d99 and fixed in 6.1.93 with commit 756ddbe665ea Issue introduced in 5.0 with commit 81fce6291d99 and fixed in 6.6.33 with commit 22c915af31bd Issue introduced in 5.0 with commit 81fce6291d99 and fixed in 6.8.12 with commit 72dc542f0d89 Issue introduced in 5.0 with commit 81fce6291d99 and fixed in 6.9.3 with commit d271e66abac5 Issue introduced in 5.0 with commit 81fce6291d99 and fixed in 6.10-rc1 with commit b46494b6f9c1 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-2024-38591 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/hns/hns_roce_main.c drivers/infiniband/hw/hns/hns_roce_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/4a3be1a0ffe04c085dd7f79be97c91b0c786df3d https://git.kernel.org/stable/c/756ddbe665ea7f9416951bd76731b174d136eea0 https://git.kernel.org/stable/c/22c915af31bd84ffaa46145e317f53333f94a868 https://git.kernel.org/stable/c/72dc542f0d8977e7d41d610db6bb65c47cad43e9 https://git.kernel.org/stable/c/d271e66abac5c7eb8de345b9b44d89f777437a4c https://git.kernel.org/stable/c/b46494b6f9c19f141114a57729e198698f40af37