{"id":"CVE-2024-36952","state":"PUBLISHED","title":"scsi: lpfc: Move NPIV's transport unregistration to after resource clean up","description":"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.","publishedAt":"2024-05-30T15:35:47.477Z","updatedAt":"2026-05-11T20:17:40.250Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"92d7f7b0cde3ad2260e7462b40867b57efd49851","status":"affected","lessThan":"f2c7f029051edc4b394bb48edbe2297575abefe0","versionType":"git"},{"version":"92d7f7b0cde3ad2260e7462b40867b57efd49851","status":"affected","lessThan":"0936809d968ecf81e0726fbd02ff2a5732d960c3","versionType":"git"},{"version":"92d7f7b0cde3ad2260e7462b40867b57efd49851","status":"affected","lessThan":"76337eb8daee32bcc67742efab3168ed4ca299d0","versionType":"git"},{"version":"92d7f7b0cde3ad2260e7462b40867b57efd49851","status":"affected","lessThan":"718602cd15f4c5710850090ea3066a89eeb46278","versionType":"git"},{"version":"92d7f7b0cde3ad2260e7462b40867b57efd49851","status":"affected","lessThan":"4ddf01f2f1504fa08b766e8cfeec558e9f8eef6c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/lpfc/lpfc_vport.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.23","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.23","versionType":"semver"},{"version":"5.15.159","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.91","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.31","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.8.10","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/lpfc/lpfc_vport.c"]}],"references":["https://git.kernel.org/stable/c/f2c7f029051edc4b394bb48edbe2297575abefe0","https://git.kernel.org/stable/c/0936809d968ecf81e0726fbd02ff2a5732d960c3","https://git.kernel.org/stable/c/76337eb8daee32bcc67742efab3168ed4ca299d0","https://git.kernel.org/stable/c/718602cd15f4c5710850090ea3066a89eeb46278","https://git.kernel.org/stable/c/4ddf01f2f1504fa08b766e8cfeec558e9f8eef6c"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:30.303Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/36xxx/CVE-2024-36952.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-36952","state":"PUBLISHED","datePublished":"2024-05-30T15:35:47.477Z","dateUpdated":"2026-05-11T20:17:40.250Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-05-30T15:25:07.080Z"},"containers":{"cna":{"title":"scsi: lpfc: Move NPIV's transport unregistration to after resource clean up","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"92d7f7b0cde3ad2260e7462b40867b57efd49851","status":"affected","lessThan":"f2c7f029051edc4b394bb48edbe2297575abefe0","versionType":"git"},{"version":"92d7f7b0cde3ad2260e7462b40867b57efd49851","status":"affected","lessThan":"0936809d968ecf81e0726fbd02ff2a5732d960c3","versionType":"git"},{"version":"92d7f7b0cde3ad2260e7462b40867b57efd49851","status":"affected","lessThan":"76337eb8daee32bcc67742efab3168ed4ca299d0","versionType":"git"},{"version":"92d7f7b0cde3ad2260e7462b40867b57efd49851","status":"affected","lessThan":"718602cd15f4c5710850090ea3066a89eeb46278","versionType":"git"},{"version":"92d7f7b0cde3ad2260e7462b40867b57efd49851","status":"affected","lessThan":"4ddf01f2f1504fa08b766e8cfeec558e9f8eef6c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/lpfc/lpfc_vport.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.23","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.23","versionType":"semver"},{"version":"5.15.159","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.91","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.31","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.8.10","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/lpfc/lpfc_vport.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/f2c7f029051edc4b394bb48edbe2297575abefe0"},{"url":"https://git.kernel.org/stable/c/0936809d968ecf81e0726fbd02ff2a5732d960c3"},{"url":"https://git.kernel.org/stable/c/76337eb8daee32bcc67742efab3168ed4ca299d0"},{"url":"https://git.kernel.org/stable/c/718602cd15f4c5710850090ea3066a89eeb46278"},{"url":"https://git.kernel.org/stable/c/4ddf01f2f1504fa08b766e8cfeec558e9f8eef6c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:17:40.250Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.23","versionEndExcluding":"5.15.159"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.23","versionEndExcluding":"6.1.91"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.23","versionEndExcluding":"6.6.31"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.23","versionEndExcluding":"6.8.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.23","versionEndExcluding":"6.9"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-36952","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-06-03T19:01:27.425378Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:47:58.415Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/f2c7f029051edc4b394bb48edbe2297575abefe0","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/0936809d968ecf81e0726fbd02ff2a5732d960c3","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/76337eb8daee32bcc67742efab3168ed4ca299d0","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/718602cd15f4c5710850090ea3066a89eeb46278","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/4ddf01f2f1504fa08b766e8cfeec558e9f8eef6c","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T03:43:50.505Z"}}]}}}