Critical Memory Leak Fix in Linux Kernel's DWC3 USB Driver

linux Updated 02 Oct 2025

Summary

17/09/2025
N/A
Yes i
Unrated
Not published

CVE-2022-50357: In the Linux kernel, the following vulnerability has been resolved: usb: dwc3: core: fix some leaks in probe The dwc3_get_properties() function calls: dwc->usb_psy = power_supply_get_by_name(usb_psy_name); so there is so... Affects linux versions < 6.0.3-1. Fixed in 6.0.3-1. 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 the core component of many operating systems, providing essential services for hardware and software interaction. It supports a wide range of hardware architectures and is known for its stability and performance. The DWC3 USB driver is responsible for managing USB devices connected to the system. This vulnerability affects versions of the Linux kernel in Debian 12, 13, and 14, highlighting a critical issue in the DWC3 USB driver that could lead to memory leaks during device probe operations.

Vulnerability Detail

In the Linux kernel, specifically within the DWC3 USB driver, a vulnerability has been identified that involves memory leaks during the probe process. The function dwc3_get_properties() calls power_supply_get_by_name(usb_psy_name), which does not adequately handle error paths, leading to potential memory leaks. This could result in increased memory usage over time, potentially causing system instability or crashes if not addressed.

How To Fix

Minimum fixed version

6.0.3-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the available patch as soon as possible to mitigate the risk.

Conclusion

The CVE-2022-50357 vulnerability in the Linux kernel's DWC3 USB driver poses a significant risk due to memory leaks during device probing. It is crucial for users of Debian 12, 13, and 14 to update their systems to version 6.0.3-1 or later to mitigate this risk. Utilizing tools like Vulert can further enhance your ability to monitor and manage vulnerabilities effectively.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-50357 is a vulnerability in the Linux kernel's DWC3 USB driver that can lead to memory leaks during device probing.

You can use Vulert, which monitors open-source vulnerabilities in your software. By uploading your manifest file like package-lock.json, you can check for vulnerabilities without needing to access the code.

If exploited, this vulnerability could lead to increased memory usage, potentially causing system instability or crashes.

You can update your Linux kernel by running 'sudo apt-get update && sudo apt-get install linux' in your terminal.

Yes, you can use Vulert's playground to monitor and alert for open-source vulnerabilities in your software in real-time.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.0.3-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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