Vulnerability in Kernel Package: Array Overflow in hns_dsaf_ge_srst_by_port()

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1002373: ethernet: hisilicon: hns: hns_dsaf_misc: fix a possible array overflow in hns_dsaf_ge_srst_by_port(). Affects Kernel versions < 948968f8747650447c8f21c9fdba0e1973be040b. 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 Kernel package is a crucial component of the Linux operating system, responsible for managing core system functions and providing an interface between hardware and software. It includes various drivers and modules to support different hardware devices. One of these modules is the hns (Hisilicon Network Subsystem) module, which handles Ethernet functionality for Hisilicon network devices. The hns_dsaf_misc module within hns is responsible for miscellaneous operations, including resetting the Gigabit Ethernet (GE) subsystem. However, a vulnerability has been discovered in the hns_dsaf_ge_srst_by_port() function, which could lead to an array overflow.

Vulnerability Detail

The vulnerability in the hns_dsaf_ge_srst_by_port() function of the hns_dsaf_misc module could allow an attacker to trigger an array overflow. This could potentially lead to memory corruption, system crashes, or even remote code execution. The vulnerability arises from improper bounds checking when handling user-supplied input. An attacker could exploit this vulnerability by sending specially crafted input to the affected function, causing it to write beyond the boundaries of an array. This could result in overwriting adjacent memory locations and potentially executing arbitrary code.

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 this vulnerability has been fixed in the latest version of the Kernel package, there is no specific workaround available. Users are advised to update their Kernel package to the patched version.

Conclusion

The vulnerability in the hns_dsaf_ge_srst_by_port() function of the hns_dsaf_misc module in the Kernel package could allow an attacker to trigger an array overflow, potentially leading to memory corruption or remote code execution. It is crucial to update the Kernel package to the latest available version to mitigate this vulnerability. Regularly updating the Kernel package is essential to ensure the application of security patches and bug fixes. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability could potentially allow an attacker to execute arbitrary code, leading to system compromise, data theft, or unauthorized access.

Yes, this vulnerability can be exploited remotely if the affected system is exposed to network-based attacks.

No, the vulnerability is fixed in Linux Kernel version v4.9.292 and later. Users should update to the latest available version to mitigate the risk.

There is no evidence of active exploitation of this vulnerability at the time of this report. However, it is important to apply the necessary updates to protect against potential future attacks.

For more information about this vulnerability, you can refer to the source link provided in the database_specific section of this report.

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