Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-100098

published high CVSS 3.1 · 7.5

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

Published
30 Nov 2026, 13:23:45 UTC
Updated
01 Dec 2026, 05:40:04 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxaaf2e048af2704da5869f27b508b288f36d5c7b7 to < df4a9d82bd9b877590af26473bd73b8e69591688 · aaf2e048af2704da5869f27b508b288f36d5c7b7 to < a57cf3f31a93402127373b0eab6dd7908dffac64 · aaf2e048af2704da5869f27b508b288f36d5c7b7 to < c719c47ffbe310a7bf3072bf83793226a7c0ea60 · aaf2e048af2704da5869f27b508b288f36d5c7b7 to < e169946cd8d553ff4ac691b2b8e435b0d3b0bf49 · aaf2e048af2704da5869f27b508b288f36d5c7b7 to < 124db30f332f644e900cc9d92a9fb4293d63d4f7 · aaf2e048af2704da5869f27b508b288f36d5c7b7 to < 06afe122a65a326e068751bf525f39ac64f68b7b · aaf2e048af2704da5869f27b508b288f36d5c7b7 to < 31b8a6af19b73e6167c4b655cd5e86681bac1c41 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.14 (affected) · 0 to < 5.14 (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.5 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Scenarios
en: AV:N - A remote NVMe/TCP host sends the Zone Management Receive capsule (opcode 0x7a), choosing both NUMD and the SGL length. nvmet_tcp_map_data() sizes the sgl_alloc() buffer from that SGL length (up to 4 MiB). nvmet_bdev_zone_zmgmt_recv_work() fills only part of it, and the whole buffer goes back to the attacker in the C2HData PDU built by nvmet_setup_c2h_data_pdu(). AC:L - Assuming the target exports a zoned namespace (the configuration the vulnerable code needs), the attacker just sends a ZMR with NUMD=15, the partial-report bit set and a large SGL length. The command succeeds deterministically with no race, and every call returns fresh stale pages, so it can be repeated indefinitely. PR:N - Unless DH-HMAC-CHAP is configured, nvmet_check_auth_status() passes. Access then depends only on nvmet_host_allowed(), which matches a host NQN the client asserts itself in the Fabrics Connect, or on allow_any_host. No credential is verified before I/O commands reach nvmet_bdev_execute_zone_mgmt_recv(). UI:N - The attacker's own Fabrics Connect and Zone Management Receive commands trigger the leak entirely. No administrator or other user has to do anything. S:U - Kernel memory on the target host is disclosed by the target kernel's own NVMe-oF service. No VM, IOMMU or sandbox boundary is crossed. C:H - Before the fix there was no nvmet_check_transfer_len() and no nvmet_zero_sgl(), so up to 4 MiB of unzeroed alloc_pages() memory per command, minus the 8-byte zone count, goes back to the host. The pages are recycled page-allocator memory, which can hold other hosts' namespace I/O, page cache or kernel heap data. The leak is unbounded and repeatable. I:N - The bug only sends uninitialized buffer bytes back to the host. Nothing in nvmet_bdev_report_zone_cb() or the send path writes attacker data into kernel memory or storage. A:N - The command completes successfully with NVME_SC_SUCCESS and the buffer is freed normally. Nothing crashes, hangs or leaks memory; only the reply contents are wrong.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux aaf2e048af2704da5869f27b508b288f36d5c7b7 to < df4a9d82bd9b877590af26473bd73b8e69591688 (affected · git)aaf2e048af2704da5869f27b508b288f36d5c7b7 to < a57cf3f31a93402127373b0eab6dd7908dffac64 (affected · git)aaf2e048af2704da5869f27b508b288f36d5c7b7 to < c719c47ffbe310a7bf3072bf83793226a7c0ea60 (affected · git)aaf2e048af2704da5869f27b508b288f36d5c7b7 to < e169946cd8d553ff4ac691b2b8e435b0d3b0bf49 (affected · git)aaf2e048af2704da5869f27b508b288f36d5c7b7 to < 124db30f332f644e900cc9d92a9fb4293d63d4f7 (affected · git)aaf2e048af2704da5869f27b508b288f36d5c7b7 to < 06afe122a65a326e068751bf525f39ac64f68b7b (affected · git)aaf2e048af2704da5869f27b508b288f36d5c7b7 to < 31b8a6af19b73e6167c4b655cd5e86681bac1c41 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.14 (affected)0 to < 5.14 (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

7

Provider assertions

1

Linux · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
39e6473867ccd98251e701ba60ff10b7902326eef7ed8ec0c76cc119ca1ddecc
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected