[PATCH] nvme-fabrics: use kfree_sensitive() for DHCHAP secrets

Keith Busch kbusch at kernel.org
Mon Feb 2 08:10:12 PST 2026


On Sat, Jan 31, 2026 at 07:08:40PM -0800, Daniel Hodges wrote:
> The DHCHAP secrets (dhchap_secret and dhchap_ctrl_secret) contain
> authentication key material for NVMe-oF. Use kfree_sensitive() instead
> of kfree() in nvmf_free_options() to ensure secrets are zeroed before
> the memory is freed, preventing recovery from freed pages.

Thanks, applied to nvme-7.0.



More information about the Linux-nvme mailing list