{"id":"CVE-2025-40342","summary":"nvme-fc: use lock accessing port_state and rport state","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvme-fc: use lock accessing port_state and rport state\n\nnvme_fc_unregister_remote removes the remote port on a lport object at\nany point in time when there is no active association. This races with\nwith the reconnect logic, because nvme_fc_create_association is not\ntaking a lock to check the port_state and atomically increase the\nactive count on the rport.","modified":"2026-03-31T17:30:03.759412Z","published":"2025-12-09T04:09:59.673Z","related":["MGASA-2026-0017","MGASA-2026-0018","SUSE-SU-2026:0278-1","SUSE-SU-2026:0281-1","SUSE-SU-2026:0293-1","SUSE-SU-2026:0315-1","SUSE-SU-2026:1078-1","SUSE-SU-2026:20207-1","SUSE-SU-2026:20220-1","SUSE-SU-2026:20228-1","SUSE-SU-2026:20477-1","SUSE-SU-2026:20498-1","SUSE-SU-2026:20845-1","SUSE-SU-2026:20876-1","openSUSE-SU-2026:20145-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40342.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/25f4bf1f7979a7871974fd36c79d69ff1cf4b446"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4253e0a4546138a2bf9cb6acf66b32fee677fc7c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/891cdbb162ccdb079cd5228ae43bdeebce8597ad"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9950af4303942081dc8c7a5fdc3688c17c7eb6c0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a2f7fa75c4a2a07328fa22ccbef461db76790b55"},{"type":"WEB","url":"https://git.kernel.org/stable/c/de3d91af47bc015031e7721b100a29989f6498a5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e8cde03de8674b05f2c5e0870729049eba517800"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40342.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40342"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e399441de9115cd472b8ace6c517708273ca7997"},{"fixed":"de3d91af47bc015031e7721b100a29989f6498a5"},{"fixed":"e8cde03de8674b05f2c5e0870729049eba517800"},{"fixed":"4253e0a4546138a2bf9cb6acf66b32fee677fc7c"},{"fixed":"25f4bf1f7979a7871974fd36c79d69ff1cf4b446"},{"fixed":"9950af4303942081dc8c7a5fdc3688c17c7eb6c0"},{"fixed":"a2f7fa75c4a2a07328fa22ccbef461db76790b55"},{"fixed":"891cdbb162ccdb079cd5228ae43bdeebce8597ad"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40342.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.10.0"},{"fixed":"5.10.247"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.197"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.159"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.58"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40342.json"}}],"schema_version":"1.7.5"}