CVE-2025-40343
nvmet-fc: avoid scheduling association deletion twice
Check your servers for CVE-2025-40343
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-2025-40343 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:
nvmet-fc: avoid scheduling association deletion twice
When forcefully shutting down a port via the configfs interface, nvmet_port_subsys_drop_link() first calls nvmet_port_del_ctrls() and then nvmet_disable_port(). Both functions will eventually schedule all remaining associations for deletion.
The current implementation checks whether an association is about to be removed, but only after the work item has already been scheduled. As a result, it is possible for the first scheduled work item to free all resources, and then for the same work item to be scheduled again for deletion.
Because the association list is an RCU list, it is not possible to take a lock and remove the list entry directly, so it cannot be looked up again. Instead, a flag (terminating) must be used to determine whether the association is already in the process of being deleted.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.70%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 54.5% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 15 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- total: full control of the component or of its data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from a07b4970f464f13640e28e16dad6cfa33647cc99, before 2f4852db87e25d4e226b25cb6f652fef9504360e affected from a07b4970f464f13640e28e16dad6cfa33647cc99, before 85e2ce1920cb511d57aae59f0df6ff85b28bf04d affected from a07b4970f464f13640e28e16dad6cfa33647cc99, before 601ed47b2363c24d948d7bac0c23abc8bd459570 affected from a07b4970f464f13640e28e16dad6cfa33647cc99, before 04d17540ef51e2c291eb863ca87fd332259b2d40 affected from a07b4970f464f13640e28e16dad6cfa33647cc99, before c09ac9a63fc3aaf4670ad7b5e4f5afd764424154 affected from a07b4970f464f13640e28e16dad6cfa33647cc99, before f2537be4f8421f6495edfa0bc284d722f253841d
Other versions: unaffected
|
| Linux |
affected 4.8 unaffected before 4.8 unaffected from 5.15.197 up to and including 5.15.* unaffected from 6.1.159 up to and including 6.1.* unaffected from 6.6.117 up to and including 6.6.* unaffected from 6.12.58 up to and including 6.12.* unaffected from 6.17.8 up to and including 6.17.* unaffected 6.18 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-2025-40343 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40343
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-2025-40343
trivy image --scanners vuln IMAGE | grep CVE-2025-40343
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/2f4852db87e25d4e226b25cb6f652fef9504360e git.kernel.org
- https://git.kernel.org/stable/c/85e2ce1920cb511d57aae59f0df6ff85b28bf04d git.kernel.org
- https://git.kernel.org/stable/c/601ed47b2363c24d948d7bac0c23abc8bd459570 git.kernel.org
- https://git.kernel.org/stable/c/04d17540ef51e2c291eb863ca87fd332259b2d40 git.kernel.org
- https://git.kernel.org/stable/c/c09ac9a63fc3aaf4670ad7b5e4f5afd764424154 git.kernel.org
- https://git.kernel.org/stable/c/f2537be4f8421f6495edfa0bc284d722f253841d git.kernel.org
Source: the record CVE-2025-40343 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse