CVE-2026-98634: scsi: sd_zbc: Reject disks with too many zones
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-98634 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.10 with commit 89d9475610771b5e5fe1879075f0fc9ba6e3755f and fixed in 6.12.112 with commit d8791ae55d85dfaeafa20ea48365482a0cc5a107 Issue introduced in 4.10 with commit 89d9475610771b5e5fe1879075f0fc9ba6e3755f and fixed in 6.18.55 with commit 0af16d8be3ec7ff28bb56a0da79c9aed66ac2c3b Issue introduced in 4.10 with commit 89d9475610771b5e5fe1879075f0fc9ba6e3755f and fixed in 7.2.9 with commit 3ddf8383b54456f19fd73d3cebed81bd250c7388 Issue introduced in 4.10 with commit 89d9475610771b5e5fe1879075f0fc9ba6e3755f and fixed in 7.3-rc5 with commit b6ec0f79745967c751c85df373062c8d15e45fc4
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98634
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/scsi/sd_zbc.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/d8791ae55d85dfaeafa20ea48365482a0cc5a107 https://git.kernel.org/stable/c/0af16d8be3ec7ff28bb56a0da79c9aed66ac2c3b https://git.kernel.org/stable/c/3ddf8383b54456f19fd73d3cebed81bd250c7388 https://git.kernel.org/stable/c/b6ec0f79745967c751c85df373062c8d15e45fc4