lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025091718-CVE-2023-53340-c694@gregkh>
Date: Wed, 17 Sep 2025 16:56:39 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2023-53340: net/mlx5: Collect command failures data only for known commands

From: Greg Kroah-Hartman <gregkh@...nel.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ