CVE-2024-26846

Source
https://cve.org/CVERecord?id=CVE-2024-26846
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26846.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-26846
Downstream
Related
Published
2024-04-17T10:10:09.964Z
Modified
2026-03-14T12:30:01.478044Z
Severity
  • 4.4 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
nvme-fc: do not wait in vain when unloading module
Details

In the Linux kernel, the following vulnerability has been resolved:

nvme-fc: do not wait in vain when unloading module

The module exit path has race between deleting all controllers and freeing 'left over IDs'. To prevent double free a synchronization between nvmedeletectrl and ida_destroy has been added by the initial commit.

There is some logic around trying to prevent from hanging forever in waitforcompletion, though it does not handling all cases. E.g. blktests is able to reproduce the situation where the module unload hangs forever.

If we completely rely on the cleanup code executed from the nvmedeletectrl path, all IDs will be freed eventually. This makes calling idadestroy unnecessary. We only have to ensure that all nvmedeletectrl code has been executed before we leave nvmefcexitmodule. This is done by flushing the nvmedeletewq workqueue.

While at it, remove the unused nvmefcwq workqueue too.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26846.json"
}
References

Affected packages

Git / 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/cve-osv-conversion/osv-output/CVE-2024-26846.json"