{"id":"CVE-2024-26846","summary":"nvme-fc: do not wait in vain when unloading module","details":"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.","modified":"2026-03-20T12:35:16.034990Z","published":"2024-04-17T10:10:09.964Z","related":["ALSA-2024:7000","SUSE-SU-2024:1979-1","SUSE-SU-2024:1983-1","SUSE-SU-2024:2008-1","SUSE-SU-2024:2019-1","SUSE-SU-2024:2135-1","SUSE-SU-2024:2184-1","SUSE-SU-2024:2190-1","SUSE-SU-2024:2203-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20249-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26846.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/085195aa90a924c79e35569bcdad860d764a8e17"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0bf567d6d9ffe09e059bbdfb4d07143cef42c75c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4f2c95015ec2a1899161be6c0bdaecedd5a7bfb2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/70fbfc47a392b98e5f8dba70c6efc6839205c982"},{"type":"WEB","url":"https://git.kernel.org/stable/c/baa6b7eb8c66486bd64608adc63fe03b30d3c0b9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c0882c366418bf9c19e1ba7f270fe377a9bf5d67"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26846.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26846"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"4c73cbdff1119d088ed16d63def59ad32b11b18f"},{"fixed":"4f2c95015ec2a1899161be6c0bdaecedd5a7bfb2"},{"fixed":"0bf567d6d9ffe09e059bbdfb4d07143cef42c75c"},{"fixed":"085195aa90a924c79e35569bcdad860d764a8e17"},{"fixed":"baa6b7eb8c66486bd64608adc63fe03b30d3c0b9"},{"fixed":"c0882c366418bf9c19e1ba7f270fe377a9bf5d67"},{"fixed":"70fbfc47a392b98e5f8dba70c6efc6839205c982"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-26846.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H"}]}