{"id":"CVE-2024-26846","state":"PUBLISHED","title":"nvme-fc: do not wait in vain when unloading module","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvme-fc: do not wait in vain when unloading module\n\nThe module exit path has race between deleting all controllers and\nfreeing 'left over IDs'. To prevent double free a synchronization\nbetween nvme_delete_ctrl and ida_destroy has been added by the initial\ncommit.\n\nThere is some logic around trying to prevent from hanging forever in\nwait_for_completion, though it does not handling all cases. E.g.\nblktests is able to reproduce the situation where the module unload\nhangs forever.\n\nIf we completely rely on the cleanup code executed from the\nnvme_delete_ctrl path, all IDs will be freed eventually. This makes\ncalling ida_destroy unnecessary. We only have to ensure that all\nnvme_delete_ctrl code has been executed before we leave\nnvme_fc_exit_module. This is done by flushing the nvme_delete_wq\nworkqueue.\n\nWhile at it, remove the unused nvme_fc_wq workqueue too.","publishedAt":"2024-04-17T10:10:09.964Z","updatedAt":"2026-05-11T20:05:16.564Z","severity":{"score":4.4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4c73cbdff1119d088ed16d63def59ad32b11b18f","status":"affected","lessThan":"4f2c95015ec2a1899161be6c0bdaecedd5a7bfb2","versionType":"git"},{"version":"4c73cbdff1119d088ed16d63def59ad32b11b18f","status":"affected","lessThan":"0bf567d6d9ffe09e059bbdfb4d07143cef42c75c","versionType":"git"},{"version":"4c73cbdff1119d088ed16d63def59ad32b11b18f","status":"affected","lessThan":"085195aa90a924c79e35569bcdad860d764a8e17","versionType":"git"},{"version":"4c73cbdff1119d088ed16d63def59ad32b11b18f","status":"affected","lessThan":"baa6b7eb8c66486bd64608adc63fe03b30d3c0b9","versionType":"git"},{"version":"4c73cbdff1119d088ed16d63def59ad32b11b18f","status":"affected","lessThan":"c0882c366418bf9c19e1ba7f270fe377a9bf5d67","versionType":"git"},{"version":"4c73cbdff1119d088ed16d63def59ad32b11b18f","status":"affected","lessThan":"70fbfc47a392b98e5f8dba70c6efc6839205c982","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/fc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.3","versionType":"semver"},{"version":"5.10.211","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.150","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.80","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.19","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.7","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8","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/fc.c"]}],"references":["https://git.kernel.org/stable/c/4f2c95015ec2a1899161be6c0bdaecedd5a7bfb2","https://git.kernel.org/stable/c/0bf567d6d9ffe09e059bbdfb4d07143cef42c75c","https://git.kernel.org/stable/c/085195aa90a924c79e35569bcdad860d764a8e17","https://git.kernel.org/stable/c/baa6b7eb8c66486bd64608adc63fe03b30d3c0b9","https://git.kernel.org/stable/c/c0882c366418bf9c19e1ba7f270fe377a9bf5d67","https://git.kernel.org/stable/c/70fbfc47a392b98e5f8dba70c6efc6839205c982","https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html"],"weaknesses":["CWE-415"],"ingestedAt":"2026-10-29T20:07:10.607Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/26xxx/CVE-2024-26846.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-26846","state":"PUBLISHED","datePublished":"2024-04-17T10:10:09.964Z","dateUpdated":"2026-05-11T20:05:16.564Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-19T14:20:24.182Z"},"containers":{"cna":{"title":"nvme-fc: do not wait in vain when unloading module","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvme-fc: do not wait in vain when unloading module\n\nThe module exit path has race between deleting all controllers and\nfreeing 'left over IDs'. To prevent double free a synchronization\nbetween nvme_delete_ctrl and ida_destroy has been added by the initial\ncommit.\n\nThere is some logic around trying to prevent from hanging forever in\nwait_for_completion, though it does not handling all cases. E.g.\nblktests is able to reproduce the situation where the module unload\nhangs forever.\n\nIf we completely rely on the cleanup code executed from the\nnvme_delete_ctrl path, all IDs will be freed eventually. This makes\ncalling ida_destroy unnecessary. We only have to ensure that all\nnvme_delete_ctrl code has been executed before we leave\nnvme_fc_exit_module. This is done by flushing the nvme_delete_wq\nworkqueue.\n\nWhile at it, remove the unused nvme_fc_wq workqueue too."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4c73cbdff1119d088ed16d63def59ad32b11b18f","status":"affected","lessThan":"4f2c95015ec2a1899161be6c0bdaecedd5a7bfb2","versionType":"git"},{"version":"4c73cbdff1119d088ed16d63def59ad32b11b18f","status":"affected","lessThan":"0bf567d6d9ffe09e059bbdfb4d07143cef42c75c","versionType":"git"},{"version":"4c73cbdff1119d088ed16d63def59ad32b11b18f","status":"affected","lessThan":"085195aa90a924c79e35569bcdad860d764a8e17","versionType":"git"},{"version":"4c73cbdff1119d088ed16d63def59ad32b11b18f","status":"affected","lessThan":"baa6b7eb8c66486bd64608adc63fe03b30d3c0b9","versionType":"git"},{"version":"4c73cbdff1119d088ed16d63def59ad32b11b18f","status":"affected","lessThan":"c0882c366418bf9c19e1ba7f270fe377a9bf5d67","versionType":"git"},{"version":"4c73cbdff1119d088ed16d63def59ad32b11b18f","status":"affected","lessThan":"70fbfc47a392b98e5f8dba70c6efc6839205c982","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/fc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.3","versionType":"semver"},{"version":"5.10.211","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.150","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.80","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.19","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.7","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8","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/fc.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4f2c95015ec2a1899161be6c0bdaecedd5a7bfb2"},{"url":"https://git.kernel.org/stable/c/0bf567d6d9ffe09e059bbdfb4d07143cef42c75c"},{"url":"https://git.kernel.org/stable/c/085195aa90a924c79e35569bcdad860d764a8e17"},{"url":"https://git.kernel.org/stable/c/baa6b7eb8c66486bd64608adc63fe03b30d3c0b9"},{"url":"https://git.kernel.org/stable/c/c0882c366418bf9c19e1ba7f270fe377a9bf5d67"},{"url":"https://git.kernel.org/stable/c/70fbfc47a392b98e5f8dba70c6efc6839205c982"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:05:16.564Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"5.10.211"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"5.15.150"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"6.1.80"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"6.6.19"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"6.7.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"6.8"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/4f2c95015ec2a1899161be6c0bdaecedd5a7bfb2","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/0bf567d6d9ffe09e059bbdfb4d07143cef42c75c","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/085195aa90a924c79e35569bcdad860d764a8e17","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/baa6b7eb8c66486bd64608adc63fe03b30d3c0b9","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/c0882c366418bf9c19e1ba7f270fe377a9bf5d67","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/70fbfc47a392b98e5f8dba70c6efc6839205c982","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T00:14:13.666Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":4.4,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"HIGH","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-04-19T20:32:39.392326Z","id":"CVE-2024-26846","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-415","type":"CWE","lang":"en","description":"CWE-415 Double Free"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-02-11T21:49:19.408Z"}}]}}}