Use-after-free vulnerability in net/mlx4_en package
Summary
GSD-2021-1002562: net/mlx4_en: Fix an use-after-free bug in mlx4_en_try_alloc_resources(). Affects Kernel versions >= ec25bc04ed8e12947738468cbe2191f1529f9e39, < 75917372eef0dbfb290ae45474314d35f97aea18. 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 and is included in the Linux Kernel. This package enables high-performance networking capabilities for systems utilizing these adapters.
Vulnerability Detail
The vulnerability identified in the net/mlx4_en package 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 v5.15.7. The use-after-free bug occurs when the mlx4_en_try_alloc_resources() function attempts to allocate resources but references memory that has already been freed. This can lead to various security issues, including potential remote code execution or denial of service attacks.
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. The recommended approach is to update the Linux Kernel to the fixed version.
Conclusion
The use-after-free vulnerability in the net/mlx4_en package can lead to serious security issues, such as remote code execution or denial of service attacks. It is crucial to update the Linux Kernel to version v5.15.7 or later to mitigate 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, providing high-performance networking capabilities.
A use-after-free bug occurs when a program references memory that has already been freed. This can lead to various security issues, including potential remote code execution or denial of service attacks.
This vulnerability was introduced in version v4.7 of the Linux Kernel.
This vulnerability was fixed in version v5.15.7 of the Linux Kernel.
Users can obtain the fixed version of the Linux Kernel from the official Linux Kernel repository at https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.