CVE-2024-26846

Source
https://nvd.nist.gov/vuln/detail/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:15:10Z
Modified
2025-08-09T19:01:28Z
Summary
[none]
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.

References

Affected packages