scsi: sd_zbc: Reject disks with too many zones
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.12.112, 6.18.55, 7.2.9
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: scsi: sd_zbc: Reject disks with too many zones sd_zbc_read_zones() computes the number of zones with 64-bit arithmetic and stores the result in the unsigned int nr_zones field of struct zoned_disk_info, silently truncating counts that exceed 32 bits. The truncated count is later used to size per-zone resources, while the device may still report more zones than fit. Moreover, sd_zbc_report_zones() counts the reported zones with a signed int zone_idx, which overflows past INT_MAX. Reject devices reporting more than INT_MAX zones at scan time; such a device is not realistic for any medium that exists today, and accepting it produces inconsistent zone bookkeeping.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 89d9475610771b5e5fe1879075f0fc9ba6e3755f · fixed in d8791ae55d85dfaeafa20ea48365482a0cc5a107; From 89d9475610771b5e5fe1879075f0fc9ba6e3755f · fixed in 0af16d8be3ec7ff28bb56a0da79c9aed66ac2c3b; From 89d9475610771b5e5fe1879075f0fc9ba6e3755f · fixed in 3ddf8383b54456f19fd73d3cebed81bd250c7388; From 89d9475610771b5e5fe1879075f0fc9ba6e3755f · fixed in b6ec0f79745967c751c85df373062c8d15e45fc4
- Linux Linux
4.10
- KernelLinux
From 4.10.0 · fixed in 6.12.112; From 6.13.0 · fixed in 6.18.55; From 6.19.0 · fixed in 7.2.9