Skip to content
Heist/ feed
Back to feed
MediumFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.18.3
CVEs
CVE-2022-49534
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 16:15 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 26 Feb 2025, 02:13 UTC

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.

osv:CVE-2022-49534

Kernel

Fixed versions: 5.18.3

Complete source record
{
  "id": "1ba15f0528579d72f25a8320020c3d3914d74f9cde1d7dc00383473582b07127",
  "url": "https://osv.dev/vulnerability/CVE-2022-49534",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "scsi: lpfc: Protect memory leak for NPIV ports sending PLOGI_RJT",
    "summary": "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.",
    "evidence": "osv:CVE-2022-49534",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.18.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-49534",
      "aliases": [
        "CVE-2022-49534"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "858c9f6c19c6f9bf86cbbc64ce0d17c61d6131b8"
                },
                {
                  "fixed": "c00df0f34a6d5e14da379f96ea67e501ce67b002"
                },
                {
                  "fixed": "672d1cb40551ea9c95efad43ab6d45e4ab4e015f"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49534.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.23"
                },
                {
                  "fixed": "5.18.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49534.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.275557769Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/672d1cb40551ea9c95efad43ab6d45e4ab4e015f",
        "https://git.kernel.org/stable/c/c00df0f34a6d5e14da379f96ea67e501ce67b002",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49534.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-49534",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49534.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-49534",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504581,
  "published_at": "2025-02-26T02:13:52.978+00:00"
}