CVE-2022-49156
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-49156 affects the Linux kernel's qla2xxx SCSI driver. The vulnerability was discovered when the driver made calls into the midlayer (fcremoteport_delete) which could put the thread to sleep while in interrupt context, leading to a crash. This scheduling-while-atomic bug was fixed in the Linux kernel through a patch that schedules the call in non-interrupt context (Kernel Git).

Technical details

The vulnerability occurs when the qla2xxx driver attempts to execute fcremoteportdelete while in interrupt context. This operation can trigger a sleep state, which is not allowed in interrupt context. The issue manifests as a scheduling-while-atomic bug, producing a kernel trace showing the crash path through various kernel functions including scheduletimeout, waitforcompletion, and _waitrcu_gp (Debian Tracker).

Impact

When triggered, this vulnerability causes a kernel crash, disrupting system operations. The crash occurs due to an attempt to schedule while in an atomic context, which violates kernel threading rules (Kernel Git).

Mitigation and workarounds

The issue has been fixed by modifying the driver to schedule the fcremoteportdelete call in non-interrupt context using qltschedulesessfor_deletion. This fix has been incorporated into various Linux kernel versions (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