net/mlx5: DR, Fix slab-out-of-bounds in mlx5_cmd_dr_create_fte
Summary
GSD-2022-1000738: net/mlx5: DR, Fix slab-out-of-bounds in mlx5_cmd_dr_create_fte. Affects Kernel versions >= 1ffd498901c1134a7cbecf5409e12c064c39cef9, < 4ad319cdfbe555b4ff67bc608736c46a6930c848. 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/mlx5 package is a component of the Linux Kernel ecosystem. It provides support for Mellanox network adapters, specifically the mlx5 driver. The mlx5_cmd_dr_create_fte function is responsible for creating a flow table entry (FTE) in the Mellanox ConnectX-4 and ConnectX-5 network adapters. This vulnerability affects versions of the Linux Kernel from v5.16 to v5.16.11, and it was introduced in v5.16. The vulnerability allows an attacker to trigger a slab-out-of-bounds condition in the mlx5_cmd_dr_create_fte function, potentially leading to a denial-of-service (DoS) or arbitrary code execution.
Vulnerability Detail
The vulnerability in net/mlx5's mlx5_cmd_dr_create_fte function arises from a slab-out-of-bounds condition. This occurs when the function attempts to access memory outside the bounds of an allocated slab. An attacker can exploit this vulnerability by crafting a malicious input that triggers the out-of-bounds access. The impact of this vulnerability includes potential denial-of-service (DoS) attacks or arbitrary code execution. The vulnerability was fixed in Linux Kernel version v5.16.12 by commit 4ad319cdfbe555b4ff67bc608736c46a6930c848.
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 net/mlx5 package in the Linux Kernel is vulnerable to a slab-out-of-bounds condition in the mlx5_cmd_dr_create_fte function. This vulnerability can potentially lead to denial-of-service (DoS) attacks or arbitrary code execution. It is crucial to update the Linux Kernel to version v5.16.12 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can potentially lead to denial-of-service (DoS) attacks or arbitrary code execution.
Versions from v5.16 to v5.16.11 are affected.
You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and it will provide real-time alerts for open-source vulnerabilities.
No specific workaround has been provided for this vulnerability. It is recommended to update to the fixed version of the Linux Kernel.
You can find more information about this vulnerability in the GSD-2022-1000738.json file located in the GSD database: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1000xxx/GSD-2022-1000738.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.