{"id":"CVE-2022-50827","published":"2025-12-30T12:08:39Z","modified":"2026-05-11T19:25:53Z","title":"scsi: lpfc: Fix memory leak in lpfc_create_port()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: lpfc: Fix memory leak in lpfc_create_port()\n\nCommit 5e633302ace1 (\"scsi: lpfc: vmid: Add support for VMID in mailbox\ncommand\") introduced allocations for the VMID resources in\nlpfc_create_port() after the call to scsi_host_alloc(). Upon failure on the\nVMID allocations, the new code would branch to the 'out' label, which\nreturns NULL without unwinding anything, thus skipping the call to\nscsi_host_put().\n\nFix the problem by creating a separate label 'out_free_vmid' to unwind the\nVMID resources and make the 'out_put_shost' label call only\nscsi_host_put(), as was done before the introduction of allocations for\nVMID.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00235,"percentile":0.14334,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/9749595feb33a1a2b848800192224ffeed5346b4","tags":[]},{"url":"https://git.kernel.org/stable/c/5ea1f195f51c2bb5915ccfb2b2885ca81ce9262b","tags":[]},{"url":"https://git.kernel.org/stable/c/dc8e483f684a24cc06e1d5fa958b54db58855093","tags":[]}],"priority":{"score":2.9,"factors":[{"name":"EPSS percentile","points":2.87}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 5e633302ace1f61f8ea5a3ce21e19a4d79126cca, < 9749595feb33a1a2b848800192224ffeed5346b4",">= 5e633302ace1f61f8ea5a3ce21e19a4d79126cca, < 5ea1f195f51c2bb5915ccfb2b2885ca81ce9262b",">= 5e633302ace1f61f8ea5a3ce21e19a4d79126cca, < dc8e483f684a24cc06e1d5fa958b54db58855093"]},{"vendor":"Linux","product":"Linux","versions":["5.14"]}],"euvd":{"id":"EUVD-2022-55871","exploited":false,"provenance":"source"}}