All reports
Medium

kernel: nvme-fc: use lock accessing port_state and rport state

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-40342

Probability of exploitation in the next 30 days: 0.40%

FIRST EPSS · 2026-11-22

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 flaw was found in the Linux kernel's NVMe over Fibre Channel (nvme-fc) driver. This flaw allows a local user to cause a Denial of Service (DoS) and crash the system by triggering a race condition during storage reconnection events. The issue occurs because the driver does not use appropriate locking when accessing port state information during remote port unregistration and association creation.