{"id":"CVE-2025-40343","summary":"nvmet-fc: avoid scheduling association deletion twice","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet-fc: avoid scheduling association deletion twice\n\nWhen forcefully shutting down a port via the configfs interface,\nnvmet_port_subsys_drop_link() first calls nvmet_port_del_ctrls() and\nthen nvmet_disable_port(). Both functions will eventually schedule all\nremaining associations for deletion.\n\nThe current implementation checks whether an association is about to be\nremoved, but only after the work item has already been scheduled. As a\nresult, it is possible for the first scheduled work item to free all\nresources, and then for the same work item to be scheduled again for\ndeletion.\n\nBecause the association list is an RCU list, it is not possible to take\na lock and remove the list entry directly, so it cannot be looked up\nagain. Instead, a flag (terminating) must be used to determine whether\nthe association is already in the process of being deleted.","modified":"2026-04-02T12:48:22.486209Z","published":"2025-12-09T04:10:00.973Z","related":["MGASA-2026-0017","MGASA-2026-0018","SUSE-SU-2026:0278-1","SUSE-SU-2026:0281-1","SUSE-SU-2026:0293-1","SUSE-SU-2026:0315-1","SUSE-SU-2026:20207-1","SUSE-SU-2026:20220-1","SUSE-SU-2026:20228-1","SUSE-SU-2026:20477-1","SUSE-SU-2026:20498-1","SUSE-SU-2026:20845-1","SUSE-SU-2026:20876-1","openSUSE-SU-2026:20145-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40343.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/04d17540ef51e2c291eb863ca87fd332259b2d40"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2f4852db87e25d4e226b25cb6f652fef9504360e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/601ed47b2363c24d948d7bac0c23abc8bd459570"},{"type":"WEB","url":"https://git.kernel.org/stable/c/85e2ce1920cb511d57aae59f0df6ff85b28bf04d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c09ac9a63fc3aaf4670ad7b5e4f5afd764424154"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f2537be4f8421f6495edfa0bc284d722f253841d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40343.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40343"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a07b4970f464f13640e28e16dad6cfa33647cc99"},{"fixed":"2f4852db87e25d4e226b25cb6f652fef9504360e"},{"fixed":"85e2ce1920cb511d57aae59f0df6ff85b28bf04d"},{"fixed":"601ed47b2363c24d948d7bac0c23abc8bd459570"},{"fixed":"04d17540ef51e2c291eb863ca87fd332259b2d40"},{"fixed":"c09ac9a63fc3aaf4670ad7b5e4f5afd764424154"},{"fixed":"f2537be4f8421f6495edfa0bc284d722f253841d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40343.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.8.0"},{"fixed":"5.15.197"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.159"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.58"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40343.json"}}],"schema_version":"1.7.5"}