CVE-2026-100098

nvmet: zns: don't leak stale memory in zone management receive

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

nvmet: zns: don't leak stale memory in zone management receive

A Zone Management Receive report returns the full buffer the host asked
for, but nvmet_bdev_zone_zmgmt_recv_work() writes only the 8-byte
Number of Zones field and one 64-byte descriptor for each matching zone
that fits. The 56 reserved header bytes and every descriptor slot past
the last match keep whatever the buffer held before. A 4096-byte report
covering a single zone leaves 4024 bytes unwritten.

The tcp, rdma and fc transports allocate that buffer with sgl_alloc()
and pci-epf with kmalloc(), none with __GFP_ZERO, and on success each
sends the whole buffer to the host (nvmet_setup_c2h_data_pdu() for
tcp), so the host receives old kernel memory from the target.

nvmet_bdev_execute_zone_mgmt_recv() also never checks the transport
data length against NUMD, so on transports where the host sets that
length, the buffer sent back can be much larger than the report NUMD
describes. pci-epf derives its data length from NUMD, so the length
check below does not apply there, but the zeroing still covers the
report.

Reject a data length that does not match NUMD with
nvmet_check_transfer_len(), as nvmet_bdev_execute_zone_append() does,
and zero the report with nvmet_zero_sgl() before filling it. Zeroing
NUMD bytes is only enough because of the length check, so the two go
together.

Allocating with __GFP_ZERO in the transports would also close the leak,
but it adds a memset to every read command to fix one handler, so the
transports are left alone.

Tested over the loop, tcp, rdma and fc transports with a zoned
null_blk namespace: before this patch, zone reports carried stale bytes
and a data length larger than NUMD was accepted; with it, reports are
fully initialized and such a length fails with Data SGL Length Invalid.

Analysis

AI-generated

Technical impact

The vulnerability resides in the Linux kernel’s NVMe target implementation. When a zone‑management receive request is processed, the buffer that is sent back to the host is only partially written: only the Number of Zones field and the descriptors for matched zones are filled, while the remaining portion keeps the previous content. Because the transport allocation does not zero the buffer, an attacker controlling the host can read stale kernel memory that should not be exposed, resulting in a confidentiality compromise.

Affected Systems

Affected systems are all Linux kernel installations that provide NVM Express target support (nvmet) before the patch that adds zeroing and data‑length validation. The change applies to the tcp, rdma, and fc transports and pci‑epf. No specific version numbers are listed in the advisory, so any kernel version missing the fix is considered vulnerable.

Risk and Exploitability

The CVSS score is not publicly available, and the EPSS score is not listed; KEV does not contain this entry. Because the flaw allows the host to read kernel memory, it represents a significant information‑exposure risk if an attacker can manipulate the NVM target. Exploitation requires the ability to send a zone‑management receive request to the target, which is a standard operation in NVMe over Fabrics environments. The patch introduces a zeroed buffer and rejects mismatched SGL lengths, removing the vulnerability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the nvmet zone management buffer zeroing and length‑check patch, as documented in the kernel commit log.
  • If an update is not immediately possible, temporarily disable zone‑management receive on the NVM Express target or limit access to trusted hosts only until the patch can be applied.
  • Monitor system logs for the "Data SGL Length Invalid" error and block hosts that attempt to send oversized transfer lengths to mitigate exploitation attempts.

Generated by OpenCVE AI on November 30, 2026 at 16:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-200
CWE-788
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: nvmet: zns: don't leak stale memory in zone management receive A Zone Management Receive report returns the full buffer the host asked for, but nvmet_bdev_zone_zmgmt_recv_work() writes only the 8-byte Number of Zones field and one 64-byte descriptor for each matching zone that fits. The 56 reserved header bytes and every descriptor slot past the last match keep whatever the buffer held before. A 4096-byte report covering a single zone leaves 4024 bytes unwritten. The tcp, rdma and fc transports allocate that buffer with sgl_alloc() and pci-epf with kmalloc(), none with __GFP_ZERO, and on success each sends the whole buffer to the host (nvmet_setup_c2h_data_pdu() for tcp), so the host receives old kernel memory from the target. nvmet_bdev_execute_zone_mgmt_recv() also never checks the transport data length against NUMD, so on transports where the host sets that length, the buffer sent back can be much larger than the report NUMD describes. pci-epf derives its data length from NUMD, so the length check below does not apply there, but the zeroing still covers the report. Reject a data length that does not match NUMD with nvmet_check_transfer_len(), as nvmet_bdev_execute_zone_append() does, and zero the report with nvmet_zero_sgl() before filling it. Zeroing NUMD bytes is only enough because of the length check, so the two go together. Allocating with __GFP_ZERO in the transports would also close the leak, but it adds a memset to every read command to fix one handler, so the transports are left alone. Tested over the loop, tcp, rdma and fc transports with a zoned null_blk namespace: before this patch, zone reports carried stale bytes and a data length larger than NUMD was accepted; with it, reports are fully initialized and such a length fails with Data SGL Length Invalid.
Title nvmet: zns: don't leak stale memory in zone management receive
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-788

    Access of Memory Location After End of Buffer

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:23 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM