CVE-2024-27059

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

MEDIUM
5.5
CVSS Score
Published: May 1, 2024 at 01:00 PM UTC
Updated: October 15, 2026 at 01:17 AM UTC
3 products affected across 3 vendorsLinux KernelDebian LinuxSIMATIC S7-1500 TM MFP

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.12 ≤ v < 4.19.3124.20 ≤ v < 5.4.2745.11 ≤ v < 5.15.1545.16 ≤ v < 6.1.845.5 ≤ v < 5.10.2156.2 ≤ v < 6.6.646.7 ≤ v < 6.7.121da177e4c3f41524e886b7f1b8a0c1fc7321cac26.86.8 rc16.8 rc26.8 rc36.8 rc46.8 rc56.8 rc6
Vendor states this is fixed in 014bcf41d946b36a8f0b8e9b5d9529efbb822f49 (fixed)
Vendor states this is fixed in 284fb1003d5da111019b9e0bf99b084fd71ac133 (fixed)
Vendor states this is fixed in 3a67d4ab9e730361d183086dfb0ddd8c61f01636 (fixed)
Vendor states this is fixed in 6c1f36d92c0a8799569055012665d2bb066fb964 (fixed)
Vendor states this is fixed in 871fd7b10b56d280990b7e754f43d888382ca325 (fixed)
Vendor states this is fixed in 9968c701cba7eda42e5f0052b040349d6222ae34 (fixed)
Vendor states this is fixed in eb7b01ca778170654e1c76950024270ba74b121f (fixed)
Vendor states this is fixed in f42ba916689f5c7b1642092266d2f53cf527aaaa (fixed)
Vendor states this is fixed in 2.6.12 (unaffected)
Vendor states this is fixed in 4.19.312 (unaffected)
Vendor states this is fixed in 5.10.215 (unaffected)
Vendor states this is fixed in 5.15.154 (unaffected)
Vendor states this is fixed in 5.4.274 (unaffected)
Vendor states this is fixed in 6.1.84 (unaffected)
Vendor states this is fixed in 6.6.24 (unaffected)
Affected range stops below 6.6.64, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.7.12 (unaffected)
Vendor states this is fixed in 6.8 (unaffected)

References (11)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/014bcf41d946b36a8f0b8e9b5d9529efbb822f49
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/284fb1003d5da111019b9e0bf99b084fd71ac133
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3a67d4ab9e730361d183086dfb0ddd8c61f01636
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6c1f36d92c0a8799569055012665d2bb066fb964
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/871fd7b10b56d280990b7e754f43d888382ca325
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9968c701cba7eda42e5f0052b040349d6222ae34
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/eb7b01ca778170654e1c76950024270ba74b121f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f42ba916689f5c7b1642092266d2f53cf527aaaa

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-369

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card