net: hns3: put off calling register_netdev() until client initialize complete

Kernel Updated 02 Oct 2025

Summary

04/06/2021
N/A
No i
Unrated
Not published

GSD-2021-1000532: net: hns3: put off calling register_netdev() until client initialize complete. Affects Kernel versions >= 08a100689d4baf296d6898c687ea8d005da8d234, < 0921a0620b5077796fddffb22a8e6bc635a4bb50. 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 net package in the Linux Kernel is responsible for managing network devices and protocols. It provides the necessary infrastructure for networking operations. The hns3 driver is used for Huawei HiSilicon Network Subsystem 3 (HNS3) Ethernet controllers. The hns3 driver allows the Linux Kernel to communicate with these controllers and handle network traffic. This vulnerability specifically affects the hns3 driver in the net package.

Vulnerability Detail

The vulnerability in the hns3 driver arises from the premature calling of register_netdev() before the client initialization is complete. This can lead to various issues, including potential security vulnerabilities. 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 v5.12.9 by commit 0921a0620b5077796fddffb22a8e6bc635a4bb50. However, it was introduced in version v5.6 by commit 08a100689d4baf296d6898c687ea8d005da8d234.

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 net package in the Linux Kernel, specifically the hns3 driver, is vulnerable to a security issue where register_netdev() is called prematurely. This vulnerability has been fixed in Linux Kernel version v5.12.9. Users are advised to update their kernel to the fixed version or wait for their Linux distribution to provide an updated package. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The net package in the Linux Kernel is responsible for managing network devices and protocols. It provides the necessary infrastructure for networking operations.

The hns3 driver is used for Huawei HiSilicon Network Subsystem 3 (HNS3) Ethernet controllers. It allows the Linux Kernel to communicate with these controllers and handle network traffic.

register_netdev() is a function in the Linux Kernel that registers a network device. It is called during the initialization process to make the device available for network operations.

The potential ramifications of this vulnerability include security vulnerabilities and potential issues with network device initialization.

You can use Vulert's 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 for open-source vulnerabilities in real-time.

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