Memory Leak in RDMA/mlx5 Subscribe Event Routine
Summary
GSD-2022-1001205: RDMA/mlx5: Fix memory leak in error flow for subscribe event routine. Affects Kernel versions >= 7597385371425febdaa8c6a1da3625d4ffff16f5, < 414b4e8738484379f18d6c4e780787c80dbf8a2c. 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. The mlx5 driver is responsible for managing the Mellanox ConnectX-4 and ConnectX-5 adapters. This vulnerability affects versions of the Linux Kernel starting from v5.3 and was fixed in v5.17.2.
Vulnerability Detail
The vulnerability in RDMA/mlx5 is related to a memory leak in the error flow for the subscribe event routine. When an error occurs during the subscription process, memory allocated for the event routine is not properly freed, leading to a memory leak. This can result in the exhaustion of system resources over time, potentially leading to a denial-of-service condition. The vulnerability was introduced in version v5.3 of the Linux Kernel and was fixed in version v5.17.2 by commit 414b4e8738484379f18d6c4e780787c80dbf8a2c.
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 recommended to apply the fix mentioned above.
Conclusion
The memory leak vulnerability in RDMA/mlx5's subscribe event routine can lead to resource exhaustion and a denial-of-service condition. It is crucial to update the Linux Kernel to version v5.17.2 or later to mitigate this vulnerability. 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.
The vulnerability can lead to a memory leak, potentially causing the exhaustion of system resources over time and resulting in a denial-of-service condition.
Versions of the Linux Kernel starting from v5.3 are affected by this vulnerability.
The vulnerability was fixed in version v5.17.2 of the Linux Kernel by commit 414b4e8738484379f18d6c4e780787c80dbf8a2c.
There is no known workaround for this vulnerability. It is recommended to update the Linux Kernel to the fixed version.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.