USB: dwc2 - Check Return Value after Calling platform_get_resource()

Kernel Updated 02 Oct 2025

Summary

19/10/2021
N/A
No i
Unrated
Not published

UVI-2021-1001554: usb: dwc2: check return value after calling platform_get_resource(). Affects Kernel versions < a7182993dd8e09f96839ddc3ac54f9b37370d282. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback