# CVE-2022-49534: scsi: lpfc: Protect memory leak for NPIV ports sending PLOGI_RJT

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.24%, higher than 10% of CVEs (2026-11-30)
- Published: 2025-02-26T02:13:52.978Z
- Modified: 2026-06-17T05:18:22.337Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

scsi: lpfc: Protect memory leak for NPIV ports sending PLOGI_RJT

There is a potential memory leak in lpfc_ignore_els_cmpl() and
lpfc_els_rsp_reject() that was allocated from NPIV PLOGI_RJT
(lpfc_rcv_plogi()'s login_mbox).

Check if cmdiocb->context_un.mbox was allocated in lpfc_ignore_els_cmpl(),
and then free it back to phba->mbox_mem_pool along with mbox->ctx_buf for
service parameters.

For lpfc_els_rsp_reject() failure, free both the ctx_buf for service
parameters and the login_mbox.

(As written by CVE List.)

## Affected

- Linux Linux: from 858c9f6c19c6f9bf86cbbc64ce0d17c61d6131b8 before c00df0f34a6d5e14da379f96ea67e501ce67b002; from 858c9f6c19c6f9bf86cbbc64ce0d17c61d6131b8 before 672d1cb40551ea9c95efad43ab6d45e4ab4e015f; 2.6.23 (not affected: before 2.6.23; from 5.18.3 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: before 5.18.3

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/c00df0f34a6d5e14da379f96ea67e501ce67b002> (patch)
- <https://git.kernel.org/stable/c/672d1cb40551ea9c95efad43ab6d45e4ab4e015f> (patch)

## Sources

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

---

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