scsi: lpfc: Protect memory leak for NPIV ports sending PLOGI_RJT
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The lpfc SCSI driver can leak memory when handling NPIV ports sending PLOGI_RJT. An attacker’s ability to trigger the leak is not specified; the input does not establish whether network or local access, authentication, or user interaction is required.
Engineers running Linux kernels with the lpfc SCSI driver should check their installations; affected versions are not specified.