CVE-2024-27059
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-tools-devel | Amazon Linux | 4.14.345-262.561.amzn2 |
| kernel-tools | Amazon Linux | 4.14.345-262.561.amzn2 |
| kernel | Amazon Linux | 4.14.345-262.561.amzn2 |
| perf | Amazon Linux | 4.14.345-262.561.amzn2 |
| kernel-devel | Amazon Linux | 4.14.345-262.561.amzn2 |
| kernel-headers | Amazon Linux | 4.14.345-262.561.amzn2 |
| kernel-livepatch-4.14.345-262.561 | Amazon Linux | 1.0-0.amzn2 |
| SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | Siemens | 1.1.1 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 |
| Linux | Linux | 2.6.12, 0, 4.19.312 |
| amazon:2 | kernel-tools-devel | 0 |
| amazon:2 | kernel-tools | 0 |
| amazon:2 | kernel | 0 |
| amazon:2 | perf | 0 |
| amazon:2 | kernel-devel | 0 |
| amazon:2 | kernel-headers | 0 |
| amazon:2 | kernel-livepatch-4.14.345-262.561 | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| linux | linux_kernel | 2.6.12, 2.6.12, 2.6.12 |
| Linux | Linux | 6.8, 6.7.12, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 |
| amazon:2 | python-perf | 0 |
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