CVE-2023-53340
published high CVSS 3.1 · 7.8net/mlx5: Collect command failures data only for known commands
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux34f46ae0d4b38e83cfb26fb6f06b5b5efea47fdc to < 411e4d6caa7f7169192b8dacc8421ac4fd64a354 · 34f46ae0d4b38e83cfb26fb6f06b5b5efea47fdc to < d8b6f175235d7327b4e1b13216859e89496dfbd5 · 34f46ae0d4b38e83cfb26fb6f06b5b5efea47fdc to < 2a0a935fb64ee8af253b9c6133bb6702fb152ac2 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.18 (affected) · 0 to < 5.18 (unaffected · semver) · 6.1.31 through 6.1.* (unaffected · semver) · 6.3.5 through 6.3.* (unaffected · semver) · 6.4 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP5 | cluster-md-kmp-defaultaarch64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | cluster-md-kmp-defaultppc64le | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | cluster-md-kmp-defaults390x | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | cluster-md-kmp-defaultx86_64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
Show 61 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP5 | dlm-kmp-defaultaarch64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | dlm-kmp-defaultppc64le | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | dlm-kmp-defaults390x | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | dlm-kmp-defaultx86_64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | gfs2-kmp-defaultaarch64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | gfs2-kmp-defaultppc64le | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | gfs2-kmp-defaults390x | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | gfs2-kmp-defaultx86_64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-64kbaarch64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-64kb-develaarch64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-defaultaarch64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-defaultppc64le | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-defaults390x | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-defaultx86_64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-baseaarch64 | Advisory build | 5.14.21-150500.55.124.1.150500.6.59.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-baseppc64le | Advisory build | 5.14.21-150500.55.124.1.150500.6.59.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-basex86_64 | Advisory build | 5.14.21-150500.55.124.1.150500.6.59.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-develaarch64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-develppc64le | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-devels390x | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-develx86_64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-livepatchppc64le | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-livepatchs390x | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-livepatchx86_64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-livepatch-develppc64le | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-livepatch-devels390x | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-default-livepatch-develx86_64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-develnoarch | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-docsnoarch | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_55_124-defaultppc64le | Advisory build | 1-150500.11.3.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_55_124-defaults390x | Advisory build | 1-150500.11.3.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_55_124-defaultx86_64 | Advisory build | 1-150500.11.3.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-macrosnoarch | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-obs-buildaarch64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-obs-buildppc64le | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-obs-builds390x | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-obs-buildx86_64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-sourcenoarch | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-symsaarch64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-symsppc64le | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-symss390x | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-symsx86_64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-zfcpdumps390x | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | ocfs2-kmp-defaultaarch64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | ocfs2-kmp-defaultppc64le | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | ocfs2-kmp-defaults390x | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | ocfs2-kmp-defaultx86_64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | reiserfs-kmp-defaultaarch64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | reiserfs-kmp-defaultppc64le | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | reiserfs-kmp-defaults390x | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-15-SP5 | reiserfs-kmp-defaultx86_64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-5 | kernel-defaultaarch64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-5 | kernel-defaultppc64le | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-5 | kernel-defaults390x | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-5 | kernel-defaultx86_64 | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-5 | kernel-default-baseaarch64 | Advisory build | 5.14.21-150500.55.124.1.150500.6.59.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-5 | kernel-default-basex86_64 | Advisory build | 5.14.21-150500.55.124.1.150500.6.59.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-5 | kernel-devel-rtnoarch | Advisory build | 5.14.21-150500.13.109.1 | SUSE-SU-2025:3761-1 |
| SUSE / openSUSE | SLE-5 | kernel-macrosnoarch | Advisory build | 5.14.21-150500.55.124.1 | SUSE-SU-2025:03615-1 |
| SUSE / openSUSE | SLE-5 | kernel-rtx86_64 | Advisory build | 5.14.21-150500.13.109.1 | SUSE-SU-2025:3761-1 |
| SUSE / openSUSE | SLE-5 | kernel-source-rtnoarch | Advisory build | 5.14.21-150500.13.109.1 | SUSE-SU-2025:3761-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - Reachable only via local RDMA uverbs/DEVX ioctls on /dev/infiniband/uverbs*; the bug is not triggered by remote network packet processing. AC:L - An attacker can reliably issue MLX5_IB_METHOD_DEVX_OTHER with an opcode in [MLX5_CMD_OP_MAX, 0xd00) that firmware rejects, causing cmd_status_log to index past the stats array with no race or luck required. PR:L - uverbs devices default to mode 0666 and DEVX ucontext allocation requires no elevated capability, so a normal unprivileged local user with mlx5 RDMA access can trigger it. UI:N - Exploitation requires only attacker-controlled DEVX commands; no victim action is needed. S:U - Impact is kernel memory corruption / privilege escalation within the same host security authority, not a VM or IOMMU boundary cross. C:H - Attacker-controlled OOB writes corrupt adjacent mlx5_core_dev fields (including HCA capability pointers), which per kernel scoring guidance for exploitable memory corruption supports high confidentiality impact. I:H - This is an attacker-indexed out-of-bounds write (~493 opcodes past the array into following caps and device state), which can corrupt kernel data and enable control-flow hijacking. A:H - OOB access takes spin_lock_irq on non-stats memory and can oops/panic or hang the kernel, matching high availability impact.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | CISA-ADP · adp | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 34f46ae0d4b38e83cfb26fb6f06b5b5efea47fdc to < 411e4d6caa7f7169192b8dacc8421ac4fd64a354 (affected · git)34f46ae0d4b38e83cfb26fb6f06b5b5efea47fdc to < d8b6f175235d7327b4e1b13216859e89496dfbd5 (affected · git)34f46ae0d4b38e83cfb26fb6f06b5b5efea47fdc to < 2a0a935fb64ee8af253b9c6133bb6702fb152ac2 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.18 (affected)0 to < 5.18 (unaffected · semver)6.1.31 through 6.1.* (unaffected · semver)6.3.5 through 6.3.* (unaffected · semver)6.4 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-129 CWE-129 Improper Validation of Array Index
References
3Provider assertions
2Linux · cna
net/mlx5: Collect command failures data only for known commands
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2fa03b7ef65b8761dd5fe1ea55f5c49fa5e32bdf13f1aaaa022085b571bb28ed
- Ingested
- 23 Sep 2026, 08:14:44 UTC
- Source record
- Official CVE record