# CVE-2023-53340: net/mlx5: Collect command failures data only for known commands

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 14% of CVEs (2026-12-01)
- Published: 2025-09-17T14:56:33.917Z
- Modified: 2026-08-05T09:13:36.548Z
- Weaknesses: CWE-129
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 34f46ae0d4b38e83cfb26fb6f06b5b5efea47fdc before 411e4d6caa7f7169192b8dacc8421ac4fd64a354; from 34f46ae0d4b38e83cfb26fb6f06b5b5efea47fdc before d8b6f175235d7327b4e1b13216859e89496dfbd5; from 34f46ae0d4b38e83cfb26fb6f06b5b5efea47fdc before 2a0a935fb64ee8af253b9c6133bb6702fb152ac2; 5.18 (not affected: before 5.18; from 6.1.31 up to 6.1.*; from 6.3.5 up to 6.3.*; from 6.4 up to *)
- linux linux_kernel: from 5.18 before 6.1.31; from 6.2 before 6.3.5; 6.4

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/411e4d6caa7f7169192b8dacc8421ac4fd64a354> (patch)
- <https://git.kernel.org/stable/c/d8b6f175235d7327b4e1b13216859e89496dfbd5> (patch)
- <https://git.kernel.org/stable/c/2a0a935fb64ee8af253b9c6133bb6702fb152ac2> (patch)

## Sources

- CVE List: [CVE-2023-53340](https://www.cve.org/CVERecord?id=CVE-2023-53340), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2023-53340](https://nvd.nist.gov/vuln/detail/CVE-2023-53340), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53340 · Whole record: https://cve.day/CVE-2023-53340.json · Rebuilt by cve.day 2026-11-25T22:58:34.839Z
