{"id":"CVE-2026-100098","aliases":["CVE-2026-100098"],"related":[],"kind":"vulnerability","state":"published","title":"nvmet: zns: don't leak stale memory in zone management receive","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: zns: don't leak stale memory in zone management receive\n\nA Zone Management Receive report returns the full buffer the host asked\nfor, but nvmet_bdev_zone_zmgmt_recv_work() writes only the 8-byte\nNumber of Zones field and one 64-byte descriptor for each matching zone\nthat fits. The 56 reserved header bytes and every descriptor slot past\nthe last match keep whatever the buffer held before. A 4096-byte report\ncovering a single zone leaves 4024 bytes unwritten.\n\nThe tcp, rdma and fc transports allocate that buffer with sgl_alloc()\nand pci-epf with kmalloc(), none with __GFP_ZERO, and on success each\nsends the whole buffer to the host (nvmet_setup_c2h_data_pdu() for\ntcp), so the host receives old kernel memory from the target.\n\nnvmet_bdev_execute_zone_mgmt_recv() also never checks the transport\ndata length against NUMD, so on transports where the host sets that\nlength, the buffer sent back can be much larger than the report NUMD\ndescribes. pci-epf derives its data length from NUMD, so the length\ncheck below does not apply there, but the zeroing still covers the\nreport.\n\nReject a data length that does not match NUMD with\nnvmet_check_transfer_len(), as nvmet_bdev_execute_zone_append() does,\nand zero the report with nvmet_zero_sgl() before filling it. Zeroing\nNUMD bytes is only enough because of the length check, so the two go\ntogether.\n\nAllocating with __GFP_ZERO in the transports would also close the leak,\nbut it adds a memset to every read command to fix one handler, so the\ntransports are left alone.\n\nTested over the loop, tcp, rdma and fc transports with a zoned\nnull_blk namespace: before this patch, zone reports carried stale bytes\nand a data length larger than NUMD was accepted; with it, reports are\nfully initialized and such a length fails with Data SGL Length Invalid.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: zns: don't leak stale memory in zone management receive\n\nA Zone Management Receive report returns the full buffer the host asked\nfor, but nvmet_bdev_zone_zmgmt_recv_work() writes only the 8-byte\nNumber of Zones field and one 64-byte descriptor for each matching zone\nthat fits. The 56 reserved header bytes and every descriptor slot past\nthe last match keep whatever the buffer held before. A 4096-byte report\ncovering a single zone leaves 4024 bytes unwritten.\n\nThe tcp, rdma and fc transports allocate that buffer with sgl_alloc()\nand pci-epf with kmalloc(), none with __GFP_ZERO, and on success each\nsends the whole buffer to the host (nvmet_setup_c2h_data_pdu() for\ntcp), so the host receives old kernel memory from the target.\n\nnvmet_bdev_execute_zone_mgmt_recv() also never checks the transport\ndata length against NUMD, so on transports where the host sets that\nlength, the buffer sent back can be much larger than the report NUMD\ndescribes. pci-epf derives its data length from NUMD, so the length\ncheck below does not apply there, but the zeroing still covers the\nreport.\n\nReject a data length that does not match NUMD with\nnvmet_check_transfer_len(), as nvmet_bdev_execute_zone_append() does,\nand zero the report with nvmet_zero_sgl() before filling it. Zeroing\nNUMD bytes is only enough because of the length check, so the two go\ntogether.\n\nAllocating with __GFP_ZERO in the transports would also close the leak,\nbut it adds a memset to every read command to fix one handler, so the\ntransports are left alone.\n\nTested over the loop, tcp, rdma and fc transports with a zoned\nnull_blk namespace: before this patch, zone reports carried stale bytes\nand a data length larger than NUMD was accepted; with it, reports are\nfully initialized and such a length fails with Data SGL Length Invalid.","source":"cvelist"}],"published":"2026-11-30T13:23:45.504Z","modified":"2026-12-01T06:17:22.463Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"aaf2e048af2704da5869f27b508b288f36d5c7b7","fixed":"df4a9d82bd9b877590af26473bd73b8e69591688","status":"affected"},{"type":"git","introduced":"aaf2e048af2704da5869f27b508b288f36d5c7b7","fixed":"a57cf3f31a93402127373b0eab6dd7908dffac64","status":"affected"},{"type":"git","introduced":"aaf2e048af2704da5869f27b508b288f36d5c7b7","fixed":"c719c47ffbe310a7bf3072bf83793226a7c0ea60","status":"affected"},{"type":"git","introduced":"aaf2e048af2704da5869f27b508b288f36d5c7b7","fixed":"e169946cd8d553ff4ac691b2b8e435b0d3b0bf49","status":"affected"},{"type":"git","introduced":"aaf2e048af2704da5869f27b508b288f36d5c7b7","fixed":"124db30f332f644e900cc9d92a9fb4293d63d4f7","status":"affected"},{"type":"git","introduced":"aaf2e048af2704da5869f27b508b288f36d5c7b7","fixed":"06afe122a65a326e068751bf525f39ac64f68b7b","status":"affected"},{"type":"git","introduced":"aaf2e048af2704da5869f27b508b288f36d5c7b7","fixed":"31b8a6af19b73e6167c4b655cd5e86681bac1c41","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.14","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/df4a9d82bd9b877590af26473bd73b8e69591688","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a57cf3f31a93402127373b0eab6dd7908dffac64","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c719c47ffbe310a7bf3072bf83793226a7c0ea60","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e169946cd8d553ff4ac691b2b8e435b0d3b0bf49","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/124db30f332f644e900cc9d92a9fb4293d63d4f7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/06afe122a65a326e068751bf525f39ac64f68b7b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/31b8a6af19b73e6167c4b655cd5e86681bac1c41","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-100098","url":"https://www.cve.org/CVERecord?id=CVE-2026-100098","licence":"CVE Terms of Use","modified":"2026-12-01T05:40:04.265Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-100098","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100098","licence":"Public domain","modified":"2026-12-01T06:17:22.463Z"}],"updatedAt":"2026-12-01T06:32:14.053Z","epss":{"score":0.00529,"percentile":0.46221,"date":"2026-12-01T12:00:22.000Z"}}