Out-of-bounds Read in Linux

CVE-2021-47586

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.

Vulnerability class: Buffer Overflow

Published · last modified .

CVSS v3 metric

CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.

EPSS exploit prediction

EPSS: 0.002 (9.8th percentile), scored .

Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 10th percentile — 9.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2021-47586: held from 0.002 to 0.002.

EPSS over last 30 days · oldest: 0.002 · newest: 0.002 · change: 0.000

Affected products

  • Linux — versions 3bb3d6b1c1957e88bfc5e77a4557f7e6ba761fe3, 5.14, 0
  • Linux Kernel — versions 5.16

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2021-47586?
CVE-2021-47586 is a medium-severity vulnerability in Linux, classified under Out-of-bounds Read. CVSS score: 5.5/10. Published 2024-06-19.
How severe is CVE-2021-47586?
Medium severity. CVSS v3 base score is 5.5 out of 10.