CVE-2021-47596

net: hns3: fix use-after-free bug in hclgevf_send_mbx_msg

State
Published
Severity
Not scored
Published
Jun 19, 2024
Updated
May 11, 2026
Reserved
May 24, 2024

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

net: hns3: fix use-after-free bug in hclgevf_send_mbx_msg

Currently, the hns3_remove function firstly uninstall client instance, and then uninstall acceletion engine device. The netdevice is freed in client instance uninstall process, but acceletion engine device uninstall process still use it to trace runtime information. This causes a use after free problem.

So fixes it by check the instance register state to avoid use after free.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • d8355240cf8fb8b9e002b5c8458578435cea85c2 to before 12512bc8f25b8ba9795dfbae0e9ca57ff13fd542Affected
  • d8355240cf8fb8b9e002b5c8458578435cea85c2 to before 4f4a353f6fe033807cd026a5de81c67469ff19b0Affected
  • d8355240cf8fb8b9e002b5c8458578435cea85c2 to before 27cbf64a766e86f068ce6214f04c00ceb4db1af4Affected
LinuxLinux
  • 5.8Affected
  • before 5.8Not affected
  • 5.10.88 through 5.10.*Not affected
  • 5.15.11 through 5.15.*Not affected
  • 5.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.