[PATCH 0/2] nvme: use kfree_sensitive() for DH-HMAC-CHAP secrets
Keith Busch
kbusch at kernel.org
Mon Nov 16 08:18:29 PST 2026
On Mon, 16 Nov 2026 15:32:42 +0530, Martin George wrote:
> The host side stores the raw DH-HMAC-CHAP secret ("DHHC-1:...") but frees
> it with plain kfree() in a few places, leaving the secret in freed slab
> until the memory is reused. Switch those kfrees to kfree_sensitive() so
> the contents are wiped on free.
>
> This is a hardening-only series; it fixes no functional bug and changes
> no behaviour.
>
> [...]
Thanks, applied to nvme-7.4.
[1/2] nvme-sysfs: use kfree_sensitive() for DH-HMAC-CHAP secrets
commit: 7fce38923253c27650835c91201b222214aeb149
[2/2] nvme-fabrics: use kfree_sensitive() for the old DH-HMAC-CHAP secret
commit: 68099cf27253a8c89d703a282d3d811446d9453b
--
Keith Busch <kbusch at kernel.org>
More information about the Linux-nvme
mailing list