net: hns3: fix use-after-free bug in hclgevf_send_mbx_msg (Linux Linux)

CVE-2021-47596
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.25 % · percentile 16 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected d8355240cf8fb8b9e002b5c8458578435cea85c2 < 12512bc8f25b8ba9795dfbae0e9ca57ff13fd542 ; affected d8355240cf8fb8b9e002b5c8458578435cea85c2 < 4f4a353f6fe033807cd026a5de81c67469ff19b0 ; affected d8355240cf8fb8b9e002b5c8458578435cea85c2 < 27cbf64a766e86f068ce6214f04c00ceb4db1af4
Linux · Linuxaffected 5.8 ; unaffected 0 < 5.8 ; unaffected 5.10.88 ≤ 5.10.* ; unaffected 5.15.11 ≤ 5.15.* ; unaffected 5.16 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD