USB: dwc2 - Check Return Value after Calling platform_get_resource()
Summary
UVI-2021-1001554: usb: dwc2: check return value after calling platform_get_resource(). Affects Kernel versions < a7182993dd8e09f96839ddc3ac54f9b37370d282. 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 USB dwc2 package is a driver for the DesignWare USB2.0 OTG Controller IP Core. It provides functionality for USB communication in embedded systems. The vulnerability in this package arises from a failure to check the return value after calling the platform_get_resource() function. This oversight could potentially lead to security vulnerabilities in the system.
Vulnerability Detail
The vulnerability in the USB dwc2 package occurs due to a lack of proper error handling. When the return value of the platform_get_resource() function is not checked, it can result in uninitialized variables or incorrect memory access. This can be exploited by an attacker to execute arbitrary code, escalate privileges, or cause a denial-of-service condition. The impact and attack plausibility of this vulnerability have not been proven yet.
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 specific workaround mentioned for this vulnerability.
Conclusion
The USB dwc2 package in the Linux Kernel is vulnerable to a security issue that arises from not checking the return value after calling platform_get_resource(). This vulnerability can potentially lead to arbitrary code execution, privilege escalation, or denial-of-service attacks. To mitigate this vulnerability, it is recommended to update the Linux Kernel to version v4.19.210 or later. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The impact of this vulnerability can vary depending on the specific system and its configuration. However, potential consequences include arbitrary code execution, privilege escalation, and denial-of-service attacks.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) to the playground, and it will alert you in real-time if the vulnerability is present.
At the time of this report, there is no known exploit for this vulnerability. However, it is important to apply the recommended fix to prevent any potential exploitation.
The only known mitigation for this vulnerability is to update the Linux Kernel to version v4.19.210 or later. This will ensure that the return value of platform_get_resource() is properly checked, reducing the risk of exploitation.
You can find more information about this vulnerability in the Open Source Vulnerability Database (OSVDB) entry: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1001xxx/UVI-2021-1001554.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.