CVE-2026-100098: nvmet: zns: don't leak stale memory in zone management receive

Published Nov 30, 2026
·
Updated

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 nvmetbdevzonezmgmtrecvwork() 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 sglalloc() and pci-epf with kmalloc(), none with GFPZERO, and on success each sends the whole buffer to the host (nvmetsetupc2hdatapdu() for tcp), so the host receives old kernel memory from the target.

nvmetbdevexecutezonemgmtrecv() 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 nvmetchecktransferlen(), as nvmetbdevexecutezoneappend() does, and zero the report with nvmetzerosgl() before filling it. Zeroing NUMD bytes is only enough because of the length check, so the two go together.

Allocating with GFPZERO 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 nullblk 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.

Affected Software

11 affected componentsFixes available
Linux Linux kernel
linux/kernel>=5.14.0<5.15.226
5.15.226
linux/kernel>=5.16.0<6.1.193
6.1.193
linux/kernel>=6.2.0<6.6.163
6.6.163
linux/kernel>=6.7.0<6.12.117
6.12.117
linux/kernel>=6.13.0<6.18.63
6.18.63
linux/kernel>=6.19.0<7.3.4
7.3.4
debian/linux*
debian/linux<6.12.117-1
6.12.117-1
debian/linux<7.3.4-1
7.3.4-1
debian/linux<=6.1.176-1, <=6.1.192-3
6.12.117-17.3.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.15.226
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.1.193
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.163
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.117
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.63
  6. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.4
  7. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.117-1
  8. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.4-1
  9. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.117-1Fixed in 7.3.4-1
  10. Compensating control

    In nvmet_bdev_execute_zone_mgmt_recv(), validate the transport data length against NUMD using nvmet_check_transfer_len().

  11. Compensating control

    Zero the zone report with nvmet_zero_sgl() before filling it.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:23 PM
Data Sourced
via MITRE·01:23 PM
Description
Data Sourced
via OSV·01:23 PM
DescriptionAffected Software
Data Sourced
via NVD·02:17 PM
Description

Frequently Asked Questions

1

Which deployments are exposed to this disclosure?

Linux NVMe target deployments using Zoned Namespace Zone Management Receive operations are affected. The described affected transports are TCP, RDMA, Fibre Channel, and PCI endpoint function (pci-epf).

2

What does an attacker or host need to do to obtain leaked memory?

A host needs to issue a Zone Management Receive report request that causes the target to return a buffer larger than the data written for matching zones. For example, a 4096-byte report covering one zone leaves 4024 bytes unwritten and exposes prior kernel-buffer contents when the full buffer is returned.

3

Can a host cause a response larger than the report length requested by NUMD?

Yes, on transports where the host supplies the transport data length, the vulnerable code does not verify that length against NUMD, so the returned buffer can be larger than the NUMD-described report. pci-epf derives the data length from NUMD, so this length mismatch does not apply to pci-epf, although unwritten report memory can still be exposed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203