Use-after-free vulnerability in net/mlx4_en package
Summary
GSD-2021-1002396: net/mlx4_en: Fix an use-after-free bug in mlx4_en_try_alloc_resources(). Affects Kernel versions >= ec25bc04ed8e12947738468cbe2191f1529f9e39, < be12572c5ddc8ad7453bada4eec8fa46967dc757. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
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. The package is a part of the Linux Kernel ecosystem and is vulnerable to a use-after-free bug in the mlx4_en_try_alloc_resources() function.
Vulnerability Detail
The vulnerability in net/mlx4_en is a use-after-free bug in the mlx4_en_try_alloc_resources() function. This bug was introduced in version v4.7 of the Linux Kernel and was fixed in version v4.14.257. The bug allows an attacker to exploit a freed memory region, potentially leading to arbitrary code execution or a denial of service attack. The impact and attack plausibility of this vulnerability have not been proven yet.
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
There is no specific workaround mentioned for this vulnerability.
Conclusion
The net/mlx4_en package in the Linux Kernel is vulnerable to a use-after-free bug in the mlx4_en_try_alloc_resources() function. It is recommended to update the Kernel to version v4.14.257 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The net/mlx4_en package is a network driver for Mellanox ConnectX-3 and ConnectX-3 Pro Ethernet adapters.
A use-after-free bug occurs when a program continues to use a memory region after it has been freed. This can lead to various security vulnerabilities.
mlx4_en_try_alloc_resources() is a function in the net/mlx4_en package that is responsible for allocating resources for the Mellanox Ethernet adapters.
The impact of this vulnerability is not yet proven, but it could potentially allow an attacker to execute arbitrary code or launch a denial of service attack.
To fix this vulnerability, update the Linux Kernel to version v4.14.257 or later.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.