CVE-2022-49537
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-49537 affects the Linux kernel's SCSI lpfc driver when CMF (Capability Management Framework) is enabled. The vulnerability was discovered when a call trace was observed during I/O operations, specifically related to improper usage of smpprocessorid() in preemptible code contexts (Kernel Git).

Technical details

The vulnerability stems from the improper use of thiscpuptr() which calls smpprocessorid() in a preemptible context within the lpfc driver. The issue manifests in the lpfcupdatecmfcmd function, causing a bug when the system attempts to access per-CPU data structures. The call trace shows the error occurring in systemd-udevd process with PID 31711 on CPU 12, specifically in the lpfcupdatecmfcmd+0x214/0x420 [lpfc] function call chain (Kernel Git).

Impact

When exploited, this vulnerability can cause system instability and potential crashes due to improper CPU data structure access in preemptible code contexts. The issue specifically affects systems running the Linux kernel with the lpfc driver and CMF enabled (Ubuntu Security).

Mitigation and workarounds

The issue has been fixed by replacing thiscpuptr() with percpuptr() using rawsmpprocessor_id() instead. This change ensures proper access to per-CPU data structures in preemptible contexts. The fix has been implemented in the kernel source code and is available through system updates (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