Vulnerability in usbnet: sanity check for maxpacket

Kernel Updated 02 Oct 2025

Summary

14/11/2021
N/A
No i
Unrated
Not published

GSD-2021-1001986: usbnet: sanity check for maxpacket. Affects Kernel versions < 002d82227c0abe29118cf80f7e2f396b22d448ed. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The usbnet package is a part of the Linux Kernel ecosystem and is responsible for providing USB networking functionality. It allows devices to communicate over USB connections. The package handles various aspects of USB networking, including data transmission and reception. However, a vulnerability has been discovered in the package's sanity check for maxpacket.

Vulnerability Detail

The vulnerability in usbnet arises from a lack of proper sanity checks for the maxpacket value. This value represents the maximum packet size that can be transmitted or received over USB. Without adequate validation, an attacker could manipulate this value to cause buffer overflows or other memory-related issues. Exploiting this vulnerability could lead to arbitrary code execution, denial of service, or other malicious activities. The vulnerability has been fixed in Linux Kernel version v4.19.215 by commit 002d82227c0abe29118cf80f7e2f396b22d448ed.

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 Linux Kernel is not immediately feasible, a temporary workaround can be implemented by manually applying the fix introduced in commit 002d82227c0abe29118cf80f7e2f396b22d448ed. The specific code changes can be found in the commit's diff on the official Linux Kernel repository. By applying these changes to the affected system, the vulnerability can be addressed until a proper kernel update is performed.

Conclusion

In conclusion, the usbnet package in the Linux Kernel is vulnerable to a sanity check bypass for maxpacket. This vulnerability can be mitigated by updating the kernel to version v4.19.215 or later. Alternatively, a temporary workaround can be applied by manually applying the fix introduced in commit 002d82227c0abe29118cf80f7e2f396b22d448ed. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

usbnet is a package in the Linux Kernel ecosystem that enables USB networking functionality, allowing devices to communicate over USB connections.

Exploiting this vulnerability could lead to arbitrary code execution, denial of service, or other malicious activities.

Yes, the vulnerability has been fixed in Linux Kernel version v4.19.215 by commit 002d82227c0abe29118cf80f7e2f396b22d448ed.

To fix this vulnerability, update the Linux Kernel to version v4.19.215 or later by downloading the updated kernel source code and compiling it according to the provided instructions.

Yes, a temporary workaround can be implemented by manually applying the fix introduced in commit 002d82227c0abe29118cf80f7e2f396b22d448ed. Details can be found in the commit's diff on 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