What the vulnerability is
CVE-2026-139347 addresses a logic error in the Linux kernel's ublk (userspace block driver) zone-reporting path. Three functions are named in the advisory:
ublk_report_zones()
disk_report_zone()
blk_revalidate_disk_zones()
The kernel is able to divide a single zone report into several requests when the number of zones to report exceeds the capacity of a temporary buffer. The contract for the callback index handed to disk_report_zone() is that it identifies the zone's position in the complete report, not its position inside the current request. The implementation instead uses a loop index scoped to the request being processed.
The result is deterministic once the chunking condition is reached: the first request reports zones from index zero upwards, and each subsequent request starts again at index zero. Userspace consumers of the zone callback can therefore observe the same zone identifiers more than once, and blk_revalidate_disk_zones() can associate zone information with the wrong entries of its zone-state array.
This is a metadata-consistency and state-management defect. The supplied advisory does not establish memory corruption, privilege escalation, code execution or definite data loss. Because zone state feeds later zone-aware I/O, the practical consequences for a specific deployment depend on how the affected device is used, and the context does not quantify them.
Affected systems
- Product: Linux kernel
- Component: ublk zone reporting (
ublk_report_zones(),disk_report_zone(),blk_revalidate_disk_zones())
- Affected code: implementations that use a per-request loop index rather than a continuous, report-wide index
- Trigger condition: a zone report large enough to be split across multiple requests
The advisory text provides no numeric affected version ranges, no fixed kernel release numbers, no distribution package versions and no architecture-specific exceptions. It is therefore not possible to state from this context which released kernel versions contain the flaw or which vendor packages carry the correction. Systems that never expose the affected ublk functionality, or deployments that never produce a multi-request zone report, do not meet the demonstrated trigger.
Root cause
The bug is a failure to carry the report-wide offset between chunks:
ublk_report_zones()splits an oversized zone report into multiple requests.
- For each request, the callback index for
disk_report_zone()is computed from a loop counter that begins at zero.
- The callback contract expects an index identifying the zone within the entire report.
- Chunks after the first reuse indices that were already emitted for earlier chunks.
- Userspace can receive duplicate zone identifiers, and
blk_revalidate_disk_zones()can bind zone data to incorrect positions in its zone-state array.
The upstream correction bases each request's index on the number of zones already reported, which keeps the index sequence continuous across all chunks.
Attack vector and prerequisites
The required condition is a zone report whose zone count exceeds the temporary buffer capacity and causes ublk_report_zones() to issue multiple requests. From that point the malformed index sequence follows predictably.
The supplied context does not specify the exact ioctl, syscall or userspace interface used to initiate the report, the privileges required to initiate it, whether an unprivileged local user can influence zone geometry or create the necessary ublk device, or whether any remote path exists.
Because the flaw lives in ublk and produces callbacks delivered to userspace, the demonstrated surface is local userspace interaction with the kernel's ublk subsystem. That said, the advisory does not support assigning a remote vector or claiming unprivileged local exploitation. The most defensible characterization is a local, conditionally triggered logic flaw whose required access depends on the relevant ublk interface and device configuration.
Real-world exploitability and known exploitation
The supplied intelligence rates the technical risk as low, with a technical score of 25/100. The stated reasons are:
- no CVSS score or vector is available;
- no exploitation evidence is recorded;
- the CVE is not listed in the CISA KEV catalog;
- no affected high-value asset characteristics are identified;
- version-specific patch availability is unknown.
No public exploit, proof of concept or active exploitation appears in the supplied material. The defect is straightforward to reason about and can be reached by constructing a sufficiently large zone report, but practical exploitability still depends on access to the affected ublk path and the ability to reach the chunked-report condition.
The absence of a CVSS vector means severity should not be inferred numerically beyond the supplied low-risk assessment. The directly observable effect is incorrect zone indices and potentially incorrect zone-state updates, not a demonstrated memory-safety or privilege-boundary violation.
Mitigation
1. Apply the kernel fix
The advisory identifies the fix as "ublk: use global index for reported zones". The corrected implementation uses the number of zones already reported as the base index for each subsequent request so that callback indices stay continuous across chunks.
Because the context provides no commit identifier or fixed release numbers, the update should be obtained from the relevant Linux kernel vendor or distribution and verified against the vendor changelog for this ublk change or an equivalent backport. A newer kernel package is not sufficient on its own unless it can be confirmed to contain this specific correction.
2. Reduce exposure before patching
If an immediate kernel update is not possible and ublk is not operationally required, avoiding or disabling the affected ublk functionality where practical reduces exposure. At a minimum, ublk-backed devices are not used in workflows that require reporting a zone count large enough to span multiple requests.
These are exposure-reduction measures rather than upstream-documented permanent workarounds; the advisory offers no configuration switch, buffer capacity value or supported procedure for constraining zone reports.
3. Validate the fix
At source or package level, confirm that each new request's callback index starts at the cumulative count of zones already reported rather than at zero. A practical acceptance condition is that every zone index in the complete report is unique, ordered and contiguous.
After patching, repeat any zone-reporting test that previously produced multiple chunks and verify that the second and later chunks no longer restart at index zero.
4. Detection and monitoring
- Audit deployed kernels and vendor package changelogs for the named ublk fix.
- Trace the reporting path and record the request number, total zones and callback index; flag an index repeated across separate requests, particularly a second request beginning at zero.
- Compare userspace-collected zone maps against the expected zone count and ordering; duplicate indices and missing later zones indicate pre-fix behaviour.
- Where zone-state inconsistencies are suspected, review consumers of the zone information for incorrect mappings and re-validate the zone report on a patched kernel.
The advisory contains no log signature, crash indicator or indicator of compromise, so detection should centre on package state and repeated or discontinuous callback indices rather than on a specific malicious traffic pattern.
Expert insight
Two aspects of this bug make it more interesting than a typical off-by-one. First, it is not a memory-safety issue at all: no pointer arithmetic is wrong, no buffer is overflowed. It is an interface-contract violation between kernel and userspace, where the kernel advertises a positional identifier that is only correct in the first chunk. Second, the consequence is deferred. Userspace receives plausible-looking but ambiguous zone data, and blk_revalidate_disk_zones() may persist that ambiguity into kernel zone state, which can then influence later zone-aware I/O. Correctness of the whole system depends on an invariant — global contiguity of the index sequence — that holds for small reports and silently breaks for large ones, which is precisely the class of defect that survives testing that only exercises modest device geometries.
The trigger also requires an unusual but realistic configuration: a ublk-backed device exposing enough zones to exceed the temporary buffer capacity. Storage tiers combining zoned namespaces, ublk passthrough devices and multi-queue backends are the environments where this path is reachable at all, which narrows the exposed population considerably relative to a generic kernel flaw.
For defenders, the practical difficulty is attribution. There is no crash, no corrupted data signature and no KEV entry; a device with duplicate zone indices may simply look like a misconfigured or inconsistent storage stack. Auditing package changelogs and re-running a deliberately large zone report are the most reliable confirmation routes, and the accepted signal is structural — unique, ordered, contiguous indices across the entire report — rather than any particular log line.
Recommendations
- Identify whether ublk-backed devices with large zone counts are in use in the environment, as those are the deployments that can reach the affected path.
- Obtain the "ublk: use global index for reported zones" fix through the kernel vendor or distribution and confirm in the changelog that the specific ublk correction is included, rather than assuming any newer package contains it.
- Where patching is deferred, avoid ublk-backed devices in workflows that require zone reports spanning multiple requests, and keep the affected functionality out of use where operationally acceptable.
- Validate the corrected behaviour by re-running a zone report that produces multiple chunks and checking that indices remain unique, ordered and contiguous, with no chunk restarting at zero.
- Add a monitoring check that records request number, reported zone count and callback index, alerting on repeated indices across separate requests.
- Review consumers of zone information for incorrect mappings in environments where zone-state inconsistencies have already been observed, and re-validate the zone map on a patched kernel.