CVE-2024-26846
nvme-fc: do not wait in vain when unloading module
Check your servers for CVE-2024-26846
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-26846 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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 nvme_delete_ctrl and ida_destroy has been added by the initial commit.
There is some logic around trying to prevent from hanging forever in wait_for_completion, 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 nvme_delete_ctrl path, all IDs will be freed eventually. This makes calling ida_destroy unnecessary. We only have to ensure that all nvme_delete_ctrl code has been executed before we leave nvme_fc_exit_module. This is done by flushing the nvme_delete_wq workqueue.
While at it, remove the unused nvme_fc_wq workqueue too.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- high: the attacker needs an administrative account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.2% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 19 Apr 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-415 Double Free
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 4c73cbdff1119d088ed16d63def59ad32b11b18f, before 4f2c95015ec2a1899161be6c0bdaecedd5a7bfb2 affected from 4c73cbdff1119d088ed16d63def59ad32b11b18f, before 0bf567d6d9ffe09e059bbdfb4d07143cef42c75c affected from 4c73cbdff1119d088ed16d63def59ad32b11b18f, before 085195aa90a924c79e35569bcdad860d764a8e17 affected from 4c73cbdff1119d088ed16d63def59ad32b11b18f, before baa6b7eb8c66486bd64608adc63fe03b30d3c0b9 affected from 4c73cbdff1119d088ed16d63def59ad32b11b18f, before c0882c366418bf9c19e1ba7f270fe377a9bf5d67 affected from 4c73cbdff1119d088ed16d63def59ad32b11b18f, before 70fbfc47a392b98e5f8dba70c6efc6839205c982
Other versions: unaffected
|
| Linux |
affected 5.3 unaffected before 5.3 unaffected from 5.10.211 up to and including 5.10.* unaffected from 5.15.150 up to and including 5.15.* unaffected from 6.1.80 up to and including 6.1.* unaffected from 6.6.19 up to and including 6.6.* unaffected from 6.7.7 up to and including 6.7.* unaffected 6.8 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-26846 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-26846
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-26846
trivy image --scanners vuln IMAGE | grep CVE-2024-26846
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/4f2c95015ec2a1899161be6c0bdaecedd5a7bfb2 git.kernel.org
- https://git.kernel.org/stable/c/0bf567d6d9ffe09e059bbdfb4d07143cef42c75c git.kernel.org
- https://git.kernel.org/stable/c/085195aa90a924c79e35569bcdad860d764a8e17 git.kernel.org
- https://git.kernel.org/stable/c/baa6b7eb8c66486bd64608adc63fe03b30d3c0b9 git.kernel.org
- https://git.kernel.org/stable/c/c0882c366418bf9c19e1ba7f270fe377a9bf5d67 git.kernel.org
- https://git.kernel.org/stable/c/70fbfc47a392b98e5f8dba70c6efc6839205c982 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html lists.debian.org
Source: the record CVE-2024-26846 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse