RDMA/mlx5: Fix releasing unallocated memory in dereg MR flow
Summary
GSD-2021-1002720: RDMA/mlx5: Fix releasing unallocated memory in dereg MR flow. Affects Kernel versions >= f18ec422311767738ef4033b61e91cae07163b22, < e3bc4d4b50cae7db08e50dbe43f771c906e97701. 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 RDMA/mlx5 package is a component of the Linux Kernel that provides support for Remote Direct Memory Access (RDMA) over Mellanox ConnectX-4 and ConnectX-5 adapters. RDMA allows for high-speed, low-latency communication between remote systems by enabling direct memory access without involving the operating system's CPU. The mlx5 driver is responsible for managing the Mellanox ConnectX-4 and ConnectX-5 adapters. This vulnerability affects the deregister memory region (MR) flow in the RDMA/mlx5 package.
Vulnerability Detail
The vulnerability in the deregister MR flow of RDMA/mlx5 arises from a flaw in memory management. Specifically, there is a bug that causes unallocated memory to be released, leading to potential memory corruption or crashes. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial-of-service (DoS) condition. The vulnerability was introduced in version v5.13 of the Linux Kernel and has been fixed in version v5.15.10.
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 known workaround for this vulnerability. It is essential to update the Linux Kernel to the fixed version to mitigate the risk.
Conclusion
The RDMA/mlx5 package in the Linux Kernel is vulnerable to a memory management issue in the deregister MR flow. This vulnerability can lead to memory corruption or crashes, potentially allowing an attacker to execute arbitrary code or cause a denial-of-service condition. To mitigate the risk, it is crucial to update the Linux Kernel to version v5.15.10 or later. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
RDMA/mlx5 is a component of the Linux Kernel that provides support for Remote Direct Memory Access (RDMA) over Mellanox ConnectX-4 and ConnectX-5 adapters. It enables high-speed, low-latency communication between remote systems.
This vulnerability in the deregister MR flow of RDMA/mlx5 can lead to memory corruption or crashes. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial-of-service (DoS) condition.
To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.15.10 or later. This update includes the necessary patch to address the memory management issue in the RDMA/mlx5 package.
No, there is no known workaround for this vulnerability. Updating the Linux Kernel to the fixed version is the recommended solution.
You can find more information about this vulnerability in the Open Source Vulnerability database entry GSD-2021-1002720.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.