CVE-2022-50827: Linux Kernel - Memory Leak
- Cve: CVE-2022-50827
- Name: Linux Kernel - Memory Leak
- Description: In the Linux kernel, the following vulnerability has been resolved: scsi: lpfc: Fix memory leak in lpfc_create_port() Commit 5e633302ace1 ("scsi: lpfc: vmid: Add support for VMID in mailbox command") introduced allocations for the VMID resources in lpfc_create_port() after the call to scsi_host_alloc(). Upon failure on the VMID allocations, the new code would branch to the 'out' label, which returns NULL without unwinding anything, thus skipping the call to scsi_host_put(). Fix the problem by creating a separate label 'out_free_vmid' to unwind the VMID resources and make the 'out_put_shost' label call only scsi_host_put(), as was done before the introduction of allocations for VMID.
- Impact: Attackers can cause memory leaks leading to resource exhaustion and potential denial of service.
- Remediation: Update to the latest Linux kernel version with the fix for lpfc_create_port() memory leak.
- Vulnerability type: memory_leak
- Vulnerability impact: denial_of_service
- Requirements: Attacker must trigger VMID allocation failure
- Labels source: projectdiscovery
- Cvss vector: N/A
- Epss score: 0.00235
- Epss percentile: 0.14547
- Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- Published at: 2025-12-30T13:15:57Z
- Age in days: 329
- Modified at: 2026-06-17T05:24:15Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-50827
- Nvd status: deferred
- Checked, none or zero: cwe, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirement type, severity, cvss score, hackerone
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| linux:linux_kernel | >= 5.14, < 6.1; >= 5.14, < 6.0.6; >= 5.14, < 5.15.76 | no | cna | /v1/products/linux/linux_kernel |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| torvalds/linux | cna_commit, commit | yes | /v1/repositories/torvalds/linux |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Exposed hosts: 10038339
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports