Use-after-free vulnerability in net/mlx4_en

Kernel Updated 02 Oct 2025

Summary

19/12/2021
N/A
No i
Unrated
Not published

GSD-2021-1002493: net/mlx4_en: Fix an use-after-free bug in mlx4_en_try_alloc_resources(). Affects Kernel versions >= ec25bc04ed8e12947738468cbe2191f1529f9e39, < f1d43efa59f1edd3e7eca0e94559b4c6b1cd4e2b. 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 net/mlx4_en package is a network driver for Mellanox ConnectX-3 and ConnectX-3 Pro Ethernet adapters. It provides support for Mellanox Technologies' 10/40 Gigabit Ethernet adapters, allowing communication between the Linux kernel and the network hardware. This package is an integral part of the Linux Kernel ecosystem.

Vulnerability Detail

The vulnerability identified as GSD-2021-1002493 is a use-after-free bug in the mlx4_en_try_alloc_resources() function of the net/mlx4_en package. This bug was introduced in version v4.7 of the Linux Kernel and was fixed in version v5.10.84. The use-after-free bug occurs when the mlx4_en_try_alloc_resources() function attempts to allocate resources but fails to properly handle the deallocation of resources in case of failure. This can lead to a situation where the driver continues to reference freed memory, potentially resulting in a crash or arbitrary code execution.

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 →

Conclusion

The use-after-free vulnerability in net/mlx4_en can have serious security implications, potentially leading to crashes or arbitrary code execution. It is crucial to update the Linux Kernel to the fixed version v5.10.84 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The use-after-free vulnerability in mlx4_en_try_alloc_resources() can potentially lead to a crash or arbitrary code execution. An attacker may be able to exploit this vulnerability to gain unauthorized access, escalate privileges, or cause denial-of-service.

Yes, this vulnerability was introduced in version v4.7 of the Linux Kernel and was fixed in version v5.10.84.

There are no known instances of this vulnerability being exploited in the wild at the time of this report.

No specific workaround has been provided for this vulnerability. It is recommended to update to the fixed version of the Linux Kernel.

More information about this vulnerability can be found in the vulnerability database maintained by the Cloud Security Alliance: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1002xxx/GSD-2021-1002493.json

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

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