[PATCH] nvme-sysfs: serialize DH-HMAC-CHAP secret updates
Keith Busch
kbusch at kernel.org
Fri Nov 20 11:54:23 PST 2026
On Wed, 18 Nov 2026 15:33:47 +0530, Martin George wrote:
> dhchap_secret_store() and dhchap_ctrl_secret_store() free/replace the
> stored secret and swap ctrl->host_key / ctrl->ctrl_key, but hold
> dhchap_auth_mutex only around the key assignment; the free/replace and
> the show handlers run unlocked. Concurrent writes to the same attribute
> can thus double-free the secret or the old key, and a concurrent show()
> can read the secret as it is freed (use-after-free).
>
> [...]
Thanks, applied to nvme-7.4.
[1/1] nvme-sysfs: serialize DH-HMAC-CHAP secret updates
commit: bdd56686afbc4e84eebff90ae7be7c1c62e21c49
--
Keith Busch <kbusch at kernel.org>
More information about the Linux-nvme
mailing list