nvme: make the DH-HMAC-CHAP secret attributes readable by root only
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Sep 25, 2026
Description
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.
| Product | Versions |
|---|---|
| Linux Linux | f50fff73d620cd6e8f48bc58d4f1c944615a3fea to before 27e435a96478ed724bffbbbeab7dea541f4253af Affectedf50fff73d620cd6e8f48bc58d4f1c944615a3fea to before dc4486e79b8fb1376b3deb078acd04152c06d1b2 Affectedf50fff73d620cd6e8f48bc58d4f1c944615a3fea to before 7b889c448fa5777bdc10f2bcf72a4b1d6caa3ed9 Affectedf50fff73d620cd6e8f48bc58d4f1c944615a3fea to before 1927f66f8ca6fbf1ff06e7af1dd5098e2ae69e43 Affectedf50fff73d620cd6e8f48bc58d4f1c944615a3fea to before d13aa384a56ed261d9ffa713e4e7a3085a0deac4 Affectedf50fff73d620cd6e8f48bc58d4f1c944615a3fea to before bbca7c312ab25efd0024eb87545c51a76ab2ea39 Affected |
| Linux Linux | 6.0 Affectedbefore 6.0 Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/27e435a96478ed724bffbbbeab7dea541f4253af
- https://git.kernel.org/stable/c/dc4486e79b8fb1376b3deb078acd04152c06d1b2
- https://git.kernel.org/stable/c/7b889c448fa5777bdc10f2bcf72a4b1d6caa3ed9
- https://git.kernel.org/stable/c/1927f66f8ca6fbf1ff06e7af1dd5098e2ae69e43
- https://git.kernel.org/stable/c/d13aa384a56ed261d9ffa713e4e7a3085a0deac4
- https://git.kernel.org/stable/c/bbca7c312ab25efd0024eb87545c51a76ab2ea39
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.