{"id":"CVE-2024-26846","published":"2024-04-17T10:10:09Z","modified":"2026-05-11T20:05:16Z","title":"nvme-fc: do not wait in vain when unloading module","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00302,"percentile":0.15374,"provenance":"source"},"cwes":[{"id":"CWE-415","name":"Double Free"}],"references":[{"url":"https://git.kernel.org/stable/c/4f2c95015ec2a1899161be6c0bdaecedd5a7bfb2","tags":[]},{"url":"https://git.kernel.org/stable/c/0bf567d6d9ffe09e059bbdfb4d07143cef42c75c","tags":[]},{"url":"https://git.kernel.org/stable/c/085195aa90a924c79e35569bcdad860d764a8e17","tags":[]},{"url":"https://git.kernel.org/stable/c/baa6b7eb8c66486bd64608adc63fe03b30d3c0b9","tags":[]},{"url":"https://git.kernel.org/stable/c/c0882c366418bf9c19e1ba7f270fe377a9bf5d67","tags":[]},{"url":"https://git.kernel.org/stable/c/70fbfc47a392b98e5f8dba70c6efc6839205c982","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["x_transferred"]}],"priority":{"score":6.2,"factors":[{"name":"EPSS percentile","points":3.07},{"name":"CVSS severity","points":3.08}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 4c73cbdff1119d088ed16d63def59ad32b11b18f, < 4f2c95015ec2a1899161be6c0bdaecedd5a7bfb2",">= 4c73cbdff1119d088ed16d63def59ad32b11b18f, < 0bf567d6d9ffe09e059bbdfb4d07143cef42c75c",">= 4c73cbdff1119d088ed16d63def59ad32b11b18f, < 085195aa90a924c79e35569bcdad860d764a8e17",">= 4c73cbdff1119d088ed16d63def59ad32b11b18f, < baa6b7eb8c66486bd64608adc63fe03b30d3c0b9",">= 4c73cbdff1119d088ed16d63def59ad32b11b18f, < c0882c366418bf9c19e1ba7f270fe377a9bf5d67",">= 4c73cbdff1119d088ed16d63def59ad32b11b18f, < 70fbfc47a392b98e5f8dba70c6efc6839205c982"]},{"vendor":"Linux","product":"Linux","versions":["5.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-04-19T20:32:39.392326Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-24108","exploited":false,"provenance":"source"}}