CVE-2022-49534

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

Medium · published February 26, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
13.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00234 · 13.4th percentile
Published
2025-02-26T02:13Z
EPSS history
Timeline
  • 26 FEB 02:13Z
    scsi: lpfc: Protect memory leak for NPIV ports sending PLOGI_RJT
    cvelistv5