# CVE-2022-49535: scsi: lpfc: Fix null pointer dereference after failing to issue FLOGI and PLOGI

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 31% of CVEs (2026-12-01)
- Published: 2025-02-26T02:13:53.482Z
- Modified: 2026-08-05T08:55:30.049Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

scsi: lpfc: Fix null pointer dereference after failing to issue FLOGI and PLOGI

If lpfc_issue_els_flogi() fails and returns non-zero status, the node
reference count is decremented to trigger the release of the nodelist
structure. However, if there is a prior registration or dev-loss-evt work
pending, the node may be released prematurely.  When dev-loss-evt
completes, the released node is referenced causing a use-after-free null
pointer dereference.

Similarly, when processing non-zero ELS PLOGI completion status in
lpfc_cmpl_els_plogi(), the ndlp flags are checked for a transport
registration before triggering node removal.  If dev-loss-evt work is
pending, the node may be released prematurely and a subsequent call to
lpfc_dev_loss_tmo_handler() results in a use after free ndlp dereference.

Add test for pending dev-loss before decrementing the node reference count
for FLOGI, PLOGI, PRLI, and ADISC handling.

(As written by CVE List.)

## Affected

- Linux Linux: from 52edb2caf675684acf2140a125de4774c691fecd before c7dc74ab7975c9b96284abfe4cca756d75fa4604; from 52edb2caf675684acf2140a125de4774c691fecd before 10663ebec0ad5c78493a0dd34c9ee4d73d7ca0df; from 52edb2caf675684acf2140a125de4774c691fecd before 577a942df3de2666f6947bdd3a5c9e8d30073424; 5.11 (not affected: before 5.11; from 5.15.181 up to 5.15.*; from 5.18.3 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: before 5.15.181; from 5.16 before 5.18.3

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/c7dc74ab7975c9b96284abfe4cca756d75fa4604> (patch)
- <https://git.kernel.org/stable/c/10663ebec0ad5c78493a0dd34c9ee4d73d7ca0df> (patch)
- <https://git.kernel.org/stable/c/577a942df3de2666f6947bdd3a5c9e8d30073424> (patch)

## Sources

- CVE List: [CVE-2022-49535](https://www.cve.org/CVERecord?id=CVE-2022-49535), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-49535](https://nvd.nist.gov/vuln/detail/CVE-2022-49535), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-49535 · Whole record: https://cve.day/CVE-2022-49535.json · Rebuilt by cve.day 2026-11-25T22:58:20.715Z
