HID: usbhid: free raw_report buffers in usbhid_stop

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1001586: HID: usbhid: free raw_report buffers in usbhid_stop. Affects Kernel versions < 965147067fa1bedff3ae1f07ce3f89f1a14d2df3. 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 HID (Human Interface Device) subsystem in the Linux Kernel provides support for various input devices such as keyboards, mice, and game controllers. The usbhid module is responsible for handling USB HID devices. It allows communication between the kernel and the HID devices connected via USB. The usbhid_stop function is used to stop the usbhid module and release any resources associated with it.

Vulnerability Detail

The vulnerability identified as GSD-2021-1001586 in the usbhid module of the Linux Kernel allows for potential security issues. Specifically, the raw_report buffers are not properly freed in the usbhid_stop function. This can lead to memory leaks and potential exploitation by an attacker. 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 HID usbhid module in the Linux Kernel has a vulnerability that can lead to memory leaks and potential security issues. It is recommended to update the Linux Kernel to version v5.4.151 or later to fix this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability is not yet proven. However, if successfully exploited, it could lead to memory leaks and potential security issues.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will analyze it in real-time.

There is no known exploit for this vulnerability at the moment. However, it is important to apply the fix as soon as possible to mitigate any potential risks.

It is recommended to update the Linux Kernel to the fixed version rather than manually patching the vulnerability. This ensures that you have the latest security updates and fixes for other potential vulnerabilities as well.

You can find more information about this vulnerability in the GSD-2021-1001586.json file available in the GSD database on GitHub: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1001xxx/GSD-2021-1001586.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