What’s Vulnerable › Vulnerabilities
CVE-2021-47039: ataflop: potential out of bounds in do_format()
- Severity: high (CVSS 7.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-02-28 · updated 2026-06-17
- Weakness: CWE-125
Description
In the Linux kernel, the following vulnerability has been resolved: ataflop: potential out of bounds in do_format() The function uses "type" as an array index: q = unit[drive].disk[type]->queue; Unfortunately the bounds check on "type" isn't done until later in the function. Fix this by moving the bounds check to the start.
Affected products
- Linux kernel: from 5.11 before 5.11.21; from 5.12 before 5.12.4 — fixed in 5.11.21, 5.12.4
How to fix
Upgrade to a fixed version: Linux kernel 5.11.21, 5.12.4. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/07f86aa8f4fe077be1b018cc177eb8c6573e5671
- https://git.kernel.org/stable/c/1ffec389a6431782a8a28805830b6fae9bf00af1
- https://git.kernel.org/stable/c/2a3a8bbca28b899806844c00d49ed1b7ccb50957
- https://git.kernel.org/stable/c/07f86aa8f4fe077be1b018cc177eb8c6573e5671
- https://git.kernel.org/stable/c/1ffec389a6431782a8a28805830b6fae9bf00af1
- https://git.kernel.org/stable/c/2a3a8bbca28b899806844c00d49ed1b7ccb50957
Get alerted when CVE-2021-47039 or the next vulnerability affects your stack