CVE-2021-47039

published 28 Feb 2024 · updated 11 May 2026

ataflop: potential out of bounds in do_format()

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 07f86aa8f4fe077be1b018cc177eb8c6573e5671, Kernel 1ffec389a6431782a8a28805830b6fae9bf00af1 and Kernel 2a3a8bbca28b899806844c00d49ed1b7ccb50957.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.11, >=bf9c0538e485b591a2ee02d9adb8a99db4be5a2a <07f86aa8f4fe077be1b018cc177eb8c6573e5671, >=bf9c0538e485b591a2ee02d9adb8a99db4be5a2a <1ffec389a6431782a8a28805830b6fae9bf00af1, >=bf9c0538e485b591a2ee02d9adb8a99db4be5a2a <2a3a8bbca28b899806844c00d49ed1b7ccb5095707f86aa8f4fe077be1b018cc177eb8c6573e5671, 1ffec389a6431782a8a28805830b6fae9bf00af1, 2a3a8bbca28b899806844c00d49ed1b7ccb50957

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-47039 severity on Zeptric[![CVE-2021-47039](https://zeptric.io/badge/cve/CVE-2021-47039.svg)](https://zeptric.io/cve/CVE-2021-47039)