CVE Catalog

CVE-2025-40343

CriticalCVSS 9.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.58%

44th percentile - higher than 44% of all known CVEs

Summary

In the Linux kernel's nvmet-fc module, a double scheduling of association deletion was found. When forcefully shutting down a port via configfs, both nvmet_port_del_ctrls() and nvmet_disable_port() can schedule the same association for deletion, leading to double resource freeing.

Risk Assessment

The organization is at risk of memory corruption and system crashes due to double freeing of association resources.

Recommendation

Update the Linux kernel to a version containing the fix that adds a 'terminating' flag to prevent double scheduling of deletion.

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS