CVE-2024-36952

scsi: lpfc: Move NPIV's transport unregistration to after resource clean up

MEDIUM 4.7

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 13 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: scsi: lpfc: Move NPIV's transport unregistration to after resource clean up There are cases after NPIV deletion where the fabric switch still believes the NPIV is logged into the fabric. This occurs when a vport is unregistered before the Remove All DA_ID CT and LOGO ELS are sent to the fabric. Currently fc_remove_host(), which calls dev_loss_tmo for all D_IDs including the fabric D_ID, removes the last ndlp reference and frees the ndlp rport object. This sometimes causes the race condition where the final DA_ID and LOGO are skipped from being sent to the fabric switch. Fix by moving the fc_remove_host() and scsi_remove_host() calls after DA_ID and LOGO are sent.

Weaknesses (CWE)

  • CWE-459 — Incomplete Cleanup

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 4.7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 92d7f7b0cde3ad2260e7462b40867b57efd49851 < f2c7f029051edc4b394bb48edbe2297575abefe0 ; affected 92d7f7b0cde3ad2260e7462b40867b57efd49851 < 0936809d968ecf81e0726fbd02ff2a5732d960c3 ; affected 92d7f7b0cde3ad2260e7462b40867b57efd49851 < 76337eb8daee32bcc67742efab3168ed4ca299d0 ; affected 92d7f7b0cde3ad2260e7462b40867b57efd49851 < 718602cd15f4c5710850090ea3066a89eeb46278 ; affected 92d7f7b0cde3ad2260e7462b40867b57efd49851 < 4ddf01f2f1504fa08b766e8cfeec558e9f8eef6c
Linux · Linuxaffected 2.6.23 ; unaffected 0 < 2.6.23 ; unaffected 5.15.159 ≤ 5.15.* ; unaffected 6.1.91 ≤ 6.1.* ; unaffected 6.6.31 ≤ 6.6.* ; unaffected 6.8.10 ≤ 6.8.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD