CVE-2024-26846: nvme-fc: do not wait in vain when unloading module
In the Linux kernel, the following vulnerability has been resolved:
nvme-fc: do not wait in vain when unloading module
The Linux kernel CVE team has assigned CVE-2024-26846 to this issue.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024041717-CVE-2024-26846-9593@gregkh/T
Other sources
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 idadestroy 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.
— NVD
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 5.10.211 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 5.15.150 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.1.80 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.6.19 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.7.7 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.8
Event History
Frequently Asked Questions
What is the severity of CVE-2024-26846?
CVE-2024-26846 has been classified as a medium severity vulnerability in the Linux kernel.
How do I fix CVE-2024-26846?
To fix CVE-2024-26846, users should upgrade to the latest kernel versions provided by their system’s package manager as specified in the advisory.
What are the affected Linux kernel versions for CVE-2024-26846?
CVE-2024-26846 affects several versions of the Linux kernel including 5.10.211, 5.15.150, 6.1.80, and 6.6.19.
Is CVE-2024-26846 a patchable vulnerability?
Yes, CVE-2024-26846 is patchable and users are encouraged to apply the relevant updates.
What types of systems are vulnerable to CVE-2024-26846?
Vulnerable systems include those running affected versions of the Linux kernel, particularly on Red Hat and Debian distributions.