CVE-2021-47311
JSON

7.8high

net: qcom/emac: fix UAF in emac_remove

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

Affected

Product or packageVersionsReported by
Linux Linuxfrom 54e19bc74f3380d414681762ceed9f7245bc6a6e before 4d04a42b926e682140776e54188f4a44f1f01a81, from 54e19bc74f3380d414681762ceed9f7245bc6a6e before b1e091331920f8fbfc747dcbd16263fcd71abb2d, from 54e19bc74f3380d414681762ceed9f7245bc6a6e before 11e9d163d631198bb3eb41a677a61b499516c0f7, from 54e19bc74f3380d414681762ceed9f7245bc6a6e before 2b70ca92847c619d6264c7372ef74fcbfd1e048c, from 54e19bc74f3380d414681762ceed9f7245bc6a6e before b560521eca03d0a2db6093a5a632cbdd0a0cf833, from 54e19bc74f3380d414681762ceed9f7245bc6a6e before 8a225a6e07a57a1538d53637cb3d82bd3e477839, from 54e19bc74f3380d414681762ceed9f7245bc6a6e before ad297cd2db8953e2202970e9504cab247b6c7cb4, 4.9
Not affected: before 4.9, from 4.9.277 up to 4.9.*, from 4.14.241 up to 4.14.*, from 4.19.199 up to 4.19.*, from 5.4.135 up to 5.4.*, from 5.10.53 up to 5.10.*
CVE List
linux linux_kernelfrom 4.9 before 4.9.277, from 4.10 before 4.14.241, from 4.15 before 4.19.199, from 4.20 before 5.4.135, from 5.5 before 5.10.53, from 5.11 before 5.13.5, 5.14NVD

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

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: net: qcom/emac: corrige UAF en emac_remove adpt son datos privados de netdev y no se pueden usar después de la llamada a free_netdev(). Usar adpt después de free_netdev() puede causar un error en UAF. Solucionadlo moviendo free_netdev() al final de la función.

References

Sources

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