CVE-2026-100084: nvme: make the DH-HMAC-CHAP secret attributes readable by root only
In the Linux kernel, the following vulnerability has been resolved:
nvme: make the DH-HMAC-CHAP secret attributes readable by root only
The dhchapsecret and dhchapctrlsecret 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 DEVICEATTRADMINRW(), 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Define dhchap_secret and dhchap_ctrl_secret with DEVICE_ATTR_ADMIN_RW() so only root can read the DH-HMAC-CHAP secrets.
Linux kernel NVMe dhchap_secret and dhchap_ctrl_secret sysfs attribute permissions = 0600