{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-26846","id":"CVE-2024-26846","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 ","descriptionLong":"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.","published":"2024-04-17T10:10:09.964Z","updated":"2026-10-28T02:30:41.653560091Z","reserved":"2024-02-19T14:20:24.182Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4c73cbdff1119d088ed16d63def59ad32b11b18f","lessThan":"4f2c95015ec2a1899161be6c0bdaecedd5a7bfb2","status":"affected","versionType":"git"},{"version":"4c73cbdff1119d088ed16d63def59ad32b11b18f","lessThan":"0bf567d6d9ffe09e059bbdfb4d07143cef42c75c","status":"affected","versionType":"git"},{"version":"4c73cbdff1119d088ed16d63def59ad32b11b18f","lessThan":"085195aa90a924c79e35569bcdad860d764a8e17","status":"affected","versionType":"git"},{"version":"4c73cbdff1119d088ed16d63def59ad32b11b18f","lessThan":"baa6b7eb8c66486bd64608adc63fe03b30d3c0b9","status":"affected","versionType":"git"},{"version":"4c73cbdff1119d088ed16d63def59ad32b11b18f","lessThan":"c0882c366418bf9c19e1ba7f270fe377a9bf5d67","status":"affected","versionType":"git"},{"version":"4c73cbdff1119d088ed16d63def59ad32b11b18f","lessThan":"70fbfc47a392b98e5f8dba70c6efc6839205c982","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.3","status":"affected"},{"version":"0","lessThan":"5.3","status":"unaffected","versionType":"semver"},{"version":"5.10.211","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.150","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.80","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.19","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.7.7","lessThanOrEqual":"6.7.*","status":"unaffected","versionType":"semver"},{"version":"6.8","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-415"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/4f2c95015ec2a1899161be6c0bdaecedd5a7bfb2","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/0bf567d6d9ffe09e059bbdfb4d07143cef42c75c","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/085195aa90a924c79e35569bcdad860d764a8e17","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/baa6b7eb8c66486bd64608adc63fe03b30d3c0b9","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/c0882c366418bf9c19e1ba7f270fe377a9bf5d67","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/70fbfc47a392b98e5f8dba70c6efc6839205c982","tags":["x_transferred","Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["x_transferred","Mailing List","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26846.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26846","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00218,"epssPercentile":0.12384,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-26846","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26846","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-26846","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-26846","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}