CVE-2025-40342
published high CVSS 3.1 · 8.8nvme-fc: use lock accessing port_state and rport state
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxe399441de9115cd472b8ace6c517708273ca7997 to < de3d91af47bc015031e7721b100a29989f6498a5 · e399441de9115cd472b8ace6c517708273ca7997 to < e8cde03de8674b05f2c5e0870729049eba517800 · e399441de9115cd472b8ace6c517708273ca7997 to < 4253e0a4546138a2bf9cb6acf66b32fee677fc7c · e399441de9115cd472b8ace6c517708273ca7997 to < 25f4bf1f7979a7871974fd36c79d69ff1cf4b446 · e399441de9115cd472b8ace6c517708273ca7997 to < 9950af4303942081dc8c7a5fdc3688c17c7eb6c0 · e399441de9115cd472b8ace6c517708273ca7997 to < a2f7fa75c4a2a07328fa22ccbef461db76790b55 · e399441de9115cd472b8ace6c517708273ca7997 to < 891cdbb162ccdb079cd5228ae43bdeebce8597ad · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.10 (affected) · 0 to < 4.10 (unaffected · semver) · 5.10.247 through 5.10.* (unaffected · semver) · 5.15.197 through 5.15.* (unaffected · semver) · 6.1.159 through 6.1.* (unaffected · semver) · 6.6.117 through 6.6.* (unaffected · semver) · 6.12.58 through 6.12.* (unaffected · semver) · 6.17.8 through 6.17.* (unaffected · semver) · 6.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bullseye | linux | Advisory build | 5.10.247-1 | DLA-4404-1 |
| Oracle Linux | 10 | kernel-uekaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.159-1~deb11u1 | DLA-4436-1 |
| Oracle Linux | 10 | kernel-uekx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 10 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-usbaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-usbx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-toolsaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek-toolsx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64kaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-develaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modulesaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-desktopaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-extraaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-usbaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 10 | kernel-uek64k-modules-wirelessaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el10uek | ELSA-2026-50006 |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uekaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uekx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-corex86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-debugaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-debugx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-debug-coreaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-debug-corex86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-develaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-develx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-docaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-docx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-modulesaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-modulesx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-modules-extraaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-modules-extrax86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uekaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uekaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uekx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uekx86_64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
| Oracle Linux | 9 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-107.59.3.2.el9uek | ELSA-2026-50006 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:A - Both halves of the race are driven by a remote NVMe-FC peer over the Fibre Channel fabric — target logout/RSCN triggers `nvme_fc_unregister_remoteport()` while association failure triggers the host's reconnect worker — so no host access is needed, but FC/FCoE is a limited, non-routable storage network requiring the attacker to be attached to the same fabric. AC:L - The attacker controls both sides of the race and can repeat login/logout plus association-failure cycles indefinitely, and the host's reconnect logic re-enters `nvme_fc_create_association()` automatically on every cycle, so the window is hit reliably given enough iterations. PR:N - FC-NVMe performs no peer authentication — fabric zoning is the only access control — so a rogue or compromised port on the SAN needs no credentials or account on the victim host to drive the port-state transitions. UI:N - The reconnect path runs entirely in kernel workqueue context (`nvme_fc_connect_ctrl_work`) in response to fabric events; no administrator or user action on the victim is required. S:U - The corruption is confined to kernel objects owned by the nvme-fc transport and the FC HBA driver within the same security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - The double `remoteport_delete()` causes a refcount underflow and premature free of the LLDD node structure (lpfc `ndlp`, qla2xxx `fcport`) while the transport continues to dereference it, and such a use-after-free on a heap object gives an attacker able to groom the slab an arbitrary kernel read primitive. I:H - The same use-after-free/double-put lets a reclaimed allocation be written through stale transport pointers and function-pointer-bearing structures (`lport->ops`, `rport->ndlp`), which is exploitable for arbitrary write and control-flow hijack. A:H - Even unweaponized, the double free and continued use of a torn-down remote port reliably produce kref underflow warnings, KASAN use-after-free splats, and kernel panics, taking down storage-attached hosts.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | e399441de9115cd472b8ace6c517708273ca7997 to < de3d91af47bc015031e7721b100a29989f6498a5 (affected · git)e399441de9115cd472b8ace6c517708273ca7997 to < e8cde03de8674b05f2c5e0870729049eba517800 (affected · git)e399441de9115cd472b8ace6c517708273ca7997 to < 4253e0a4546138a2bf9cb6acf66b32fee677fc7c (affected · git)e399441de9115cd472b8ace6c517708273ca7997 to < 25f4bf1f7979a7871974fd36c79d69ff1cf4b446 (affected · git)e399441de9115cd472b8ace6c517708273ca7997 to < 9950af4303942081dc8c7a5fdc3688c17c7eb6c0 (affected · git)e399441de9115cd472b8ace6c517708273ca7997 to < a2f7fa75c4a2a07328fa22ccbef461db76790b55 (affected · git)e399441de9115cd472b8ace6c517708273ca7997 to < 891cdbb162ccdb079cd5228ae43bdeebce8597ad (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.10 (affected)0 to < 4.10 (unaffected · semver)5.10.247 through 5.10.* (unaffected · semver)5.15.197 through 5.15.* (unaffected · semver)6.1.159 through 6.1.* (unaffected · semver)6.6.117 through 6.6.* (unaffected · semver)6.12.58 through 6.12.* (unaffected · semver)6.17.8 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
7- https://git.kernel.org/stable/c/25f4bf1f7979a7871974fd36c79d69ff1cf4b446
- https://git.kernel.org/stable/c/4253e0a4546138a2bf9cb6acf66b32fee677fc7c
- https://git.kernel.org/stable/c/891cdbb162ccdb079cd5228ae43bdeebce8597ad
- https://git.kernel.org/stable/c/9950af4303942081dc8c7a5fdc3688c17c7eb6c0
- https://git.kernel.org/stable/c/a2f7fa75c4a2a07328fa22ccbef461db76790b55
- https://git.kernel.org/stable/c/de3d91af47bc015031e7721b100a29989f6498a5
- https://git.kernel.org/stable/c/e8cde03de8674b05f2c5e0870729049eba517800
Provider assertions
1Linux · cna
nvme-fc: use lock accessing port_state and rport state
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 460701c4ce7d1e213b0328629f2fc49a9c754937f2ac6a2caf2c261396853db2
- Ingested
- 23 Sep 2026, 08:48:04 UTC
- Source record
- Official CVE record