CVE-2025-40343

Source
https://cve.org/CVERecord?id=CVE-2025-40343
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40343.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40343
Downstream
Related
Published
2025-12-09T04:10:00.973Z
Modified
2026-03-20T12:43:16.464681Z
Summary
nvmet-fc: avoid scheduling association deletion twice
Details

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, nvmetportsubsysdroplink() first calls nvmetportdelctrls() and then nvmetdisable_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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40343.json"
}
References

Affected packages

Git / 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/osv-test-cve-osv-conversion/osv-output/CVE-2025-40343.json"

Linux / Kernel

Package

Name
Kernel

Affected 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/osv-test-cve-osv-conversion/osv-output/CVE-2025-40343.json"