{"id":"CVE-2024-36952","summary":"scsi: lpfc: Move NPIV's transport unregistration to after resource clean up","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: lpfc: Move NPIV's transport unregistration to after resource clean up\n\nThere are cases after NPIV deletion where the fabric switch still believes\nthe NPIV is logged into the fabric.  This occurs when a vport is\nunregistered before the Remove All DA_ID CT and LOGO ELS are sent to the\nfabric.\n\nCurrently fc_remove_host(), which calls dev_loss_tmo for all D_IDs including\nthe fabric D_ID, removes the last ndlp reference and frees the ndlp rport\nobject.  This sometimes causes the race condition where the final DA_ID and\nLOGO are skipped from being sent to the fabric switch.\n\nFix by moving the fc_remove_host() and scsi_remove_host() calls after DA_ID\nand LOGO are sent.","modified":"2026-03-20T12:36:53.790427Z","published":"2024-05-30T15:35:47.477Z","related":["ALSA-2024:4928","MGASA-2024-0263","MGASA-2024-0266","SUSE-SU-2024:2008-1","SUSE-SU-2024:2019-1","SUSE-SU-2024:2190-1","SUSE-SU-2024:2561-1","SUSE-SU-2024:2571-1","SUSE-SU-2024:2894-1","SUSE-SU-2024:2896-1","SUSE-SU-2024:2901-1","SUSE-SU-2024:2940-1","SUSE-SU-2024:2947-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36952.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0936809d968ecf81e0726fbd02ff2a5732d960c3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4ddf01f2f1504fa08b766e8cfeec558e9f8eef6c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/718602cd15f4c5710850090ea3066a89eeb46278"},{"type":"WEB","url":"https://git.kernel.org/stable/c/76337eb8daee32bcc67742efab3168ed4ca299d0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f2c7f029051edc4b394bb48edbe2297575abefe0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36952.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36952"},{"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":"92d7f7b0cde3ad2260e7462b40867b57efd49851"},{"fixed":"f2c7f029051edc4b394bb48edbe2297575abefe0"},{"fixed":"0936809d968ecf81e0726fbd02ff2a5732d960c3"},{"fixed":"76337eb8daee32bcc67742efab3168ed4ca299d0"},{"fixed":"718602cd15f4c5710850090ea3066a89eeb46278"},{"fixed":"4ddf01f2f1504fa08b766e8cfeec558e9f8eef6c"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-36952.json"}}],"schema_version":"1.7.5"}