7.1high
ataflop: potential out of bounds in do_format()
- Severity
- 7.1high CVSS:3.1 by NVD
- Exploit likelihood
- 0.24% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from bf9c0538e485b591a2ee02d9adb8a99db4be5a2a before 07f86aa8f4fe077be1b018cc177eb8c6573e5671, from bf9c0538e485b591a2ee02d9adb8a99db4be5a2a before 2a3a8bbca28b899806844c00d49ed1b7ccb50957, from bf9c0538e485b591a2ee02d9adb8a99db4be5a2a before 1ffec389a6431782a8a28805830b6fae9bf00af1, 5.11 Not affected: before 5.11, from 5.11.21 up to 5.11.*, from 5.12.4 up to 5.12.*, from 5.13 up to * | CVE List |
| linux linux_kernel | from 5.11 before 5.11.21, from 5.12 before 5.12.4 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux se ha resuelto la siguiente vulnerabilidad: ataflop: potencial fuera de los límites en do_format() La función utiliza "tipo" como índice de matriz: q = unidad[unidad].disco[tipo]->cola; Desafortunadamente, la verificación de los límites en "tipo" no se realiza hasta más adelante en la función. Solucione este problema moviendo la verificación de los límites al inicio.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47039 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2021-47039 changed 2026-06-17 | Public domain |