CVE-2025-40342

nvme-fc: use lock accessing port_state and rport state

State
Published
Severity
8.8 High
Published
Dec 9, 2025
Updated
Aug 5, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • e399441de9115cd472b8ace6c517708273ca7997 to before de3d91af47bc015031e7721b100a29989f6498a5Affected
  • e399441de9115cd472b8ace6c517708273ca7997 to before e8cde03de8674b05f2c5e0870729049eba517800Affected
  • e399441de9115cd472b8ace6c517708273ca7997 to before 4253e0a4546138a2bf9cb6acf66b32fee677fc7cAffected
  • e399441de9115cd472b8ace6c517708273ca7997 to before 25f4bf1f7979a7871974fd36c79d69ff1cf4b446Affected
  • e399441de9115cd472b8ace6c517708273ca7997 to before 9950af4303942081dc8c7a5fdc3688c17c7eb6c0Affected
  • e399441de9115cd472b8ace6c517708273ca7997 to before a2f7fa75c4a2a07328fa22ccbef461db76790b55Affected
  • e399441de9115cd472b8ace6c517708273ca7997 to before 891cdbb162ccdb079cd5228ae43bdeebce8597adAffected
LinuxLinux
  • 4.10Affected
  • before 4.10Not affected
  • 5.10.247 through 5.10.*Not affected
  • 5.15.197 through 5.15.*Not affected
  • 6.1.159 through 6.1.*Not affected
  • 6.6.117 through 6.6.*Not affected
  • 6.12.58 through 6.12.*Not affected
  • 6.17.8 through 6.17.*Not affected
  • 6.18 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.