net: qcom/emac: fix UAF in emac_remove (Linux Linux)

CVE-2021-47311
HIGH 7.8

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: net: qcom/emac: fix UAF in emac_remove adpt is netdev private data and it cannot be used after free_netdev() call. Using adpt after free_netdev() can cause UAF bug. Fix it by moving free_netdev() at the end of the function.

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 54e19bc74f3380d414681762ceed9f7245bc6a6e < 4d04a42b926e682140776e54188f4a44f1f01a81 ; affected 54e19bc74f3380d414681762ceed9f7245bc6a6e < b1e091331920f8fbfc747dcbd16263fcd71abb2d ; affected 54e19bc74f3380d414681762ceed9f7245bc6a6e < 11e9d163d631198bb3eb41a677a61b499516c0f7 ; affected 54e19bc74f3380d414681762ceed9f7245bc6a6e < 2b70ca92847c619d6264c7372ef74fcbfd1e048c ; affected 54e19bc74f3380d414681762ceed9f7245bc6a6e < b560521eca03d0a2db6093a5a632cbdd0a0cf833 ; affected 54e19bc74f3380d414681762ceed9f7245bc6a6e < 8a225a6e07a57a1538d53637cb3d82bd3e477839
Linux · Linuxaffected 4.9 ; unaffected 0 < 4.9 ; unaffected 4.9.277 ≤ 4.9.* ; unaffected 4.14.241 ≤ 4.14.* ; unaffected 4.19.199 ≤ 4.19.* ; unaffected 5.4.135 ≤ 5.4.*

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