PT-2026-162667
CVE-2026-100098
·
Publicado
2026-11-30
·
Atualizado
2026-11-30
Descrição por
CVSS 3.1
7.5
AltaMétricasAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
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.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾