Skip to main content
Mallory
← Back to News
endpoint-software-vulnerabilitywidely-deployed-product-advisoryprivilege-escalation-technique

Linux MLX5 Switchdev Flaw Enables Local System Crashes

Vulnerability Disclosure · 2 sources · Updated 3mo ago · First seen Aug 8, 2024

Linux MLX5 Switchdev Flaw Enables Local System Crashes

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 kernel and kernel-rt, plus RHEL 9 kernel, received fixes. RHEL 9 kernel-rt is 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 mlx5 switchdev offload implementation
  • Affected source: drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · Aug 8, 2024
  1. Reported Aug 8, 20242y ago

    Red Hat releases RHEL 9 kernel fix

    Red Hat released RHSA-2024:8162 for the RHEL 9 kernel to address CVE-2023-52658. RHEL 9 kernel-rt remained listed as affected without an identified erratum.

    CVE-2023-52658 - Red Hat Customer Portal
  2. Aug 8, 20242y ago

    Red Hat releases RHEL 8 kernel fixes

    Red Hat released RHSA-2024:5101 for the RHEL 8 kernel and RHSA-2024:5102 for the RHEL 8 kernel-rt, fixing CVE-2023-52658 by incorporating the reversion.

    CVE-2023-52658 - Red Hat Customer Portal
  3. Reported May 17, 20243y ago

    Upstream Linux kernels revert the problematic MLX5 change

    The issue tracked as CVE-2023-52658 was resolved by reverting the crash-causing change. Fixes were included in Linux 6.6.22, 6.7.10, and 6.8.

    CVE-2023-52658: Revert "net/mlx5: Block entering switchdev mode with ns inconsistency"
  4. Reported May 17, 20243y ago

    MLX5 switchdev change introduces crash risk

    A change in Linux 6.3, later backported to Linux 6.1.22 and 6.2.9, could cause system crashes in the Mellanox mlx5 switchdev offload implementation, creating a local denial-of-service condition.

    CVE-2023-52658: Revert "net/mlx5: Block entering switchdev mode with ns inconsistency"
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Red Hat Enterprise Linux
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.