# CVE-2021-47311: net: qcom/emac: fix UAF in emac_remove

- 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-05-21T14:35:29.304Z
- Modified: 2026-06-17T04:17:09.953Z
- 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: 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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.*; from 5.13.5 up to 5.13.*; from 5.14 up to *)
- linux linux_kernel: from 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.14

## References

- <https://git.kernel.org/stable/c/4d04a42b926e682140776e54188f4a44f1f01a81> (patch)
- <https://git.kernel.org/stable/c/b1e091331920f8fbfc747dcbd16263fcd71abb2d> (patch)
- <https://git.kernel.org/stable/c/11e9d163d631198bb3eb41a677a61b499516c0f7> (patch)
- <https://git.kernel.org/stable/c/2b70ca92847c619d6264c7372ef74fcbfd1e048c> (patch)
- <https://git.kernel.org/stable/c/b560521eca03d0a2db6093a5a632cbdd0a0cf833> (patch)
- <https://git.kernel.org/stable/c/8a225a6e07a57a1538d53637cb3d82bd3e477839> (patch)
- <https://git.kernel.org/stable/c/ad297cd2db8953e2202970e9504cab247b6c7cb4> (patch)

## Sources

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

---

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