{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50827","id":"CVE-2022-50827","title":"scsi: lpfc: Fix memory leak in lpfc_create_port()","description":"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\nret","descriptionLong":"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.","published":"2025-12-30T12:08:39.669Z","updated":"2026-10-28T02:30:49.175053803Z","reserved":"2025-12-30T12:06:07.131Z","status":"Deferred","rejected":false,"assigner":"Linux","metric":null,"metrics":[],"rating":"unrated","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5e633302ace1f61f8ea5a3ce21e19a4d79126cca","lessThan":"9749595feb33a1a2b848800192224ffeed5346b4","status":"affected","versionType":"git"},{"version":"5e633302ace1f61f8ea5a3ce21e19a4d79126cca","lessThan":"5ea1f195f51c2bb5915ccfb2b2885ca81ce9262b","status":"affected","versionType":"git"},{"version":"5e633302ace1f61f8ea5a3ce21e19a4d79126cca","lessThan":"dc8e483f684a24cc06e1d5fa958b54db58855093","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","lessThan":"5.14","status":"unaffected","versionType":"semver"},{"version":"5.15.76","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.0.6","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/9749595feb33a1a2b848800192224ffeed5346b4","tags":["web"]},{"url":"https://git.kernel.org/stable/c/5ea1f195f51c2bb5915ccfb2b2885ca81ce9262b","tags":["web"]},{"url":"https://git.kernel.org/stable/c/dc8e483f684a24cc06e1d5fa958b54db58855093","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50827.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50827","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00235,"epssPercentile":0.14655,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50827","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50827","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50827","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-50827","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}