CVE-2026-139347: ublk: use global index for reported zones
In the Linux kernel, the following vulnerability has been resolved:
ublk: use global index for reported zones
ublkreportzones() may split a zone report into multiple requests when the number of zones exceeds the temporary buffer capacity. The index passed to diskreportzone() must refer to the zone position in the whole report, rather than the position within the current request.
Currently, the per-request loop index is used as the callback index, causing each chunk after the first one to restart from zero. This can make userspace callbacks receive duplicate zone indices and may result in blkrevalidatediskzones() updating incorrect entries in its zone state array.
Use the number of zones already reported as the base index for each request so that zone indices remain continuous across all chunks.
Affected Software
Event History
Frequently Asked Questions
Which deployments are affected in practice?
The issue applies to ublk zone reporting when a report contains more zones than fit in the temporary buffer and is therefore split into multiple requests. Reports that fit within a single request do not encounter the chunk-index restart behavior.
How can I tell whether the issue is occurring?
Userspace callbacks may receive duplicate zone indices after the first report chunk, because indexing restarts at zero for each subsequent request. Zone revalidation may also update incorrect entries in the zone state array.