USB Gadget Vulnerability in Linux Kernel

Kernel Updated 02 Oct 2025

Summary

18/03/2022
N/A
No i
Unrated
Not published

GSD-2022-1000878: usb: gadget: clear related members when goto fail. Affects Kernel versions < 58b419d16e8791e16f8865463aa28bbcef726e26. 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 Linux Kernel is the core component of the Linux operating system, responsible for managing system resources and providing essential functionality. It includes various subsystems, including USB gadget, which allows devices to act as USB peripherals. The USB gadget subsystem enables devices to emulate USB devices such as keyboards, mice, and storage devices. However, a vulnerability has been discovered in the USB gadget subsystem that could potentially be exploited by attackers.

Vulnerability Detail

The vulnerability in the USB gadget subsystem arises from a failure to clear related members when encountering a 'goto fail' condition. This oversight could lead to memory corruption or other security issues. While the impact and attack plausibility have not been proven, it is crucial to address this vulnerability to ensure the security and stability of systems utilizing the Linux 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 →

Workaround

As a workaround, users can apply the patch manually by identifying the affected code and modifying it to clear the related members when encountering a 'goto fail' condition. However, it is strongly advised to update to the patched version of the Linux Kernel for a more comprehensive and reliable solution.

Conclusion

The USB gadget vulnerability in the Linux Kernel poses a potential risk to system security. It is crucial to update to the patched version of the Linux Kernel (v5.4.183 or later) to mitigate this vulnerability. For further support and assistance with vulnerability remediation, please 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, responsible for managing system resources and providing essential functionality.

The USB gadget subsystem in the Linux Kernel allows devices to act as USB peripherals, enabling them to emulate USB devices such as keyboards, mice, and storage devices.

The impact of this vulnerability is not yet proven, but it could potentially lead to memory corruption or other security issues.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.4.183 or later, which includes the necessary patch.

Yes, a workaround involves manually applying the patch to the affected code. However, it is advisable to update to the patched version of the Linux Kernel for a more comprehensive solution.

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