USB: dwc2 Vulnerability in Linux Kernel

Kernel Updated 02 Oct 2025

Summary

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

UVI-2021-1001527: usb: dwc2: check return value after calling platform_get_resource(). Affects Kernel versions < 4b7f4a0eb92bf37bea4cd838c7f83ea42823ca8b. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux Kernel is a widely used open-source operating system kernel that serves as the foundation for various Linux distributions. It provides essential functionality and interfaces for hardware devices, including USB controllers. The dwc2 driver is responsible for managing USB functionality on certain platforms. It is used in embedded systems, smartphones, and other devices. However, a vulnerability has been discovered in the dwc2 driver that could potentially be exploited by attackers.

Vulnerability Detail

The vulnerability in the dwc2 driver arises from a failure to check the return value after calling the platform_get_resource() function. This oversight could lead to various security issues, including potential privilege escalation or denial of service attacks. An attacker could exploit this vulnerability to gain elevated privileges or crash the system. The impact and attack plausibility of this vulnerability have not been fully proven. The vulnerability has been addressed in the Linux Kernel version v4.14.250 by commit 4b7f4a0eb92bf37bea4cd838c7f83ea42823ca8b.

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

If updating the kernel is not immediately feasible, a possible workaround is to disable the affected USB functionality or restrict access to the vulnerable driver. This can be achieved by modifying the system configuration or using kernel command-line parameters. However, it is important to note that workarounds may have limitations and should be considered temporary measures until the kernel is updated.

Conclusion

The vulnerability in the dwc2 driver of the Linux Kernel could potentially be exploited by attackers to gain elevated privileges or crash the system. It is crucial to update the kernel to the patched version or apply workarounds until the update is available. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Linux Kernel is the core component of the Linux operating system. It provides essential functionality and interfaces for hardware devices, file systems, and process management.

The dwc2 driver is a USB controller driver used in various devices, including embedded systems and smartphones. It enables communication and management of USB devices connected to the system.

The vulnerability in the dwc2 driver could allow attackers to gain elevated privileges or crash the system. This could lead to unauthorized access, data breaches, or disruption of services.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v4.14.250 or later. Alternatively, you can wait for your Linux distribution to provide an updated package with the patched kernel version.

If updating the kernel is not immediately feasible, you can consider disabling the affected USB functionality or restricting access to the vulnerable driver. However, workarounds may have limitations and should be temporary measures.

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