{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-27059","id":"CVE-2024-27059","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 cra","descriptionLong":"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).","published":"2024-05-01T13:00:10.571Z","updated":"2026-10-28T02:31:14.424296842Z","reserved":"2024-02-19T14:20:24.214Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"9968c701cba7eda42e5f0052b040349d6222ae34","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"eb7b01ca778170654e1c76950024270ba74b121f","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"284fb1003d5da111019b9e0bf99b084fd71ac133","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"6c1f36d92c0a8799569055012665d2bb066fb964","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"f42ba916689f5c7b1642092266d2f53cf527aaaa","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"871fd7b10b56d280990b7e754f43d888382ca325","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"3a67d4ab9e730361d183086dfb0ddd8c61f01636","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"014bcf41d946b36a8f0b8e9b5d9529efbb822f49","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","lessThan":"2.6.12","status":"unaffected","versionType":"semver"},{"version":"4.19.312","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.274","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.215","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.154","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.84","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.24","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.7.12","lessThanOrEqual":"6.7.*","status":"unaffected","versionType":"semver"},{"version":"6.8","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-369"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/9968c701cba7eda42e5f0052b040349d6222ae34","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/eb7b01ca778170654e1c76950024270ba74b121f","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/284fb1003d5da111019b9e0bf99b084fd71ac133","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/6c1f36d92c0a8799569055012665d2bb066fb964","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/f42ba916689f5c7b1642092266d2f53cf527aaaa","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/871fd7b10b56d280990b7e754f43d888382ca325","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/3a67d4ab9e730361d183086dfb0ddd8c61f01636","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/014bcf41d946b36a8f0b8e9b5d9529efbb822f49","tags":["x_transferred","Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["x_transferred","Mailing List","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","tags":["x_transferred","Mailing List","web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27059.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27059","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00242,"epssPercentile":0.15579,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-27059","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27059","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-27059","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-27059","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}