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 248E7330D3D for ; Wed, 17 Sep 2025 14:57:45 +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=1758121065; cv=none; b=IzOwcPGKsnjO4ZCSblPpOATCTmmUDdelazjj5mh9NBczC911ZXLmfnwYJCbLnYObA6mlLpdfAh7Vk2U3gQR7U70WVvBGK7ENeo1kysQA+YC2lD0b7PZpa8GVIstb/qchp8h2KDqNDMUkRTewADjsVbOHGmnlItFRGjtV6au/ZZw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758121065; c=relaxed/simple; bh=OC8dxlUu7JhZv/woPbhEC4aBPs8IYxrEsgtvMsnSK20=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tSp4knGNm8wKq8YADV5x9jUHdQWurHM0U3NUtDwMkZGHbMsYZIni4vWQV9DIJ3eqabJOqHBA69z0SXDuXW+ZmKg7lXywcm7qUJPta8WuuGlJES6SNBYKFs/0GSeTM8ogQT3HZXgMHRTm0Kl5SoB+/7GClDqjDUfs/7ZTY7qBirk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pzL6GBuS; 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="pzL6GBuS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8582AC4CEE7; Wed, 17 Sep 2025 14:57:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758121064; bh=OC8dxlUu7JhZv/woPbhEC4aBPs8IYxrEsgtvMsnSK20=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pzL6GBuSpJSsk7rxyok4eLQPAHiczfITp56nle3Glu7oNFiBNjGtHwTznb3wnevsL Yl93xJL79h3Aph+FY64uVSjjVh8Vj0UpA8eIXidxw5+QF099o9TebZ+vXgzeVu+rfD nqeHZFqoVLbQvEHbDeYLTZZfA6DU8XcLI1tYgB1A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53340: net/mlx5: Collect command failures data only for known commands Date: Wed, 17 Sep 2025 16:56:39 +0200 Message-ID: <2025091718-CVE-2023-53340-c694@gregkh> X-Mailer: git-send-email 2.51.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=2382; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uGnso4C3Af9N6L9rgx9LWMib6k//OogbOwofLkwdwOM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmnzgh1zZ+7YPH0jz+LtzPp2kw4+KKhYEb/ieMVLFzfB UTsLv727IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJLHVmmGev+18yc92R/pw6 kb3PnDlOhj0MfcIwz2LFikwn5qtL6/RXPOupEpI8t2MJKwA= 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: net/mlx5: Collect command failures data only for known commands DEVX can issue a general command, which is not used by mlx5 driver. In case such command is failed, mlx5 is trying to collect the failure data, However, mlx5 doesn't create a storage for this command, since mlx5 doesn't use it. This lead to array-index-out-of-bounds error. Fix it by checking whether the command is known before collecting the failure data. The Linux kernel CVE team has assigned CVE-2023-53340 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 34f46ae0d4b38e83cfb26fb6f06b5b5efea47fdc and fixed in 6.1.31 with commit 411e4d6caa7f7169192b8dacc8421ac4fd64a354 Issue introduced in 5.18 with commit 34f46ae0d4b38e83cfb26fb6f06b5b5efea47fdc and fixed in 6.3.5 with commit d8b6f175235d7327b4e1b13216859e89496dfbd5 Issue introduced in 5.18 with commit 34f46ae0d4b38e83cfb26fb6f06b5b5efea47fdc and fixed in 6.4 with commit 2a0a935fb64ee8af253b9c6133bb6702fb152ac2 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-2023-53340 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/cmd.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/411e4d6caa7f7169192b8dacc8421ac4fd64a354 https://git.kernel.org/stable/c/d8b6f175235d7327b4e1b13216859e89496dfbd5 https://git.kernel.org/stable/c/2a0a935fb64ee8af253b9c6133bb6702fb152ac2