CVE-2021-47596
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by NVD
Exploit likelihood
0.25% (higher than 17% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 5.8 before 5.10.88, from 5.11 before 5.15.11NVD

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: net: hns3: corrige el error de use-after-free en hclgevf_send_mbx_msg Actualmente, la función hns3_remove desinstala primero la instancia del cliente y luego desinstala el dispositivo del motor de aceleración. El dispositivo de red se libera en el proceso de desinstalación de la instancia del cliente, pero el proceso de desinstalación del dispositivo del motor de aceleración aún lo utiliza para rastrear la información del tiempo de ejecución. Esto provoca un problema de use-after-free. Entonces lo soluciona verificando el estado del registro de la instancia para evitar use after free.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47596 changed 2026-05-11CVE Terms of Use
NVDCVE-2021-47596 changed 2026-06-17Public domain