RDMA/cma: Fix listener leak in rdma_cma_listen_on_all() failure
Summary
GSD-2021-1001727: RDMA/cma: Fix listener leak in rdma_cma_listen_on_all() failure. Affects Kernel versions >= c80a0c52d85c49a910d0dc0e342e8d8898677dc0, < e56a5146ef8cb51cd7c9e748267dce7564448a35. 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/cma package is a component of the Linux Kernel that provides support for Remote Direct Memory Access (RDMA) communication. RDMA allows for high-speed, low-latency data transfers between remote systems. The RDMA/cma package includes functions for managing RDMA communication channels and endpoints. One of these functions is rdma_cma_listen_on_all(), which sets up a listener for incoming RDMA connection requests on all available network interfaces. However, a vulnerability has been discovered in this function that can lead to a resource leak when it fails to set up the listener properly.
Vulnerability Detail
The vulnerability in rdma_cma_listen_on_all() occurs when the function fails to allocate resources for the listener, but does not properly clean up the partially allocated resources. This can result in a resource leak, where the allocated memory and other resources are not freed. An attacker could potentially exploit this vulnerability to exhaust system resources, leading to a denial of service (DoS) condition. The vulnerability was introduced in Linux Kernel version v5.11 and has been fixed in version v5.14.10.
How To Fix
No fixed version is published for this vulnerability.
To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.14.10 or later. This can be done by downloading the latest kernel source code from the official Linux Kernel repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/) and compiling it for your system. Alternatively, you can check if your system's package manager provides an updated version of the Linux Kernel and install it using the appropriate package management commands.
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
In conclusion, the vulnerability in rdma_cma_listen_on_all() can result in a resource leak and potential denial of service (DoS) condition. It is crucial to update the Linux Kernel to version v5.14.10 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
RDMA/cma is a component of the Linux Kernel that provides support for Remote Direct Memory Access (RDMA) communication. It allows for high-speed, low-latency data transfers between remote systems.
rdma_cma_listen_on_all() is a function in the RDMA/cma package that sets up a listener for incoming RDMA connection requests on all available network interfaces.
The vulnerability can lead to a resource leak, potentially resulting in a denial of service (DoS) condition if system resources are exhausted.
To fix this vulnerability, update the Linux Kernel to version v5.14.10 or later.
No specific workaround is provided. Updating the Linux Kernel to the fixed version is the recommended solution.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.