Memory Leak in cfusbl_device_notify in Kernel
Summary
GSD-2021-1000750: net: caif: fix memory leak in cfusbl_device_notify. Affects Kernel versions >= 7ad65bf68d705b445ef10b77ab50dab22be185ee, < 4d94f530cd24c85aede6e72b8923f371b45d6886. 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 Kernel is a fundamental component of the Linux operating system that manages system resources and facilitates communication between hardware and software. It provides essential functions for device drivers, process management, memory management, and more. The cfusbl_device_notify function in the Kernel's caif (Common API for Interfacing with the Fabric) module is responsible for handling notifications related to USB devices. However, a memory leak vulnerability has been identified in this function, which could lead to resource exhaustion and potential system instability.
Vulnerability Detail
The memory leak vulnerability in cfusbl_device_notify arises from a failure to release allocated memory when handling USB device notifications. This can result in a gradual depletion of available memory resources, potentially leading to system crashes or performance degradation. An attacker could potentially exploit this vulnerability to exhaust system resources and launch denial-of-service attacks. The vulnerability was introduced in version v3.3 of the Linux Kernel and has been fixed in version v5.4.125.
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 apply the patch manually to the affected version of the Kernel. The patch can be obtained from the commit 4d94f530cd24c85aede6e72b8923f371b45d6886 in the Linux Kernel repository. Users can follow the standard procedure for applying patches to the Kernel source code.
Conclusion
The memory leak vulnerability in cfusbl_device_notify can have serious implications for system stability and availability. It is crucial to update the Linux Kernel to version v5.4.125 or later to mitigate this vulnerability. Users can also apply the provided patch manually as a temporary workaround. For further assistance or support in addressing this vulnerability, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The memory leak vulnerability in cfusbl_device_notify can lead to resource exhaustion and potential system instability. It may result in system crashes or performance degradation, impacting the availability and reliability of the affected system.
An attacker could potentially exploit this vulnerability to exhaust system resources and launch denial-of-service attacks. By repeatedly triggering USB device notifications, they can cause a gradual depletion of available memory, leading to system instability or crashes.
The vulnerability was introduced in version v3.3 of the Linux Kernel. All versions between v3.3 and v5.4.124 (inclusive) are affected. It has been fixed in version v5.4.125.
At the time of this report, there is no known public exploit for this vulnerability. However, it is advisable to apply the recommended fix or workaround to mitigate any potential risks.
For more details about this vulnerability, including the specific code changes and commit references, you can refer to the vulnerability report in the GSD database: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1000xxx/GSD-2021-1000750.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.