Memory Leak in dwc2_hcd_init in Kernel

Kernel Updated 02 Oct 2025

Summary

31/07/2022
N/A
No i
Unrated
Not published

GSD-2022-1004296: usb: dwc2: Fix memory leak in dwc2_hcd_init. Affects Kernel versions >= 856e6e8e0f9300befa87dde09edb578555c99a82, < 52bfcedbfd5bf962dbdcb6e761f4d0dd3ba26dfd. 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 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 →

Share this vulnerability

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.

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