CVE-2021-47586
Last modified
CVE-2021-47586 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: net: stmmac: dwmac-rk: fix oob read in rk_gmac_setup KASAN reports an out-of-bounds read in rk_gmac_setup on the line: while (ops->regs[i]) { This happens for most platforms since the regs flexible array member is empty, so the memory after the ops structure is being read here. It seems that mostly this happens to contain zero anyway, so we get lucky and everything still works. To avoid adding redundant data to nearly all the ops structures, add a new flag to indicate whether the regs field is valid and avoid this loop when it is not.. EPSS estimates a 0.21% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: net: stmmac: dwmac-rk: fix oob read in rk_gmac_setup KASAN reports an out-of-bounds read in rk_gmac_setup on the line: while (ops->regs[i]) { This happens for most platforms since the regs flexible array member is empty, so the memory after the ops structure is being read here. It seems that mostly this happens to contain zero anyway, so we get lucky and everything still works. To avoid adding redundant data to nearly all the ops structures, add a new flag to indicate whether the regs field is valid and avoid this loop when it is not.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 5.14, < 5.15.11 | — |
| Linux | Linux Kernel | 5.16 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2021-47586?
How severe is CVE-2021-47586?
How do I fix CVE-2021-47586?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-47580In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2021-47581Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2021-47582In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47583In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47584In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47585In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47587In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47588In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47589In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-47590In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47591In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47592In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2021-47586?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
