CVE-2021-47311
net: qcom/emac: fix UAF in emac_remove
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < 4d04a42b926e682140776e54188f4a44f1f01a81; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < b1e091331920f8fbfc747dcbd16263fcd71abb2d; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < 11e9d163d631198bb3eb41a677a61b499516c0f7; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < 2b70ca92847c619d6264c7372ef74fcbfd1e048c; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < b560521eca03d0a2db6093a5a632cbdd0a0cf833; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < 8a225a6e07a57a1538d53637cb3d82bd3e477839; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < ad297cd2db8953e2202970e9504cab247b6c7cb4
- Anyone running Linux 4.9
Vulnerability facts
- Affected
- Linux >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < 4d04a42b926e682140776e54188f4a44f1f01a81; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < b1e091331920f8fbfc747dcbd16263fcd71abb2d; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < 11e9d163d631198bb3eb41a677a61b499516c0f7; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < 2b70ca92847c619d6264c7372ef74fcbfd1e048c; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < b560521eca03d0a2db6093a5a632cbdd0a0cf833; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < 8a225a6e07a57a1538d53637cb3d82bd3e477839; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < ad297cd2db8953e2202970e9504cab247b6c7cb4; Linux 4.9
- Fixed in
- Linux 4d04a42b926e682140776e54188f4a44f1f01a81, Linux 11e9d163d631198bb3eb41a677a61b499516c0f7, Linux 2b70ca92847c619d6264c7372ef74fcbfd1e048c, Linux 8a225a6e07a57a1538d53637cb3d82bd3e477839
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.33% chance of exploitation in 30 days (percentile 18, 2026-11-26)
- CWE
- CWE-416
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < 4d04a42b926e682140776e54188f4a44f1f01a81; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < b1e091331920f8fbfc747dcbd16263fcd71abb2d; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < 11e9d163d631198bb3eb41a677a61b499516c0f7; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < 2b70ca92847c619d6264c7372ef74fcbfd1e048c; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < b560521eca03d0a2db6093a5a632cbdd0a0cf833; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < 8a225a6e07a57a1538d53637cb3d82bd3e477839; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < ad297cd2db8953e2202970e9504cab247b6c7cb4 | — | cvelist |
| Linux | 4.9 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-47311. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-47311.md Affected: Linux >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < 4d04a42b926e682140776e54188f4a44f1f01a81; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < b1e091331920f8fbfc747dcbd16263fcd71abb2d; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < 11e9d163d631198bb3eb41a677a61b499516c0f7; >= 54e19bc74f3380d41468176… Fixed in: Linux 4d04a42b926e682140776e54188f4a44f1f01a81, Linux 11e9d163d631198bb3eb41a677a61b499516c0f7, Linux 2b70ca92847c619d6264c7372ef74fcbfd1e048c, Linux 8a225a6e07a57a1538d53637cb3d82bd3e477839 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/4d04a42b926e682140776e54188f4a44f1f01a81
- https://git.kernel.org/stable/c/b1e091331920f8fbfc747dcbd16263fcd71abb2d
- https://git.kernel.org/stable/c/11e9d163d631198bb3eb41a677a61b499516c0f7
- https://git.kernel.org/stable/c/2b70ca92847c619d6264c7372ef74fcbfd1e048c
- https://git.kernel.org/stable/c/b560521eca03d0a2db6093a5a632cbdd0a0cf833
- https://git.kernel.org/stable/c/8a225a6e07a57a1538d53637cb3d82bd3e477839
- https://git.kernel.org/stable/c/ad297cd2db8953e2202970e9504cab247b6c7cb4
FAQ
Is CVE-2021-47311 being exploited?
There is no confirmed exploitation: CVE-2021-47311 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-47311?
High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2021-47311?
Linux >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < 4d04a42b926e682140776e54188f4a44f1f01a81; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < b1e091331920f8fbfc747dcbd16263fcd71abb2d; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < 11e9d163d631198bb3eb41a677a61b499516c0f7; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < 2b70ca92847c619d6264c7372ef74fcbfd1e048c; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < b560521eca03d0a2db6093a5a632cbdd0a0cf833; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < 8a225a6e07a57a1538d53637cb3d82bd3e477839; >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < ad297cd2db8953e2202970e9504cab247b6c7cb4; Linux 4.9.
Is there a fix for CVE-2021-47311?
Yes. Fixed in Linux 4d04a42b926e682140776e54188f4a44f1f01a81, Linux 11e9d163d631198bb3eb41a677a61b499516c0f7, Linux 2b70ca92847c619d6264c7372ef74fcbfd1e048c, Linux 8a225a6e07a57a1538d53637cb3d82bd3e477839. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2021-47311?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.