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-98727 Overview
CVE-2026-98727 is a Linux kernel vulnerability in the NVMe multipath subsystem. The flaw affects how the kernel handles Zoned Namespace (ZNS) devices during namespace head allocation. The namespace head is marked zoned based solely on the command set identifier, before the zone information is queried.
When a zone info query returns a zero zone size, the path namespace registers without zoned limits. However, the head continues to advertise the zoned capability with a zone size of zero. Subsequent zone reports or writes to the head trigger a shift operation using ilog2(0), producing undefined behavior and a potential kernel crash.
Critical Impact
Local workloads interacting with a misconfigured NVMe multipath zoned namespace can trigger kernel instability through an invalid shift operation on a zero zone size.
Affected Products
- Linux kernel NVMe multipath driver (drivers/nvme/host/multipath.c)
- Kernel branches tracked by stable commits 2d86abd, 44dc998, 4a5e49b, and 8b85838
- Systems using NVMe Zoned Namespace devices with multipath enabled
Discovery Timeline
- 2026-10-18 - CVE-2026-98727 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98727
Vulnerability Analysis
The NVMe multipath code allocates the namespace head and immediately sets the BLK_FEAT_ZONED block feature flag based only on the Command Set Identifier (CSI). The actual zone geometry, including zone size, is not yet known at allocation time. This ordering creates a window where the head advertises zoned capability without validated zone parameters.
If the subsequent zone descriptor query reports a zero zone size, the per-path namespace is registered without zoned limits. The head object, however, retains its zoned flag with a zone size of zero. Any code path that reports zones or issues writes to the head computes offsets using ilog2(zone_size). Calling ilog2(0) is undefined and produces an invalid shift that can crash the kernel or corrupt I/O accounting.
The fix removes the zoned feature from the initial head allocation. Instead, the head limits are refreshed and stacked from the first attached path namespace once valid zone information is available. This ensures BLK_FEAT_ZONED is only set when the kernel knows the real zone size.
Root Cause
The root cause is improper initialization order. The driver sets a capability flag before the data required to use that capability safely has been retrieved. When the backing device returns anomalous zone geometry, the head retains an inconsistent state that downstream code treats as valid.
Attack Vector
Triggering the condition requires an NVMe target that advertises the Zoned Namespace command set while reporting a zero zone size, combined with multipath enabled on the host. The resulting shift by ilog2(0) occurs in kernel context when zone reporting or write paths execute against the head device.
No verified public exploit code is available. The vulnerability is described in prose by the upstream patch commits. See the kernel commit 2d86abd and kernel commit 8b85838 for the exact source changes.
Detection Methods for CVE-2026-98727
Indicators of Compromise
- Kernel oops or panic messages referencing nvme_ns_head, nvme_report_zones, or shift-related UBSAN warnings
- Unexpected I/O stalls or path failures on NVMe multipath devices advertising ZNS
- dmesg entries noting a zero zone size reported during namespace discovery
Detection Strategies
- Audit running kernels against the fixed commit hashes 2d86abd, 44dc998, 4a5e49b, and 8b85838 to identify unpatched systems
- Enable UBSAN (Undefined Behavior Sanitizer) on test kernels to surface the invalid shift at runtime
- Inventory NVMe devices and flag any that expose zoned command set identifiers while connected through multipath
Monitoring Recommendations
- Collect kernel ring buffer logs centrally and alert on NVMe subsystem oops or UBSAN reports
- Monitor NVMe controller firmware updates for ZNS geometry reporting changes
- Track /sys/block/nvme*/queue/zoned and chunk_sectors values across hosts to detect inconsistent zoned state
How to Mitigate CVE-2026-98727
Immediate Actions Required
- Apply the upstream kernel fix contained in commits 2d86abd28071, 44dc998c38fb, 4a5e49ba0abb, and 8b85838c1fdb
- Update to a stable Linux kernel release that incorporates the backport for your distribution branch
- Validate NVMe target firmware does not advertise ZNS with a zero zone size
Patch Information
The fix removes BLK_FEAT_ZONED from the initial namespace head allocation in the NVMe multipath driver. The head limits are refreshed and stacked from the path namespace once valid zone information is known. Reference the kernel commit 44dc998 and kernel commit 4a5e49b for the backported changes across stable branches.
Workarounds
- Disable NVMe multipath (nvme_core.multipath=0) on hosts that do not require it, until patches can be deployed
- Avoid attaching NVMe Zoned Namespace devices through multipath on unpatched kernels
- Replace or reconfigure NVMe targets that report a zero zone size for ZNS namespaces
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

