[PATCH] nvmet: zero the reservation report tail beyond NUMD
Keith Busch
kbusch at kernel.org
Mon Nov 30 07:56:52 PST 2026
On Wed, 25 Nov 2026 14:14:52 +0800, Guixin Liu wrote:
> The reservation report handler allocates a buffer of 4 * (NUMD + 1)
> bytes and copies it to the command SGL, but the data is sent back to
> the host using the SGL length, which is independent of NUMD. When the
> host supplies a buffer larger than NUMD, the tail beyond the copied
> data is returned uninitialised, leaking kernel heap contents to a
> fabric host.
>
> [...]
Thanks, applied to nvme-7.4.
[1/1] nvmet: zero the reservation report tail beyond NUMD
commit: 781066b4224d6fab8523720e0689b224c54d3887
--
Keith Busch <kbusch at kernel.org>
More information about the Linux-nvme
mailing list