# CVE-2021-47596: net: hns3: fix use-after-free bug in hclgevf_send_mbx_msg

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-06-19T14:53:58.243Z
- Modified: 2026-06-17T04:17:50.790Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from d8355240cf8fb8b9e002b5c8458578435cea85c2 before 12512bc8f25b8ba9795dfbae0e9ca57ff13fd542; from d8355240cf8fb8b9e002b5c8458578435cea85c2 before 4f4a353f6fe033807cd026a5de81c67469ff19b0; from d8355240cf8fb8b9e002b5c8458578435cea85c2 before 27cbf64a766e86f068ce6214f04c00ceb4db1af4; 5.8 (not affected: before 5.8; from 5.10.88 up to 5.10.*; from 5.15.11 up to 5.15.*; from 5.16 up to *)
- linux linux_kernel: from 5.8 before 5.10.88; from 5.11 before 5.15.11

## References

- <https://git.kernel.org/stable/c/12512bc8f25b8ba9795dfbae0e9ca57ff13fd542> (patch)
- <https://git.kernel.org/stable/c/4f4a353f6fe033807cd026a5de81c67469ff19b0> (patch)
- <https://git.kernel.org/stable/c/27cbf64a766e86f068ce6214f04c00ceb4db1af4> (patch)

## Sources

- CVE List: [CVE-2021-47596](https://www.cve.org/CVERecord?id=CVE-2021-47596), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47596](https://nvd.nist.gov/vuln/detail/CVE-2021-47596), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47596 · Whole record: https://cve.day/CVE-2021-47596.json · Rebuilt by cve.day 2026-11-25T22:58:08.934Z
