In the Linux kernel, the following vulnerability has been resolved: nvme: make the DH-HMAC-CHAP secret attributes readable by root only The dhchap_secret and dhchap_ctrl_secret sysfs attributes have mode 0644. Their show functions return the secret, so any local user can read the DH-HMAC-CHAP secrets of a connected controller. Define them with DEVICE_ATTR_ADMIN_RW(), which sets mode 0600. The macro takes the show and store functions from the attribute name, so rename them. Writing the attributes was already limited to root and is not changed.
https://git.kernel.org/stable/c/dc4486e79b8fb1376b3deb078acd04152c06d1b2
https://git.kernel.org/stable/c/d13aa384a56ed261d9ffa713e4e7a3085a0deac4
https://git.kernel.org/stable/c/bbca7c312ab25efd0024eb87545c51a76ab2ea39
https://git.kernel.org/stable/c/7b889c448fa5777bdc10f2bcf72a4b1d6caa3ed9
https://git.kernel.org/stable/c/27e435a96478ed724bffbbbeab7dea541f4253af
https://git.kernel.org/stable/c/1927f66f8ca6fbf1ff06e7af1dd5098e2ae69e43