Memory Leak in net: caif: fix memory leak in ldisc_open
Summary
GSD-2021-1001111: net: caif: fix memory leak in ldisc_open. Affects Kernel versions < 568ce04020f5fca707d67d36db2d551966212cfa. 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 package in the Linux Kernel is responsible for managing network protocols and communication. It provides the necessary infrastructure for network-related operations. The caif module within the net package is specifically designed for the CAIF (Common Asynchronous Interface Framework) protocol. This protocol is used for communication between mobile devices and the base station. The ldisc_open function in the caif module is responsible for initializing the line discipline for CAIF devices. However, a memory leak vulnerability has been identified in this function.
Vulnerability Detail
The memory leak vulnerability in ldisc_open can lead to the gradual depletion of system memory resources. When a CAIF device is opened, the ldisc_open function allocates memory for the line discipline structure. If the device is closed without properly releasing this memory, it results in a memory leak. Over time, repeated opening and closing of CAIF devices can exhaust the available memory, leading to system instability and potential denial-of-service conditions. This vulnerability can be exploited by an attacker with local access to the system.
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
As a workaround, users can avoid the repeated opening and closing of CAIF devices. By minimizing the usage of CAIF devices or keeping them open for longer durations, the impact of the memory leak vulnerability can be mitigated. However, this workaround is not a permanent solution and should be used until the kernel update can be applied.
Conclusion
In conclusion, the net package in the Linux Kernel contains a memory leak vulnerability in the ldisc_open function of the caif module. This vulnerability can result in the depletion of system memory resources and potential denial-of-service conditions. It is recommended to update the Linux Kernel to version v4.19.196 or later to fix this vulnerability. Users can also minimize the impact by avoiding the repeated opening and closing of CAIF devices. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The net package in the Linux Kernel provides the infrastructure for network protocols and communication. It is responsible for managing network-related operations.
The caif module is a component within the net package that handles the CAIF (Common Asynchronous Interface Framework) protocol. This protocol is used for communication between mobile devices and the base station.
The ldisc_open function is responsible for initializing the line discipline for CAIF devices. It allocates memory for the line discipline structure.
The memory leak vulnerability can lead to the gradual depletion of system memory resources. This can result in system instability and potential denial-of-service conditions.
The memory leak vulnerability can be exploited by an attacker with local access to the system. By repeatedly opening and closing CAIF devices, the attacker can exhaust the available memory.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.