Memory Leak in dwc2_hcd_init in Kernel
Summary
GSD-2022-1004296: usb: dwc2: Fix memory leak in dwc2_hcd_init. Affects Kernel versions >= 856e6e8e0f9300befa87dde09edb578555c99a82, < 52bfcedbfd5bf962dbdcb6e761f4d0dd3ba26dfd. 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 crucial component of the Linux operating system that manages system resources and facilitates communication between hardware and software. It provides core functionalities and device drivers for various hardware components. The dwc2 module in the Kernel is responsible for supporting USB functionality. It includes the dwc2_hcd_init function, which initializes the DWC2 USB host controller driver. This driver allows the system to interact with USB devices. However, a memory leak vulnerability has been identified in the dwc2_hcd_init function.
Vulnerability Detail
The memory leak vulnerability in dwc2_hcd_init can lead to the gradual depletion of system memory resources. When the function is called, it fails to release allocated memory under certain conditions, resulting in a memory leak. Over time, this can cause the system to run out of available memory, leading to performance degradation or even system crashes. Attackers may potentially exploit this vulnerability to exhaust system resources and launch denial-of-service attacks. The vulnerability was introduced in Kernel version v5.15 and was fixed in version v5.18.6.
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 consider disabling the USB functionality or removing USB devices that rely on the dwc2 module. However, this may not be a feasible solution for systems that heavily depend on USB connectivity. It is strongly advised to apply the official fix by updating the Kernel to the patched version.
Conclusion
The memory leak vulnerability in dwc2_hcd_init can have significant consequences on system performance and stability. It is crucial to update the Kernel to the patched version to mitigate this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can lead to a gradual depletion of system memory resources, potentially causing performance degradation or system crashes.
Attackers can potentially exploit this vulnerability to exhaust system resources and launch denial-of-service attacks.
The vulnerability was introduced in Kernel version v5.15 and affects all subsequent versions until v5.18.5.
Yes, the vulnerability has been fixed in Kernel version v5.18.6.
Users can obtain the updated Kernel from the official Linux Kernel repository.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.