usbnet: Sanity Check for maxpacket in Linux Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1001963: usbnet: sanity check for maxpacket. Affects Kernel versions < 74b3b27cf9fecce00cd8918b7882fd81191d0aa4. 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. It provides essential services and functions for the proper functioning of the system. The usbnet module in the Linux Kernel is responsible for handling USB network devices. It allows devices to communicate over USB as if they were traditional network interfaces. The maxpacket parameter in usbnet is used to specify the maximum packet size that can be sent or received by the device. This vulnerability relates to a missing sanity check for the maxpacket value, which could lead to potential security issues.

Vulnerability Detail

The vulnerability in usbnet arises from the absence of a sanity check for the maxpacket value. Without this check, an attacker could potentially manipulate the maxpacket value to cause buffer overflows or other memory-related vulnerabilities. This could lead to arbitrary code execution, privilege escalation, or denial of service attacks. The impact and attack plausibility of this vulnerability have not been proven yet. It is important to note that this vulnerability has been fixed in Linux Kernel version v4.14.254 by commit 74b3b27cf9fecce00cd8918b7882fd81191d0aa4.

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 →

Conclusion

The usbnet module in the Linux Kernel is vulnerable to a missing sanity check for the maxpacket value. This vulnerability could potentially lead to serious security issues, including arbitrary code execution and privilege escalation. It is crucial to update the Linux Kernel to version v4.14.254 or later to fix this vulnerability. Regularly updating the Kernel is essential to ensure the system is protected against the latest security threats. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The usbnet module in the Linux Kernel allows USB devices to communicate over USB as if they were traditional network interfaces. It enables the use of USB network devices such as USB Ethernet adapters.

The maxpacket parameter in usbnet is used to specify the maximum packet size that can be sent or received by the USB network device. It determines the efficiency and performance of data transfer over the USB connection.

A sanity check is a validation process that ensures the input or configuration values are within expected bounds and do not pose any security risks. It helps prevent potential vulnerabilities and ensures the system operates as intended.

The potential consequences of this vulnerability include arbitrary code execution, privilege escalation, and denial of service attacks. An attacker could exploit this vulnerability to manipulate the maxpacket value and cause buffer overflows or other memory-related vulnerabilities.

Yes, this vulnerability has been fixed in Linux Kernel version v4.14.254 by commit 74b3b27cf9fecce00cd8918b7882fd81191d0aa4. It is recommended to update the Kernel to the fixed version or later to mitigate the risk.

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