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 1C7B11F152A for ; Tue, 21 Jan 2025 12:02:10 +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=1737460931; cv=none; b=U74PiJdIWRe+UHH0kGHZsBL9vQ+wEnma9WraZNwFqi2DPtCrX2OLzN9yZTe9zvUzZsvhc9Q2adeERIivt0AY60XHIDRRY1nioGJt3htTvWAD2fALurliOLGX3Az23NgrEuH+yI/D6nXa9zs0GG6wwFVbk5QyV2bTXlUf4TACi7w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737460931; c=relaxed/simple; bh=vhfYW0VRRryx0kKbM/C2FYULv4BVFyNSxETYaw3lv3s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aI1O9Kbsrqlclf4L9kz1GYAT35Eaw/GgsAVASxDfmxHG74itr/RTXEsYUV3LiNueY0boiJPo7783fCtC7x70fB6ssVnp26nLOB5ii2OUNV/mMRESgOVquPXgh4X1K21l+wRtHy7EHcVPun1EuAsne52DpaSwLKc4tHDC7AdS940= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SrqOUg75; 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="SrqOUg75" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34BCDC4CEDF; Tue, 21 Jan 2025 12:02:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1737460930; bh=vhfYW0VRRryx0kKbM/C2FYULv4BVFyNSxETYaw3lv3s=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SrqOUg75BCTbLPXjh4HuipY3lc7AETL87V1ajM5P4HUhheucchejcKBSsfF1HEF2a dJ/FzLWFr14TTUznisof1OT5lsVhi8g8R7LdEewFVzTZIkHACrb69ZXlkEeOaH3dUw d/10/RD3N+zslq1dUS7+WtnLAq98lL5LQXmMq1Rw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-57935: RDMA/hns: Fix accessing invalid dip_ctx during destroying QP Date: Tue, 21 Jan 2025 13:01:49 +0100 Message-ID: <2025012149-CVE-2024-57935-d9b8@gregkh> X-Mailer: git-send-email 2.48.1 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=1854; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vhfYW0VRRryx0kKbM/C2FYULv4BVFyNSxETYaw3lv3s=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn9PWs9Tf0jfQwrp4StrPV27Std5scT+CCf37S1lb8h8 vX/6787YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCJytxgW9N3fafiAxTDp+7YX k5f3Gn9PuJ99gmEOz+nrDMF9G/o2eM+o8Piw+FPo1O+GAA== 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 accessing invalid dip_ctx during destroying QP If it fails to modify QP to RTR, dip_ctx will not be attached. And during detroying QP, the invalid dip_ctx pointer will be accessed. The Linux kernel CVE team has assigned CVE-2024-57935 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12.2 with commit f48084857b9e3d73c1d290307b5a11f61e6f666a and fixed in 6.12.9 with commit a448c775f0aec6cfbee4bda561447c707153504a Issue introduced in 6.11.11 with commit 84707ec6f651df98a141cad59f726d30e6f15574 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-57935 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/a448c775f0aec6cfbee4bda561447c707153504a https://git.kernel.org/stable/c/0572eccf239ce4bd89bd531767ec5ab20e249290