{"id":"CVE-2026-89975","summary":"nvme-fabrics: fix DHCHAP secret leak on parse failure","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvme-fabrics: fix DHCHAP secret leak on parse failure\n\nnvmf_parse_options() duplicates dhchap_secret and dhchap_ctrl_secret\nwith match_strdup() before validating the DHHC-1: representation.\n\nIf validation fails, the parser returns -EINVAL before the temporary\nstring in p is assigned to opts-\u003edhchap_secret or\nopts-\u003edhchap_ctrl_secret. nvmf_create_ctrl() subsequently frees opts,\nbut nvmf_free_options() cannot release the unassigned temporary string.\nEach rejected option therefore leaks one allocation.\n\nThis is easy to miss because valid secrets transfer ownership to opts\nand are freed normally, while the malformed-secret path still returns\nthe expected -EINVAL to userspace.\n\nWith CONFIG_NVME_HOST_AUTH enabled, the leak is reachable before the\nrequired-option checks and transport lookup. No NVMe-oF target or\nworking transport connection is required; for example, repeatedly\nwriting\n\n\tdhchap_secret=BAD\n\nor\n\n\tdhchap_ctrl_secret=BAD\n\nto /dev/nvme-fabrics deterministically takes the leaking parse path.\n\nFree the temporary string before leaving both validation error paths.\nUse kfree_sensitive() because the copied option may contain secret\nmaterial even when its representation is rejected, matching the\nsensitive cleanup used for stored DHCHAP secrets.","modified":"2026-09-17T03:47:20.392814136Z","published":"2026-09-16T10:32:53.836Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89975.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/15d7a35a489287109b5a7c157d53d9b8214f0318"},{"type":"WEB","url":"https://git.kernel.org/stable/c/702c1ae0d31b44828ec3c87079def490c1ee1fb3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/afdee49a1b88ed9bb44e2b30e855297c169bcc53"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d21da6cc91ba1c4f1ae5ba007f3cb89e1c0c7549"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89975.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89975"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea"},{"fixed":"702c1ae0d31b44828ec3c87079def490c1ee1fb3"},{"fixed":"15d7a35a489287109b5a7c157d53d9b8214f0318"},{"fixed":"d21da6cc91ba1c4f1ae5ba007f3cb89e1c0c7549"},{"fixed":"afdee49a1b88ed9bb44e2b30e855297c169bcc53"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89975.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.0.0"},{"fixed":"6.12.110"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.51"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89975.json"}}],"schema_version":"1.9.0"}