CVE-2025-40342 Details
Description
In the Linux kernel, the following vulnerability has been resolved: nvme-fc: use lock accessing port_state and rport state nvme_fc_unregister_remote removes the remote port on a lport object at any point in time when there is no active association. This races with with the reconnect logic, because nvme_fc_create_association is not taking a lock to check the port_state and atomically increase the active count on the rport.
A race condition vulnerability has been identified in the Linux kernel's NVMe over Fibre Channel (FC) implementation. The issue arises in the 'nvme_fc_create_association' function, where the port state is checked without proper locking, leading to a potential mismatch with the reconnect logic. Specifically, 'nvme_fc_unregister_remote' can remove a remote port at any time when there is no active association, creating a race with the reconnection process. This vulnerability affects the stable versions of the Linux kernel.
Users can upgrade to the latest stable version of the Linux kernel, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 9, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/25f4bf1f7979a7871974fd36c79d69ff1cf4b446 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/4253e0a4546138a2bf9cb6acf66b32fee677fc7c | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/891cdbb162ccdb079cd5228ae43bdeebce8597ad | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/9950af4303942081dc8c7a5fdc3688c17c7eb6c0 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/a2f7fa75c4a2a07328fa22ccbef461db76790b55 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/de3d91af47bc015031e7721b100a29989f6498a5 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/e8cde03de8674b05f2c5e0870729049eba517800 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 9, 2025 | New CVE Received | kernel.org |
Volerion