{"id":"CVE-2025-40342","aliases":["CVE-2025-40342"],"related":[],"kind":"vulnerability","state":"published","title":"nvme-fc: use lock accessing port_state and rport state","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad:\n\nnvme-fc: usar bloqueo al acceder al estado del puerto y al estado del rport\n\nnvme_fc_unregister_remote elimina el puerto remoto en un objeto lport en cualquier momento cuando no hay una asociación activa. Esto genera una condición de carrera con la lógica de reconexión, porque nvme_fc_create_association no está tomando un bloqueo para verificar el estado del puerto y aumentar atómicamente el recuento activo en el rport.","source":"nvd"}],"published":"2025-12-09T04:09:59.673Z","modified":"2026-10-14T21:10:00.183Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e399441de9115cd472b8ace6c517708273ca7997","fixed":"de3d91af47bc015031e7721b100a29989f6498a5","status":"affected"},{"type":"git","introduced":"e399441de9115cd472b8ace6c517708273ca7997","fixed":"e8cde03de8674b05f2c5e0870729049eba517800","status":"affected"},{"type":"git","introduced":"e399441de9115cd472b8ace6c517708273ca7997","fixed":"4253e0a4546138a2bf9cb6acf66b32fee677fc7c","status":"affected"},{"type":"git","introduced":"e399441de9115cd472b8ace6c517708273ca7997","fixed":"25f4bf1f7979a7871974fd36c79d69ff1cf4b446","status":"affected"},{"type":"git","introduced":"e399441de9115cd472b8ace6c517708273ca7997","fixed":"9950af4303942081dc8c7a5fdc3688c17c7eb6c0","status":"affected"},{"type":"git","introduced":"e399441de9115cd472b8ace6c517708273ca7997","fixed":"a2f7fa75c4a2a07328fa22ccbef461db76790b55","status":"affected"},{"type":"git","introduced":"e399441de9115cd472b8ace6c517708273ca7997","fixed":"891cdbb162ccdb079cd5228ae43bdeebce8597ad","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.10","status":"unaffected"},{"type":"semver","introduced":"5.10.247","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.197","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.159","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.117","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.58","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.8","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/de3d91af47bc015031e7721b100a29989f6498a5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e8cde03de8674b05f2c5e0870729049eba517800","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4253e0a4546138a2bf9cb6acf66b32fee677fc7c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/25f4bf1f7979a7871974fd36c79d69ff1cf4b446","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9950af4303942081dc8c7a5fdc3688c17c7eb6c0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a2f7fa75c4a2a07328fa22ccbef461db76790b55","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/891cdbb162ccdb079cd5228ae43bdeebce8597ad","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40342","url":"https://www.cve.org/CVERecord?id=CVE-2025-40342","licence":"CVE Terms of Use","modified":"2026-08-05T12:09:44.878Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40342","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40342","licence":"Public domain","modified":"2026-10-14T21:10:00.183Z"}],"updatedAt":"2026-11-25T22:59:08.476Z","epss":{"score":0.00395,"percentile":0.35861,"date":"2026-12-01T12:00:22.000Z"}}