CVE-2022-49534
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-49534 is a vulnerability in the Linux kernel affecting the SCSI lpfc driver. The issue was discovered in the lpfcignoreelscmpl() and lpfcelsrspreject() functions where a potential memory leak could occur when handling NPIV PLOGI_RJT operations (Kernel Commit).

Technical details

The vulnerability exists in the SCSI lpfc driver's handling of NPIV ports sending PLOGIRJT. The issue specifically occurs in two functions: lpfcignoreelscmpl() and lpfcelsrspreject(), where memory allocated from NPIV PLOGIRJT (lpfcrcvplogi()'s login_mbox) could potentially leak. The vulnerability has been assigned a CVSS score of 5.5 MEDIUM (NVD Dashboard).

Impact

The vulnerability could lead to memory leaks in the Linux kernel's SCSI subsystem, potentially causing system resource depletion over time (Kernel Commit).

Mitigation and workarounds

The vulnerability has been patched in the Linux kernel. The fix involves properly freeing allocated memory in both lpfcignoreelscmpl() and lpfcelsrspreject() functions. For lpfcignoreelscmpl(), the fix checks if cmdiocb->contextun.mbox was allocated and frees it back to phba->mboxmempool along with mbox->ctxbuf. For lpfcelsrspreject() failure, both the ctxbuf for service parameters and the loginmbox are properly freed (Kernel Commit).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management