{"id":"CVE-2026-89975","state":"PUBLISHED","title":"nvme-fabrics: fix DHCHAP secret leak on parse failure","description":"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->dhchap_secret or\nopts->dhchap_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.","publishedAt":"2026-09-16T10:32:53.836Z","updatedAt":"2026-10-30T12:33:39.796Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","status":"affected","lessThan":"35ec48228f6739339583e5a73ca315156372e30d","versionType":"git"},{"version":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","status":"affected","lessThan":"3ce0e9b43f355dfa0bdc0e0dd889795752285791","versionType":"git"},{"version":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","status":"affected","lessThan":"702c1ae0d31b44828ec3c87079def490c1ee1fb3","versionType":"git"},{"version":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","status":"affected","lessThan":"15d7a35a489287109b5a7c157d53d9b8214f0318","versionType":"git"},{"version":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","status":"affected","lessThan":"d21da6cc91ba1c4f1ae5ba007f3cb89e1c0c7549","versionType":"git"},{"version":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","status":"affected","lessThan":"afdee49a1b88ed9bb44e2b30e855297c169bcc53","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/fabrics.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.51","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.5","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/fabrics.c"]}],"references":["https://git.kernel.org/stable/c/35ec48228f6739339583e5a73ca315156372e30d","https://git.kernel.org/stable/c/3ce0e9b43f355dfa0bdc0e0dd889795752285791","https://git.kernel.org/stable/c/702c1ae0d31b44828ec3c87079def490c1ee1fb3","https://git.kernel.org/stable/c/15d7a35a489287109b5a7c157d53d9b8214f0318","https://git.kernel.org/stable/c/d21da6cc91ba1c4f1ae5ba007f3cb89e1c0c7549","https://git.kernel.org/stable/c/afdee49a1b88ed9bb44e2b30e855297c169bcc53"],"weaknesses":[],"ingestedAt":"2026-10-30T12:52:04.348Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/89xxx/CVE-2026-89975.json","commit":"1f312381e38164a43607eebab851b151dd16861e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-89975","state":"PUBLISHED","datePublished":"2026-09-16T10:32:53.836Z","dateUpdated":"2026-10-30T12:33:39.796Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.779Z"},"containers":{"cna":{"title":"nvme-fabrics: fix DHCHAP secret leak on parse failure","descriptions":[{"lang":"en","value":"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->dhchap_secret or\nopts->dhchap_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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","status":"affected","lessThan":"35ec48228f6739339583e5a73ca315156372e30d","versionType":"git"},{"version":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","status":"affected","lessThan":"3ce0e9b43f355dfa0bdc0e0dd889795752285791","versionType":"git"},{"version":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","status":"affected","lessThan":"702c1ae0d31b44828ec3c87079def490c1ee1fb3","versionType":"git"},{"version":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","status":"affected","lessThan":"15d7a35a489287109b5a7c157d53d9b8214f0318","versionType":"git"},{"version":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","status":"affected","lessThan":"d21da6cc91ba1c4f1ae5ba007f3cb89e1c0c7549","versionType":"git"},{"version":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","status":"affected","lessThan":"afdee49a1b88ed9bb44e2b30e855297c169bcc53","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/fabrics.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.51","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.5","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/fabrics.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/35ec48228f6739339583e5a73ca315156372e30d"},{"url":"https://git.kernel.org/stable/c/3ce0e9b43f355dfa0bdc0e0dd889795752285791"},{"url":"https://git.kernel.org/stable/c/702c1ae0d31b44828ec3c87079def490c1ee1fb3"},{"url":"https://git.kernel.org/stable/c/15d7a35a489287109b5a7c157d53d9b8214f0318"},{"url":"https://git.kernel.org/stable/c/d21da6cc91ba1c4f1ae5ba007f3cb89e1c0c7549"},{"url":"https://git.kernel.org/stable/c/afdee49a1b88ed9bb44e2b30e855297c169bcc53"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:33:39.796Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.12.110"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.18.51"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"7.2.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}