# CVE-2025-40343: nvmet-fc: avoid scheduling association deletion twice

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Published: 2025-12-09T04:10:00.973Z
- Modified: 2026-10-15T22:19:08.927Z
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from a07b4970f464f13640e28e16dad6cfa33647cc99 before 2f4852db87e25d4e226b25cb6f652fef9504360e; from a07b4970f464f13640e28e16dad6cfa33647cc99 before 85e2ce1920cb511d57aae59f0df6ff85b28bf04d; from a07b4970f464f13640e28e16dad6cfa33647cc99 before 601ed47b2363c24d948d7bac0c23abc8bd459570; from a07b4970f464f13640e28e16dad6cfa33647cc99 before 04d17540ef51e2c291eb863ca87fd332259b2d40; from a07b4970f464f13640e28e16dad6cfa33647cc99 before c09ac9a63fc3aaf4670ad7b5e4f5afd764424154; from a07b4970f464f13640e28e16dad6cfa33647cc99 before f2537be4f8421f6495edfa0bc284d722f253841d; 4.8 (not affected: before 4.8; from 5.15.197 up to 5.15.*; from 6.1.159 up to 6.1.*; from 6.6.117 up to 6.6.*; from 6.12.58 up to 6.12.*; from 6.17.8 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/2f4852db87e25d4e226b25cb6f652fef9504360e>
- <https://git.kernel.org/stable/c/85e2ce1920cb511d57aae59f0df6ff85b28bf04d>
- <https://git.kernel.org/stable/c/601ed47b2363c24d948d7bac0c23abc8bd459570>
- <https://git.kernel.org/stable/c/04d17540ef51e2c291eb863ca87fd332259b2d40>
- <https://git.kernel.org/stable/c/c09ac9a63fc3aaf4670ad7b5e4f5afd764424154>
- <https://git.kernel.org/stable/c/f2537be4f8421f6495edfa0bc284d722f253841d>

## Sources

- CVE List: [CVE-2025-40343](https://www.cve.org/CVERecord?id=CVE-2025-40343), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-40343](https://nvd.nist.gov/vuln/detail/CVE-2025-40343), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-40343 · Whole record: https://cve.day/CVE-2025-40343.json · Rebuilt by cve.day 2026-11-25T22:59:08.477Z
