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 07AAF5E093 for ; Wed, 4 Sep 2024 18:58:35 +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=1725476316; cv=none; b=gCsRhOMLA1tG1UCj5lURvy8krvcdp5OszLquGXdheAErtCnAJwLwqxwv/mZaqgwKmLuncoFhjmEIHakzzDphO4QqfHeeBl9oBi2SfSIi0E7BhKNU+hL7uS3lVC8/Ri7gxYyC+F+Qwjx2xvpT4+zW+OEBfyTfxGWJuMivDAVQH+o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725476316; c=relaxed/simple; bh=T/HiiCf7x6jbbLXFGg/6CQLaJvygJvl6OFt+9R3DPyw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DKPQL4FVucM4mXeac5TrgATV16DRIXsUDy4q5JXgisDGqFPJAMSex8tnXijCPffdPPls6wVlmbvATMdC6KTqRGhOaMe2BkqQpelYGlyeap/Q6YhDMVlbpDOL//qG1FSYlG/pvM1l0nbWOIUy+2bZhNTMKDAJXvQp3WLuUS3H4W0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PIG3nnWB; 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="PIG3nnWB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1705FC4CEC2; Wed, 4 Sep 2024 18:58:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725476315; bh=T/HiiCf7x6jbbLXFGg/6CQLaJvygJvl6OFt+9R3DPyw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PIG3nnWBwOLyNtp7r8XAH0y0lHxzR8GX1yXn/gWCHi0YMI9xchUZrZtJx0Or0a8FC gcRSsAKeDxdTQfFucSFfrr7fUnzdV+pypb2A5/c2jtp9kifDj9yKRTQrSsCIu52rkU t/0VdC0/z/ZVSF2U+cLBIPsvTO6JNdD/dZLsJQ34= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-44970: net/mlx5e: SHAMPO, Fix invalid WQ linked list unlink Date: Wed, 4 Sep 2024 20:56:57 +0200 Message-ID: <2024090456-CVE-2024-44970-f687@gregkh> X-Mailer: git-send-email 2.46.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=2233; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=T/HiiCf7x6jbbLXFGg/6CQLaJvygJvl6OFt+9R3DPyw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk31lYwnChKOHaT2yW08uWhwzM1tqfv+3rf6qiQX4Li+ on6230rO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTGBDuDgFYCJAcxdcdCpIn3NS/tW8aF+5 oq0zSp4elZ/KMM/U5XM3AxcvQ5zqoqZbE5feu3AorBUA 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: net/mlx5e: SHAMPO, Fix invalid WQ linked list unlink When all the strides in a WQE have been consumed, the WQE is unlinked from the WQ linked list (mlx5_wq_ll_pop()). For SHAMPO, it is possible to receive CQEs with 0 consumed strides for the same WQE even after the WQE is fully consumed and unlinked. This triggers an additional unlink for the same wqe which corrupts the linked list. Fix this scenario by accepting 0 sized consumed strides without unlinking the WQE again. The Linux kernel CVE team has assigned CVE-2024-44970 to this issue. Affected and fixed versions =========================== Fixed in 6.1.105 with commit 7b379353e914 Fixed in 6.6.46 with commit 650e24748e1e Fixed in 6.10.5 with commit 50d8009a0ac0 Fixed in 6.11-rc1 with commit fba8334721e2 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-44970 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/mlx5/core/en_rx.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/7b379353e9144e1f7460ff15f39862012c9d0d78 https://git.kernel.org/stable/c/650e24748e1e0a7ff91d5c72b72a2f2a452b5b76 https://git.kernel.org/stable/c/50d8009a0ac02c3311b23a0066511f8337bd88d9 https://git.kernel.org/stable/c/fba8334721e266f92079632598e46e5f89082f30