Re: (subset) [PATCH 0/2] nvme: use the parsed offset for DH-CHAP secrets

From: Keith Busch

Date: Mon Nov 16 2026 - 10:17:25 EST


On Mon, 9 Nov 2026 22:59:14 +0800 (CST), shao.mingyin@xxxxxxxxxx wrote:
> Both the host and the target parse a DH-HMAC-CHAP secret with
> sscanf("DHHC-1:%hhd:...") and then skip a hardcoded ten characters to
> reach the key. The prefix is only nine characters when the hash
> identifier is one digit, so a short but accepted secret makes the key
> pointer point past the end of the string and the follow-up strlen() read
> past the allocation.
>
> [...]

Thanks, applied to nvme-7.4.

[1/2] nvme-auth: use the parsed offset for the DH-CHAP key
commit: f7141618d5d0b51bc2a64961bab738a0fe57e83f
--
Keith Busch <kbusch@xxxxxxxxxx>