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 AAC3A1D517D for ; Mon, 21 Oct 2024 12:17:24 +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=1729513044; cv=none; b=egpJB0ygBNR20T+TGPvh0g3az55C2EdkeGYnkkSDIKHzSmZl8DY9WVozvBhWjCqI7PXe+8Frhjg3PFsN0NBvLVq76FjJkZeEAY6Po/J4An+s6u4n/MOt+ihQv7sN+wlBlUMJM9eeO8JNhogeWUuNUttCRsF9JVj4G4UhAYfBPzQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729513044; c=relaxed/simple; bh=eNXIH74GZ8Panqsv17fJLM8Lv5Mu4kiMtvrh5DAw5g0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TrnZFOTyM+9lj1a/VDHg3ucCWtZYqMFPOlHiIjnJBBcvjxdcMJVFUzLW080AKgZx2uRgMNqk23eJe48a2IR/0g5MA4EAheBj0rpKPzeeCfKjDELRaklLrxy5w58ZCXFO8oIp7nkjH3my1WIX1GR4yOvU9H9mkuYOnM/ahWFRi54= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PD5HJuxM; 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="PD5HJuxM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24FB6C4CEC3; Mon, 21 Oct 2024 12:17:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729513044; bh=eNXIH74GZ8Panqsv17fJLM8Lv5Mu4kiMtvrh5DAw5g0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PD5HJuxMcGvOyddx60RdMgbeKyaR1tMrq82L3ygV95zJ9lkz+87H72y55PomUvVnx 1ipGhA+fLsxa/v95HI1zrpJTn6EkYjT87MhKWTnrOfQ0c3QN967uov2c0xSRqt1gob dSA9MMVSvS7r9niu/89sqWPKfTyvAc0s/jV+h2HQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47750: RDMA/hns: Fix Use-After-Free of rsv_qp on HIP08 Date: Mon, 21 Oct 2024 14:16:29 +0200 Message-ID: <2024102113-CVE-2024-47750-390b@gregkh> X-Mailer: git-send-email 2.47.0 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=2446; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eNXIH74GZ8Panqsv17fJLM8Lv5Mu4kiMtvrh5DAw5g0=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlibrwdyVM+XFEpXfsmq6Pc6+a3XV3Hrae4LQzQOF/xJ U9hwaKZHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRfwUMC+bt/2z4ImFauwLP gQOnTlcH2rKe2MiwYFZUeNHvv6/bap5onXCeK/9MObJMDgA= 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 Use-After-Free of rsv_qp on HIP08 Currently rsv_qp is freed before ib_unregister_device() is called on HIP08. During the time interval, users can still dereg MR and rsv_qp will be used in this process, leading to a UAF. Move the release of rsv_qp after calling ib_unregister_device() to fix it. The Linux kernel CVE team has assigned CVE-2024-47750 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 70f92521584f and fixed in 6.1.113 with commit 2ccf1c75d399 Issue introduced in 5.18 with commit 70f92521584f and fixed in 6.6.54 with commit d2d9c5127122 Issue introduced in 5.18 with commit 70f92521584f and fixed in 6.10.13 with commit dac2723d8bfa Issue introduced in 5.18 with commit 70f92521584f and fixed in 6.11.2 with commit 60595923371c Issue introduced in 5.18 with commit 70f92521584f and fixed in 6.12-rc1 with commit fd8489294dd2 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-47750 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_hw_v2.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/2ccf1c75d39949d8ea043d04a2e92d7100ea723d https://git.kernel.org/stable/c/d2d9c5127122745da6e887f451dd248cfeffca33 https://git.kernel.org/stable/c/dac2723d8bfa9cf5333f477741e6e5fa1ed34645 https://git.kernel.org/stable/c/60595923371c2ebe7faf82536c47eb0c967e3425 https://git.kernel.org/stable/c/fd8489294dd2beefb70f12ec4f6132aeec61a4d0