HIGH Introduced in 6.11
nvme-multipath ZoneSize DivideByZero
CVE-2026-98727
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: nvme-multipath: set BLK_FEAT_ZONED only after the zone info is known The namespace head is marked zoned at allocation time based only on the command set identifier. If the zone info query reports a zero zone size, the path namespace is registered without zoned limits while the head still advertises the zoned capability with a zone size of zero, and reporting zones or writing to the head then shifts by ilog2(0). Drop the zoned feature from the head allocation and let the head limits refresh stack it in from the path namespace instead.
02KernelScan AI Analysis
Risk summary
A local user with access to an NVMe ZNS multipath device can trigger a divide-by-zero error in the kernel by causing the zone info query to return a zero zone size. This results in a kernel panic (denial of service) and potentially allows memory corruption leading to privilege escalation. The vulnerability affects systems with NVMe Zoned Namespace devices configured for multipath.
Vulnerability analysis
The NVMe multipath code marks the namespace head as zoned at allocation time based only on the command set identifier, before the actual zone geometry is known. If the subsequent zone info query returns a zero zone size — which can occur due to device errors, firmware bugs, or a malicious device — the path namespace registers without zoned limits while the head still advertises zoned capability with a zone size of zero. When userspace then requests zone reports or issues writes to the multipath device, the kernel attempts to shift by ilog2(0), causing a divide-by-zero fault or undefined shift behavior that can crash the kernel or corrupt memory. The fix defers setting the zoned feature flag until the head limits are refreshed from a path namespace that has valid zone information, ensuring the head never advertises zoned capability with a zero zone size. An attacker needs local access to the multipath block device (e.g., via /dev/nvmeXnY or a dm-multipath device) to trigger the bug, which typically requires membership in the disk group or container device access.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.12 | 6.11 | 6.12.113 | 44dc998c38fb |
| 6.18 | 6.11 | 6.18.56 | 2d86abd28071 |
| 7.2 | 6.11 | 7.2.10 | 8b85838c1fdb |
| mainline | 6.11 | 7.3 | 4a5e49ba0abb |
| cip/6.12 | 6.11 | 6.12.114-cip34 | 44dc998c38fb |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.114-cip34 |