Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98634 Overview
CVE-2026-98634 is a Linux kernel vulnerability in the SCSI zoned block device (ZBC) subsystem. The flaw resides in sd_zbc_read_zones(), which computes zone counts using 64-bit arithmetic but stores the result in the 32-bit unsigned nr_zones field of struct zoned_disk_info. Counts exceeding 32 bits are silently truncated. A related issue affects sd_zbc_report_zones(), where a signed int zone_idx counter can overflow past INT_MAX. The truncated count later sizes per-zone resources while the device may still report more zones, producing inconsistent zone bookkeeping and potential memory safety issues.
Critical Impact
Numeric truncation in SCSI zoned block device handling can corrupt per-zone resource allocations and cause inconsistent kernel state when scanning devices that report excessive zone counts.
Affected Products
- Linux kernel SCSI subsystem (drivers/scsi/sd_zbc.c)
- Systems using zoned block devices (ZBC/ZAC SMR disks, ZNS)
- Kernel versions prior to the stable commits listed in the patch references
Discovery Timeline
- 2026-10-18 - CVE-2026-98634 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98634
Vulnerability Analysis
The vulnerability is a numeric truncation error [CWE-197] in the Linux kernel SCSI zoned block device driver. sd_zbc_read_zones() calculates the number of zones on a device using 64-bit arithmetic. The computed value is then assigned to nr_zones, an unsigned int field within struct zoned_disk_info.
When a device reports a zone count larger than UINT_MAX, the assignment silently drops the upper 32 bits. The kernel subsequently uses the truncated count to allocate and size per-zone bookkeeping structures. Because the hardware continues to report the larger, untruncated zone count during I/O operations, the in-kernel view of the device diverges from the actual device layout.
A secondary issue exists in sd_zbc_report_zones(), where the loop counter zone_idx is declared as a signed int. When the number of reported zones exceeds INT_MAX, the counter overflows into negative values, producing undefined behavior and inconsistent accounting during zone reporting operations.
Root Cause
The root cause is an improper type width used to hold a value derived from 64-bit arithmetic. The mismatch between the 64-bit source computation and the 32-bit destination field permits silent truncation without validation. The signed int loop counter in the report path compounds the issue by introducing signed integer overflow behavior.
Attack Vector
Exploitation requires attaching a SCSI zoned block device that reports more than INT_MAX zones at scan time. Such devices do not exist in commodity hardware today, limiting practical exploitation to crafted or emulated storage targets. The fix rejects such devices during scan rather than attempting to handle oversized zone counts. See the kernel stable commit b6ec0f79 for the implemented check.
No verified public exploit code is available. The vulnerability manifests at device enumeration time when the SCSI mid-layer calls into the zoned block device helpers.
Detection Methods for CVE-2026-98634
Indicators of Compromise
- Kernel log entries referencing sd_zbc zone enumeration failures or warnings during device scan
- Unexpected zoned device rejection messages after applying the patch, indicating a device reporting more than INT_MAX zones
- Inconsistent zone state reports from blkzone report on affected systems prior to patching
Detection Strategies
- Inventory running kernel versions across Linux hosts and compare against the fixed stable branches listed in the kernel.org references
- Audit storage subsystem logs (dmesg, /var/log/kern.log) for sd_zbc initialization anomalies on hosts attached to SMR, ZBC, or ZNS devices
- Correlate storage controller firmware upgrades or virtualized storage changes with kernel panics or zone bookkeeping errors
Monitoring Recommendations
- Alert on kernel oops or BUG messages originating from drivers/scsi/sd_zbc.c
- Monitor for new zoned block device attachments in environments where emulated or test storage can be introduced
- Track package versions of the kernel across the fleet using configuration management telemetry
How to Mitigate CVE-2026-98634
Immediate Actions Required
- Apply the upstream Linux kernel patches from the stable tree commits referenced below
- Prioritize patching on hosts that mount zoned block devices or run workloads against SMR, ZBC, ZAC, or ZNS media
- Restrict the ability of untrusted users to attach arbitrary block devices, including via virtualization or hot-plug paths
Patch Information
Fixes have been merged across multiple stable branches. Reference commits:
- Kernel Stable Commit 0af16d8
- Kernel Stable Commit 3ddf838
- Kernel Stable Commit b6ec0f79
- Kernel Stable Commit d8791ae5
The patches reject devices reporting more than INT_MAX zones at scan time, preventing the truncation and overflow conditions.
Workarounds
- Avoid attaching zoned block devices with unrealistic zone counts, including crafted emulated targets
- Disable the sd_mod zoned block device code path on systems that do not require ZBC/ZAC/ZNS support, where distribution kernels permit
- Apply vendor-supplied kernel updates as soon as they are available for your distribution
# Verify running kernel version and planned fix version
uname -r
# After updating, confirm the patched sd_zbc behavior by checking dmesg
# for rejection messages when scanning oversized zoned devices
dmesg | grep -i sd_zbc
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

