{"id":"CVE-2024-27059","summary":"USB: usb-storage: Prevent divide-by-0 error in isd200_ata_command","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nUSB: usb-storage: Prevent divide-by-0 error in isd200_ata_command\n\nThe isd200 sub-driver in usb-storage uses the HEADS and SECTORS values\nin the ATA ID information to calculate cylinder and head values when\ncreating a CDB for READ or WRITE commands.  The calculation involves\ndivision and modulus operations, which will cause a crash if either of\nthese values is 0.  While this never happens with a genuine device, it\ncould happen with a flawed or subversive emulation, as reported by the\nsyzbot fuzzer.\n\nProtect against this possibility by refusing to bind to the device if\neither the ATA_ID_HEADS or ATA_ID_SECTORS value in the device's ID\ninformation is 0.  This requires isd200_Initialization() to return a\nnegative error code when initialization fails; currently it always\nreturns 0 (even when there is an error).","modified":"2026-03-20T12:35:22.664808Z","published":"2024-05-01T13:00:10.571Z","related":["ALSA-2024:3618","ALSA-2024:3627","SUSE-SU-2024:1644-1","SUSE-SU-2024:1979-1","SUSE-SU-2024:1983-1","SUSE-SU-2024:2008-1","SUSE-SU-2024:2184-1","SUSE-SU-2024:2190-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27059.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/014bcf41d946b36a8f0b8e9b5d9529efbb822f49"},{"type":"WEB","url":"https://git.kernel.org/stable/c/284fb1003d5da111019b9e0bf99b084fd71ac133"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3a67d4ab9e730361d183086dfb0ddd8c61f01636"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6c1f36d92c0a8799569055012665d2bb066fb964"},{"type":"WEB","url":"https://git.kernel.org/stable/c/871fd7b10b56d280990b7e754f43d888382ca325"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9968c701cba7eda42e5f0052b040349d6222ae34"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eb7b01ca778170654e1c76950024270ba74b121f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f42ba916689f5c7b1642092266d2f53cf527aaaa"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27059.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27059"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"},{"fixed":"9968c701cba7eda42e5f0052b040349d6222ae34"},{"fixed":"eb7b01ca778170654e1c76950024270ba74b121f"},{"fixed":"284fb1003d5da111019b9e0bf99b084fd71ac133"},{"fixed":"6c1f36d92c0a8799569055012665d2bb066fb964"},{"fixed":"f42ba916689f5c7b1642092266d2f53cf527aaaa"},{"fixed":"871fd7b10b56d280990b7e754f43d888382ca325"},{"fixed":"3a67d4ab9e730361d183086dfb0ddd8c61f01636"},{"fixed":"014bcf41d946b36a8f0b8e9b5d9529efbb822f49"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-27059.json"}}],"schema_version":"1.7.5"}