Linux MLX5 Switchdev Flaw Enables Local System Crashes
Vulnerability Disclosure · 2 sources · Updated 3mo ago · First seen Aug 8, 2024

CVE-2023-52658 is a moderate-severity local denial-of-service flaw in the Linux kernel's Mellanox mlx5 switchdev offload driver. A change intended to block switchdev mode when network namespace state is inconsistent can instead trigger a system crash. The vulnerable change was introduced in Linux 6.3 and backported to Linux 6.1.22 and 6.2.9; fixes revert the change and are included in Linux 6.6.22, 6.7.10, and 6.8.
Red Hat rates the issue CVSS 5.5: exploitation requires low privileges and affects availability, with no identified confidentiality or integrity impact. Red Hat shipped fixes in RHEL 8 kernel and kernel-rt updates and the RHEL 9 kernel update, while RHEL 9 kernel-rt remained listed as affected; organizations using MLX5 adapters in switchdev mode should deploy current vendor kernel updates rather than individually cherry-picking patches.
Why it matters
Impact assessment
CVE-2023-52658 permits a low-privileged local user to crash affected Linux hosts, creating a high-availability denial-of-service condition. Exposure is limited to systems using Mellanox/NVIDIA ConnectX hardware with the mlx5 driver operating in switchdev offload mode, but affected hosts may include high-value network, virtualization, storage, and container infrastructure.
- Affected populations: Linux systems with MLX5 adapters configured for switchdev mode, including RHEL deployments and systems running affected upstream kernel versions.
- Business impact: host crashes can interrupt network forwarding, workloads, virtual machines, containers, and storage connectivity; this can create operational outages and associated service-level or financial impact.
- Severity: Red Hat rates the issue Moderate, CVSS v3.1 5.5, driven by high availability impact only. No confidentiality or integrity impact is identified.
- Scope: targeted rather than universally widespread because exploitation requires local access, low privileges, and the specific MLX5 switchdev configuration.
- Exploitation status: the supplied references do not report exploitation in the wild.
- RHEL status: RHEL 8
kernelandkernel-rt, plus RHEL 9kernel, received fixes. RHEL 9kernel-rtis listed as affected without an identified erratum. RHEL 7 packages are out of support scope and should be treated as affected under Red Hat policy.
Structured facts
- CVE: CVE-2023-52658
- Severity: Moderate
- CVSS: 5.5;
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Impact: local denial of service / system crash
- Affected component: Linux kernel Mellanox
mlx5switchdev offload implementation - Affected source:
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c


