CVE-2022-49534 scsi: lpfc: Protect memory leak for NPIV ports sending PLOGI_RJT
A memory leak in the Linux kernel's lpfc driver allows attackers to cause denial of service via crafted NPIV PLOGI_RJT messages.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-49534?
CVE-2022-49534 is a medium-severity denial of service vulnerability in Linux kernel, published on 26 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-401
Which versions are affected by CVE-2022-49534?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-49534?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-49534 being exploited?
There is no known exploitation of CVE-2022-49534 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-58352, DEBIAN-CVE-2022-49534, GHSA-gv9g-ccx2-9xj9, ROOT-OS-DEBIAN-11-CVE-2022-49534, ROOT-OS-UBUNTU-2204-CVE-2022-49534, UBUNTU-CVE-2022-49534.