VDB

CVE-2024-27059

CVE-2024-27059 PUBLISHED

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

Reported by linux · Published May 1, 2024

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).

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-tools-develAmazon Linux4.14.345-262.561.amzn2
kernel-toolsAmazon Linux4.14.345-262.561.amzn2
kernelAmazon Linux4.14.345-262.561.amzn2
perfAmazon Linux4.14.345-262.561.amzn2
kernel-develAmazon Linux4.14.345-262.561.amzn2
kernel-headersAmazon Linux4.14.345-262.561.amzn2
kernel-livepatch-4.14.345-262.561Amazon Linux1.0-0.amzn2
SIMATIC S7-1500 TM MFP - GNU/Linux subsystemSiemens1.1.1

Affected products

VendorProductVersions
LinuxLinux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
LinuxLinux2.6.12, 0, 4.19.312
amazon:2kernel-tools-devel0
amazon:2kernel-tools0
amazon:2kernel0
amazon:2perf0
amazon:2kernel-devel0
amazon:2kernel-headers0
amazon:2kernel-livepatch-4.14.345-262.5610
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0
linuxlinux_kernel2.6.12, 2.6.12, 2.6.12
LinuxLinux6.8, 6.7.12, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
amazon:2python-perf0

Timeline

  • May 1, 2024 CVE Published
  • May 2, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (13 in total, the first dated here)
  • Dec 5, 2024 PoC Published
  • Jan 15, 2026 Security Advisory (317 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (279 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-27059
vulnetix vdb fixes CVE-2024-27059

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-27059/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›