(subset) [PATCH 0/2] nvme: use the parsed offset for DH-CHAP secrets
Keith Busch
kbusch at kernel.org
Mon Nov 16 07:16:49 PST 2026
On Mon, 9 Nov 2026 22:59:14 +0800 (CST), shao.mingyin at zte.com.cn 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 at kernel.org>
More information about the Linux-nvme
mailing list