USBNet: Sanity Check for Maxpacket Vulnerability in Linux Kernel

Kernel Updated 02 Oct 2025

Summary

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

UVI-2021-1001942: usbnet: sanity check for maxpacket. Affects Kernel versions < 524f333e98138d909a0a0c574a9ff6737dce2767. 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 Linux Kernel is a widely used open-source operating system kernel that serves as the foundation for various Linux distributions. It provides essential functionality for the system, including device drivers, memory management, and process scheduling. The USBNet subsystem in the Linux Kernel enables USB devices to function as network interfaces, allowing data transfer over USB connections.

The USBNet subsystem relies on the 'maxpacket' parameter to determine the maximum packet size for USB transfers. However, a vulnerability has been discovered in the sanity check for this parameter, which could potentially lead to security issues.

Vulnerability Detail

The vulnerability in the USBNet subsystem arises from a lack of proper sanity checks for the 'maxpacket' parameter. This parameter is used to define the maximum packet size for USB transfers. Without adequate validation, an attacker could manipulate this parameter to cause buffer overflows, leading to potential memory corruption or arbitrary code execution.

Exploiting this vulnerability could allow an attacker to gain unauthorized access to the system, escalate privileges, or launch denial-of-service attacks. The impact and attack plausibility of this vulnerability have not been fully 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

As a workaround, users can implement strict input validation and sanitization of the 'maxpacket' parameter in their USBNet configurations. By enforcing proper bounds checking and ensuring the parameter is within acceptable limits, the risk of exploitation can be mitigated. Here is an example of how to perform input validation in C code:

if (maxpacket < MIN_PACKET_SIZE || maxpacket > MAX_PACKET_SIZE) {
  // Handle invalid 'maxpacket' value
}

Conclusion

The USBNet: Sanity Check for Maxpacket vulnerability in the Linux Kernel poses a potential security risk due to the lack of proper sanity checks for the 'maxpacket' parameter in the USBNet subsystem. To mitigate this vulnerability, it is crucial to update the Linux Kernel to version v4.9.289 or a later release. Regularly updating the Linux Kernel helps ensure that the latest security patches and bug fixes are applied. For further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The USBNet subsystem in the Linux Kernel allows USB devices to function as network interfaces, enabling data transfer over USB connections.

The 'maxpacket' parameter defines the maximum packet size for USB transfers in the USBNet subsystem.

The absence of proper sanity checks for the 'maxpacket' parameter allows attackers to manipulate it, potentially causing buffer overflows and leading to memory corruption or arbitrary code execution.

Exploiting this vulnerability could result in unauthorized access to the system, privilege escalation, or denial-of-service attacks.

No, the impact and attack plausibility of this vulnerability have not been fully demonstrated yet.

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