CVE-2021-47039

ataflop: potential out of bounds in do_format()

No CVSS score yet EPSS 0.24%

Published 28 Feb 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2021-47039

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-47039 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.7% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 28 Feb 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from bf9c0538e485b591a2ee02d9adb8a99db4be5a2a, before 07f86aa8f4fe077be1b018cc177eb8c6573e5671
affected from bf9c0538e485b591a2ee02d9adb8a99db4be5a2a, before 2a3a8bbca28b899806844c00d49ed1b7ccb50957
affected from bf9c0538e485b591a2ee02d9adb8a99db4be5a2a, before 1ffec389a6431782a8a28805830b6fae9bf00af1
Other versions: unaffected
Linux
affected 5.11
unaffected before 5.11
unaffected from 5.11.21 up to and including 5.11.*
unaffected from 5.12.4 up to and including 5.12.*
unaffected 5.13 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-47039 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47039

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2021-47039
trivy image --scanners vuln IMAGE | grep CVE-2021-47039

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2021-47039 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.