In the Linux kernel, the following vulnerability has been resolved: nvme-fc: use lock accessing port_state and rport state nvme_fc_unregister_remote… (CVE-2025-40342)
A race condition vulnerability in the Linux kernel's nvme-fc driver was resolved. The issue involves improper locking when accessing port_state and rport state during remote port unregistration and association creation. This race can lead to inconsistent state changes in the NVMe over Fabrics Fibre Channel (nvme-fc) subsystem.
AI Analysis
Technical Summary
The vulnerability in the Linux kernel's nvme-fc driver arises because nvme_fc_unregister_remote removes a remote port from a local port object without proper synchronization. Concurrently, nvme_fc_create_association does not take a lock when checking port_state and incrementing the active count on the remote port, leading to a race condition. This can cause corruption or inconsistent state in the NVMe over Fabrics Fibre Channel subsystem.
Potential Impact
Successful exploitation could lead to high impact on confidentiality, integrity, and availability of the affected system due to inconsistent or corrupted state in the NVMe over Fabrics Fibre Channel driver. This may result in denial of service or potential data corruption.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to properly use locking when accessing port_state and rport state in the nvme-fc driver. Users should apply the official kernel updates that include this fix. Patch status is not explicitly confirmed in the provided data; check the vendor or Linux kernel advisories for the exact fixed versions and update accordingly.
In the Linux kernel, the following vulnerability has been resolved: nvme-fc: use lock accessing port_state and rport state nvme_fc_unregister_remote… (CVE-2025-40342)
Description
A race condition vulnerability in the Linux kernel's nvme-fc driver was resolved. The issue involves improper locking when accessing port_state and rport state during remote port unregistration and association creation. This race can lead to inconsistent state changes in the NVMe over Fabrics Fibre Channel (nvme-fc) subsystem.
CVSS v3.1
Score 8.8high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel's nvme-fc driver arises because nvme_fc_unregister_remote removes a remote port from a local port object without proper synchronization. Concurrently, nvme_fc_create_association does not take a lock when checking port_state and incrementing the active count on the remote port, leading to a race condition. This can cause corruption or inconsistent state in the NVMe over Fabrics Fibre Channel subsystem.
Potential Impact
Successful exploitation could lead to high impact on confidentiality, integrity, and availability of the affected system due to inconsistent or corrupted state in the NVMe over Fabrics Fibre Channel driver. This may result in denial of service or potential data corruption.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to properly use locking when accessing port_state and rport state in the nvme-fc driver. Users should apply the official kernel updates that include this fix. Patch status is not explicitly confirmed in the provided data; check the vendor or Linux kernel advisories for the exact fixed versions and update accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-gvgm-wg7j-vj8f
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-40342"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6b72d49c2644c7f8478c3b
Added to database: 07/30/2026, 15:50:44 UTC
Last enriched: 07/30/2026, 17:54:16 UTC
Last updated: 09/10/2026, 19:38:45 UTC
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.