CVE-2022-49535
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-49535 affects the Linux kernel's SCSI lpfc driver, specifically related to a null pointer dereference vulnerability. The issue occurs when lpfcissueels_flogi() fails and returns non-zero status, causing premature release of the nodelist structure if there is a prior registration or dev-loss-evt work pending (Kernel Git).

Technical details

The vulnerability manifests when the node reference count is decremented to trigger the release of the nodelist structure after a failed FLOGI operation. If dev-loss-evt work is pending, the node may be released prematurely, leading to a use-after-free null pointer dereference when dev-loss-evt completes. Similarly, when processing non-zero ELS PLOGI completion status in lpfccmplelsplogi(), if dev-loss-evt work is pending, the node may be released prematurely causing a use-after-free condition in lpfcdevlosstmo_handler() (Kernel Git).

Impact

The vulnerability can lead to a null pointer dereference and potential system crash, affecting the stability and reliability of systems using the lpfc driver for SCSI operations (Kernel Git).

Mitigation and workarounds

The fix involves adding a test for pending dev-loss before decrementing the node reference count for FLOGI, PLOGI, PRLI, and ADISC handling. This ensures that node references are properly retained while registered with a transport or when dev-loss-evt work is pending (Kernel Git).

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