What’s Vulnerable › Vulnerabilities
CVE-2022-49534: scsi: lpfc: Protect memory leak for NPIV ports sending PLOGI_RJT
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-02-26 · updated 2026-06-17
- Weakness: CWE-401
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.
Affected products
- Linux kernel: before 5.18.3 — fixed in 5.18.3
How to fix
Upgrade to a fixed version: Linux kernel 5.18.3. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/672d1cb40551ea9c95efad43ab6d45e4ab4e015f
- https://git.kernel.org/stable/c/c00df0f34a6d5e14da379f96ea67e501ce67b002
Get alerted when CVE-2022-49534 or the next vulnerability affects your stack