{"id":"CVE-2024-27059","state":"PUBLISHED","title":"USB: usb-storage: Prevent divide-by-0 error in isd200_ata_command","description":"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).","publishedAt":"2024-05-01T13:00:10.571Z","updatedAt":"2026-10-15T00:40:03.723Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"9968c701cba7eda42e5f0052b040349d6222ae34","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"eb7b01ca778170654e1c76950024270ba74b121f","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"284fb1003d5da111019b9e0bf99b084fd71ac133","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"6c1f36d92c0a8799569055012665d2bb066fb964","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"f42ba916689f5c7b1642092266d2f53cf527aaaa","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"871fd7b10b56d280990b7e754f43d888382ca325","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"3a67d4ab9e730361d183086dfb0ddd8c61f01636","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"014bcf41d946b36a8f0b8e9b5d9529efbb822f49","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/storage/isd200.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"4.19.312","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.274","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.215","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.154","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.84","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.24","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.12","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/storage/isd200.c"]}],"references":["https://git.kernel.org/stable/c/9968c701cba7eda42e5f0052b040349d6222ae34","https://git.kernel.org/stable/c/eb7b01ca778170654e1c76950024270ba74b121f","https://git.kernel.org/stable/c/284fb1003d5da111019b9e0bf99b084fd71ac133","https://git.kernel.org/stable/c/6c1f36d92c0a8799569055012665d2bb066fb964","https://git.kernel.org/stable/c/f42ba916689f5c7b1642092266d2f53cf527aaaa","https://git.kernel.org/stable/c/871fd7b10b56d280990b7e754f43d888382ca325","https://git.kernel.org/stable/c/3a67d4ab9e730361d183086dfb0ddd8c61f01636","https://git.kernel.org/stable/c/014bcf41d946b36a8f0b8e9b5d9529efbb822f49","https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","https://cert-portal.siemens.com/productcert/html/ssa-265688.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:10.607Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/27xxx/CVE-2024-27059.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-27059","state":"PUBLISHED","datePublished":"2024-05-01T13:00:10.571Z","dateUpdated":"2026-10-15T00:40:03.723Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-19T14:20:24.214Z"},"containers":{"cna":{"title":"USB: usb-storage: Prevent divide-by-0 error in isd200_ata_command","descriptions":[{"lang":"en","value":"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)."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"9968c701cba7eda42e5f0052b040349d6222ae34","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"eb7b01ca778170654e1c76950024270ba74b121f","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"284fb1003d5da111019b9e0bf99b084fd71ac133","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"6c1f36d92c0a8799569055012665d2bb066fb964","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"f42ba916689f5c7b1642092266d2f53cf527aaaa","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"871fd7b10b56d280990b7e754f43d888382ca325","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"3a67d4ab9e730361d183086dfb0ddd8c61f01636","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"014bcf41d946b36a8f0b8e9b5d9529efbb822f49","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/storage/isd200.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"4.19.312","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.274","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.215","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.154","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.84","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.24","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.12","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/storage/isd200.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/9968c701cba7eda42e5f0052b040349d6222ae34"},{"url":"https://git.kernel.org/stable/c/eb7b01ca778170654e1c76950024270ba74b121f"},{"url":"https://git.kernel.org/stable/c/284fb1003d5da111019b9e0bf99b084fd71ac133"},{"url":"https://git.kernel.org/stable/c/6c1f36d92c0a8799569055012665d2bb066fb964"},{"url":"https://git.kernel.org/stable/c/f42ba916689f5c7b1642092266d2f53cf527aaaa"},{"url":"https://git.kernel.org/stable/c/871fd7b10b56d280990b7e754f43d888382ca325"},{"url":"https://git.kernel.org/stable/c/3a67d4ab9e730361d183086dfb0ddd8c61f01636"},{"url":"https://git.kernel.org/stable/c/014bcf41d946b36a8f0b8e9b5d9529efbb822f49"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:09:35.527Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"4.19.312"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.4.274"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.10.215"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.15.154"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.1.84"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.6.24"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.7.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.8"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-27059","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-05-09T18:38:40.955330Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:46:17.539Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/9968c701cba7eda42e5f0052b040349d6222ae34","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/eb7b01ca778170654e1c76950024270ba74b121f","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/284fb1003d5da111019b9e0bf99b084fd71ac133","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/6c1f36d92c0a8799569055012665d2bb066fb964","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/f42ba916689f5c7b1642092266d2f53cf527aaaa","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/871fd7b10b56d280990b7e754f43d888382ca325","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/3a67d4ab9e730361d183086dfb0ddd8c61f01636","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/014bcf41d946b36a8f0b8e9b5d9529efbb822f49","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T00:21:05.855Z"}},{"affected":[{"vendor":"Siemens","product":"SIMATIC S7-1500 TM MFP - GNU/Linux subsystem","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V1.1.1","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-15T00:40:03.723Z"},"x_adpType":"supplier"}]}}}