{"id":"CVE-2025-40343","aliases":["CVE-2025-40343"],"related":[],"kind":"vulnerability","state":"published","title":"nvmet-fc: avoid scheduling association deletion twice","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnvmet-fc: evitar programar la eliminación de asociaciones dos veces\n\nAl apagar forzosamente un puerto a través de la interfaz configfs, nvmet_port_subsys_drop_link() primero llama a nvmet_port_del_ctrls() y luego a nvmet_disable_port(). Ambas funciones eventualmente programarán todas las asociaciones restantes para su eliminación.\n\nLa implementación actual verifica si una asociación está a punto de ser eliminada, pero solo después de que el elemento de trabajo ya ha sido programado. Como resultado, es posible que el primer elemento de trabajo programado libere todos los recursos, y luego que el mismo elemento de trabajo sea programado nuevamente para su eliminación.\n\nDebido a que la lista de asociaciones es una lista RCU, no es posible tomar un bloqueo y eliminar la entrada de la lista directamente, por lo que no se puede buscar de nuevo. En su lugar, una bandera (terminating) debe usarse para determinar si la asociación ya está en proceso de ser eliminada.","source":"nvd"}],"published":"2025-12-09T04:10:00.973Z","modified":"2026-10-15T22:19:08.927Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"a07b4970f464f13640e28e16dad6cfa33647cc99","fixed":"2f4852db87e25d4e226b25cb6f652fef9504360e","status":"affected"},{"type":"git","introduced":"a07b4970f464f13640e28e16dad6cfa33647cc99","fixed":"85e2ce1920cb511d57aae59f0df6ff85b28bf04d","status":"affected"},{"type":"git","introduced":"a07b4970f464f13640e28e16dad6cfa33647cc99","fixed":"601ed47b2363c24d948d7bac0c23abc8bd459570","status":"affected"},{"type":"git","introduced":"a07b4970f464f13640e28e16dad6cfa33647cc99","fixed":"04d17540ef51e2c291eb863ca87fd332259b2d40","status":"affected"},{"type":"git","introduced":"a07b4970f464f13640e28e16dad6cfa33647cc99","fixed":"c09ac9a63fc3aaf4670ad7b5e4f5afd764424154","status":"affected"},{"type":"git","introduced":"a07b4970f464f13640e28e16dad6cfa33647cc99","fixed":"f2537be4f8421f6495edfa0bc284d722f253841d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.8","status":"unaffected"},{"type":"semver","introduced":"5.15.197","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.159","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.117","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.58","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.8","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/2f4852db87e25d4e226b25cb6f652fef9504360e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/85e2ce1920cb511d57aae59f0df6ff85b28bf04d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/601ed47b2363c24d948d7bac0c23abc8bd459570","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/04d17540ef51e2c291eb863ca87fd332259b2d40","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c09ac9a63fc3aaf4670ad7b5e4f5afd764424154","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f2537be4f8421f6495edfa0bc284d722f253841d","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-10-15T21:59:32.826Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40343","url":"https://www.cve.org/CVERecord?id=CVE-2025-40343","licence":"CVE Terms of Use","modified":"2026-10-15T22:02:46.366Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40343","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40343","licence":"Public domain","modified":"2026-10-15T22:19:08.927Z"}],"updatedAt":"2026-11-25T22:59:08.477Z","epss":{"score":0.00703,"percentile":0.54524,"date":"2026-12-01T12:00:22.000Z"}}