Use-after-free vulnerability in hclgevf_send_mbx_msg in net: hns3

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1002697: net: hns3: fix use-after-free bug in hclgevf_send_mbx_msg. Affects Kernel versions >= d8355240cf8fb8b9e002b5c8458578435cea85c2, < 12512bc8f25b8ba9795dfbae0e9ca57ff13fd542. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The hns3 package is a network driver for Huawei HiSilicon Network SoCs. It provides support for the HNS3 Ethernet controller. The hclgevf_send_mbx_msg function is responsible for sending mailbox messages in the HNS3 VF driver. This function is vulnerable to a use-after-free bug.

Vulnerability Detail

The use-after-free vulnerability in hclgevf_send_mbx_msg allows an attacker to manipulate freed memory, leading to potential code execution or a system crash. This vulnerability was introduced in Linux Kernel version v5.8 and fixed in version v5.10.88. The vulnerability occurs due to improper handling of mailbox messages, which can result in the use of freed memory. An attacker could exploit this vulnerability by sending specially crafted mailbox messages to a vulnerable system.

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 known workaround for this vulnerability. It is essential to apply the recommended fix by updating the Linux Kernel to the patched version.

Conclusion

The use-after-free vulnerability in hclgevf_send_mbx_msg in the hns3 package can lead to potential code execution or system crashes. It is crucial to update the Linux Kernel to version v5.10.88 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability can potentially allow an attacker to execute arbitrary code or crash the system.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will alert you if the vulnerability is present.

At the time of this report, there is no known public exploit for this vulnerability. However, it is crucial to apply the recommended fix to mitigate any potential risks.

Yes, this vulnerability can be exploited remotely by sending specially crafted mailbox messages to a vulnerable system.

The only known mitigation for this vulnerability is to update the Linux Kernel to the patched version.

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