CVE-2024-27059

USB: usb-storage: Prevent divide-by-0 error in isd200_ata_command

No CVSS score yet EPSS 0.24%

Published 1 May 2024 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2024-27059

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-2024-27059 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:

USB: usb-storage: Prevent divide-by-0 error in isd200_ata_command

The isd200 sub-driver in usb-storage uses the HEADS and SECTORS values in the ATA ID information to calculate cylinder and head values when creating a CDB for READ or WRITE commands. The calculation involves division and modulus operations, which will cause a crash if either of these values is 0. While this never happens with a genuine device, it could happen with a flawed or subversive emulation, as reported by the syzbot fuzzer.

Protect against this possibility by refusing to bind to the device if either the ATA_ID_HEADS or ATA_ID_SECTORS value in the device's ID information is 0. This requires isd200_Initialization() to return a negative error code when initialization fails; currently it always returns 0 (even when there is an error).

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.4% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 9 May 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 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 9968c701cba7eda42e5f0052b040349d6222ae34
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before eb7b01ca778170654e1c76950024270ba74b121f
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 284fb1003d5da111019b9e0bf99b084fd71ac133
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 6c1f36d92c0a8799569055012665d2bb066fb964
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before f42ba916689f5c7b1642092266d2f53cf527aaaa
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 871fd7b10b56d280990b7e754f43d888382ca325
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 3a67d4ab9e730361d183086dfb0ddd8c61f01636
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 014bcf41d946b36a8f0b8e9b5d9529efbb822f49
Other versions: unaffected
Linux
affected 2.6.12
unaffected before 2.6.12
unaffected from 4.19.312 up to and including 4.19.*
unaffected from 5.4.274 up to and including 5.4.*
unaffected from 5.10.215 up to and including 5.10.*
unaffected from 5.15.154 up to and including 5.15.*
unaffected from 6.1.84 up to and including 6.1.*
unaffected from 6.6.24 up to and including 6.6.*
unaffected from 6.7.12 up to and including 6.7.*
unaffected 6.8 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-2024-27059 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-27059

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-2024-27059
trivy image --scanners vuln IMAGE | grep CVE-2024-27059

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-2024-27059 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.