← Database

CVE-2021-47039

HIGH CVSS: 7.1 Published: 2024-02-28 Modified: 2026-06-17

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 Platforms

Linux Linux Kernel

Weakness Type

CWE-125

References