{"id":"CVE-2022-49535","published":"2025-02-26T02:13:53Z","modified":"2026-08-05T08:55:30Z","title":"scsi: lpfc: Fix null pointer dereference after failing to issue FLOGI and PLOGI","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: lpfc: Fix null pointer dereference after failing to issue FLOGI and PLOGI\n\nIf lpfc_issue_els_flogi() fails and returns non-zero status, the node\nreference count is decremented to trigger the release of the nodelist\nstructure. However, if there is a prior registration or dev-loss-evt work\npending, the node may be released prematurely.  When dev-loss-evt\ncompletes, the released node is referenced causing a use-after-free null\npointer dereference.\n\nSimilarly, when processing non-zero ELS PLOGI completion status in\nlpfc_cmpl_els_plogi(), the ndlp flags are checked for a transport\nregistration before triggering node removal.  If dev-loss-evt work is\npending, the node may be released prematurely and a subsequent call to\nlpfc_dev_loss_tmo_handler() results in a use after free ndlp dereference.\n\nAdd test for pending dev-loss before decrementing the node reference count\nfor FLOGI, PLOGI, PRLI, and ADISC handling.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00354,"percentile":0.29933,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/c7dc74ab7975c9b96284abfe4cca756d75fa4604","tags":[]},{"url":"https://git.kernel.org/stable/c/10663ebec0ad5c78493a0dd34c9ee4d73d7ca0df","tags":[]},{"url":"https://git.kernel.org/stable/c/577a942df3de2666f6947bdd3a5c9e8d30073424","tags":[]}],"priority":{"score":12.1,"factors":[{"name":"EPSS percentile","points":5.99},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 52edb2caf675684acf2140a125de4774c691fecd, < c7dc74ab7975c9b96284abfe4cca756d75fa4604",">= 52edb2caf675684acf2140a125de4774c691fecd, < 10663ebec0ad5c78493a0dd34c9ee4d73d7ca0df",">= 52edb2caf675684acf2140a125de4774c691fecd, < 577a942df3de2666f6947bdd3a5c9e8d30073424"]},{"vendor":"Linux","product":"Linux","versions":["5.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-02-27T18:15:34.195435Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-54696","exploited":false,"provenance":"source"}}