{"id":"CVE-2022-50827","aliases":["CVE-2022-50827"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: lpfc: Fix memory leak in lpfc_create_port()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2025-12-30T12:08:39.669Z","modified":"2026-06-17T05:24:15.417Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"5e633302ace1f61f8ea5a3ce21e19a4d79126cca","fixed":"9749595feb33a1a2b848800192224ffeed5346b4","status":"affected"},{"type":"git","introduced":"5e633302ace1f61f8ea5a3ce21e19a4d79126cca","fixed":"5ea1f195f51c2bb5915ccfb2b2885ca81ce9262b","status":"affected"},{"type":"git","introduced":"5e633302ace1f61f8ea5a3ce21e19a4d79126cca","fixed":"dc8e483f684a24cc06e1d5fa958b54db58855093","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.14","status":"unaffected"},{"type":"semver","introduced":"5.15.76","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.6","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/9749595feb33a1a2b848800192224ffeed5346b4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5ea1f195f51c2bb5915ccfb2b2885ca81ce9262b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dc8e483f684a24cc06e1d5fa958b54db58855093","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50827","url":"https://www.cve.org/CVERecord?id=CVE-2022-50827","licence":"CVE Terms of Use","modified":"2026-05-11T19:25:53.091Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50827","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50827","licence":"Public domain","modified":"2026-06-17T05:24:15.417Z"}],"updatedAt":"2026-11-25T22:58:21.371Z","epss":{"score":0.00252,"percentile":0.17809,"date":"2026-12-01T12:00:22.000Z"}}