Critical Vulnerability in Linux Kernel: E-Switch Device Compatibility Issue

linux Updated 02 Oct 2025

Summary

26/02/2025
N/A
Yes i
Unrated
Not published

CVE-2022-49333: In the Linux kernel, the following vulnerability has been resolved: net/mlx5: E-Switch, pair only capable devices OFFLOADS paring using devcom is possible only on devices that support LAG. Affects linux versions < 5.18.5-1. Fixed in 5.18.5-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is the core component of many operating systems, providing essential services for hardware and software interaction. It supports a wide range of devices and functionalities, including networking capabilities. The specific vulnerability pertains to the Mellanox mlx5 driver, which is responsible for managing network devices that support Link Aggregation Group (LAG) functionalities. This vulnerability can lead to improper handling of device compatibility checks, potentially causing system instability or security breaches.

Vulnerability Detail

In the Linux kernel, a vulnerability was identified in the Mellanox mlx5 driver related to E-Switch device compatibility. The issue arises when the function mlx5_get_next_phys_dev() is called without holding the necessary interface lock, which can lead to race conditions and undefined behavior. This vulnerability was introduced with the commit that aimed to filter out non-compatible devices based on their LAG capabilities. The lack of proper locking mechanisms can result in system crashes or exploitation by malicious actors, making it critical to address this issue promptly.

How To Fix

Minimum fixed version

5.18.5-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. However, it is advisable to avoid using the affected functionalities until the patch is applied.

Conclusion

The vulnerability CVE-2022-49333 in the Linux kernel's Mellanox mlx5 driver poses significant risks related to device compatibility checks. It is crucial to apply the available patch to safeguard your system against potential exploits. Regular monitoring and updates are essential for maintaining system security.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-49333 is a vulnerability in the Linux kernel's Mellanox mlx5 driver that affects device compatibility checks, potentially leading to system instability.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected by this vulnerability.

The risks include potential system crashes, undefined behavior, and exploitation by malicious actors, which can compromise system security.

Yes, a patch is available in version 5.18.5-1 of the Linux package. It is recommended to update to this version or later.

If immediate updates are not possible, consider limiting the use of affected functionalities and monitoring for any unusual system behavior.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

5.18.5-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback