Re: [PATCH] nvmet: fix heap out-of-bounds read in nvmet_auth_negotiate()
Keith Busch <[email protected]>
| Newsgroups | org.infradead.lists.linux-nvme |
|---|---|
| Message-ID | <anoof83wAQ2zcO97@kbusch-mbp> |
On Tue, Aug 04, 2026 at 11:38:00AM +0800, Guixin Liu wrote: > nvmet_execute_auth_send() allocates the DH-HMAC-CHAP message buffer with > the host-supplied transfer length (tl) and hands it to > nvmet_auth_negotiate() without passing tl along. nvmet_auth_negotiate() > then reads the negotiate header and, for each of the halen hash > identifiers and dhlen DH group identifiers, indexes into the fixed > idlist[60] array (hashes at idlist[0..halen), groups at idlist[30..]). Thanks, applied to nvme-7.3 with the formatting updated.