Critical Vulnerability in Linux Kernel: MLX5 Command Error Handling

linux Updated 02 Oct 2025

Summary

10/04/2024
N/A
No i
Medium
5.5

CVE-2021-47212: In the Linux kernel, the following vulnerability has been resolved: net/mlx5: Update error handler for UCTX and UMEM In the fast unload flow, the device state is set to internal error, which indicates that the driver sta... Affects linux versions 5.10.103-1 – 6.9.9-1. No fix is published. 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 Penetration testing for web, API and mobile 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 is known for its robustness and versatility, supporting a wide range of devices and architectures. However, vulnerabilities can arise, impacting system stability and security. The specific vulnerability addressed here affects the MLX5 driver, which is responsible for managing network devices, particularly those from Mellanox Technologies. This vulnerability can lead to improper error handling during device unload processes, potentially causing system crashes or instability.

Vulnerability Detail

In the Linux kernel, a vulnerability was identified in the MLX5 driver related to the error handling of user context (UCTX) and user memory (UMEM) during the fast unload flow. When the device state is set to internal error, the driver should return a status of MLX5_CMD_STAT_OK during the destroy command execution. However, it incorrectly returns an EIO error, leading to a call trace that can disrupt the umem release process. This flaw can result in system instability and crashes, particularly when devices are being removed or unregistered.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the necessary updates to the Linux kernel as outlined in the 'how_to_fix' section.

Conclusion

The CVE-2021-47212 vulnerability in the Linux kernel's MLX5 driver poses a significant risk of system instability during device unload processes. It is crucial for users to update their systems to the latest kernel versions to mitigate this risk. Regular monitoring for vulnerabilities using tools like Vulert can help maintain system security.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The impact includes potential system crashes and instability during device unload processes, particularly affecting systems using the MLX5 driver.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. By uploading your manifest file, you can check for vulnerabilities like CVE-2021-47212.

The vulnerability affects various versions of the Linux kernel prior to the fix in 5.15.5-1 for Debian 12 and 13.

Currently, there are no effective workarounds available. Updating to the fixed version is the recommended approach.

Detailed information can be found in the CVE database and through security advisories related to the Linux kernel.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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