Memory Leak in RDMA/mlx5
Summary
GSD-2022-1001838: RDMA/mlx5: Fix memory leak in error flow for subscribe event routine. Affects Kernel versions >= 7597385371425febdaa8c6a1da3625d4ffff16f5, < 8dd392e352d3269938fea32061a74655a613f929. 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
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. RDMA allows for high-speed, low-latency communication between remote systems. The mlx5 driver is responsible for managing the Mellanox ConnectX-4 and ConnectX-5 adapters and enabling RDMA functionality. However, a memory leak vulnerability has been discovered in the error flow for the subscribe event routine of RDMA/mlx5.
Vulnerability Detail
The vulnerability in RDMA/mlx5's subscribe event routine can lead to a memory leak. When an error occurs during the event subscription process, memory allocated for the event subscription is not properly freed, resulting in a memory leak. An attacker could potentially exploit this vulnerability to exhaust system memory resources, leading to a denial-of-service condition. The vulnerability was introduced in version v5.3 of the Linux Kernel and has been fixed in version v5.15.33.
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 provided for this vulnerability. The recommended solution is to update the Linux Kernel to the fixed version.
Conclusion
The memory leak vulnerability in RDMA/mlx5's subscribe event routine can be addressed by updating the Linux Kernel to version v5.15.33 or later. This update includes the necessary patch to fix the memory leak issue and ensure proper management of system memory resources. 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 enables Remote Direct Memory Access (RDMA) over Mellanox ConnectX-4 and ConnectX-5 adapters. It allows for high-speed, low-latency communication between remote systems.
The vulnerability in RDMA/mlx5's subscribe event routine can result in a memory leak, potentially leading to a denial-of-service condition by exhausting system memory resources.
To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.15.33 or later, which includes the necessary patch to address the memory leak issue.
No specific workaround is provided for this vulnerability. Updating the Linux Kernel to the fixed version is the recommended solution.
The vulnerability was introduced in version v5.3 of the Linux Kernel and has been fixed in version v5.15.33.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.