CVE-2022-49156: scsi: qla2xxx: Fix scheduling while atomic
In the Linux kernel, the following vulnerability has been resolved:
scsi: qla2xxx: Fix scheduling while atomic
The driver makes a call into midlayer (fcremoteportdelete) which can put the thread to sleep. The thread that originates the call is in interrupt context. The combination of the two trigger a crash. Schedule the call in non-interrupt context where it is more safe.
kernel: BUG: scheduling while atomic: swapper/7/0/0x00010000 kernel: Call Trace: kernel: <IRQ> kernel: dumpstack+0x66/0x81 kernel: schedulebug.cold.90+0x5/0x1d kernel: schedule+0x7af/0x960 kernel: schedule+0x28/0x80 kernel: scheduletimeout+0x26d/0x3b0 kernel: waitforcompletion+0xb4/0x140 kernel: ? wakeupq+0x70/0x70 kernel: waitrcugp+0x12c/0x160 kernel: ? sdevevtalloc+0xc0/0x180 [scsimod] kernel: synchronizesched+0x6c/0x80 kernel: ? callrcubh+0x20/0x20 kernel: ? bpftracercuinvokecallback+0x10/0x10 kernel: sdevevtalloc+0xfd/0x180 [scsimod] kernel: stargetforeachdevice+0x85/0xb0 [scsimod] kernel: ? scsiinitio+0x360/0x3d0 [scsimod] kernel: scsiinitio+0x388/0x3d0 [scsimod] kernel: deviceforeachchild+0x54/0x90 kernel: fcremoteportdelete+0x70/0xe0 [scsitransportfc] kernel: qla2x00schedulerportdel+0x62/0xf0 [qla2xxx] kernel: qla2x00markdevicelost+0x9c/0xd0 [qla2xxx] kernel: qla24xxhandleplogidoneevent+0x55f/0x570 [qla2xxx] kernel: qla2x00asyncloginspdone+0xd2/0x100 [qla2xxx] kernel: qla24xxlogioentry+0x13a/0x3c0 [qla2xxx] kernel: qla24xxprocessresponsequeue+0x306/0x400 [qla2xxx] kernel: qla24xxmsixrspq+0x3f/0xb0 [qla2xxx] kernel: handleirqeventpercpu+0x40/0x180 kernel: handleirqeventpercpu+0x30/0x80 kernel: handleirqevent+0x36/0x60
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.17.3-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1 - Upgrade
Upgrade
ubuntu/linux-azure-5.15to a version that resolves this vulnerability.Fixed in 5.15.0-1008.9~20.04.1 - Upgrade
Upgrade
ubuntu/linux-hwe-5.15to a version that resolves this vulnerability.Fixed in 5.15.0-41.44~20.04.1 - Upgrade
Upgrade
ubuntu/linux-intel-iotg-5.15to a version that resolves this vulnerability.Fixed in 5.15.0-1008.11~20.04.1 - Upgrade
Upgrade
ubuntu/linux-lowlatency-hwe-5.15to a version that resolves this vulnerability.Fixed in 5.15.0-42.45~20.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 5.15.0-37.39 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 5.15.0-1011.14 - Upgrade
Upgrade
ubuntu/linux-azureto a version that resolves this vulnerability.Fixed in 5.15.0-1010.12 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 5.15.0-1008.12 - Upgrade
Upgrade
ubuntu/linux-gketo a version that resolves this vulnerability.Fixed in 5.15.0-1008.10 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 5.15.0-1007.8 - Upgrade
Upgrade
ubuntu/linux-intel-iotgto a version that resolves this vulnerability.Fixed in 5.15.0-1008.11 - Upgrade
Upgrade
ubuntu/linux-kvmto a version that resolves this vulnerability.Fixed in 5.15.0-1010.11 - Upgrade
Upgrade
ubuntu/linux-lowlatencyto a version that resolves this vulnerability.Fixed in 5.15.0-37.39 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 5.15.0-1009.12 - Upgrade
Upgrade
ubuntu/linux-raspito a version that resolves this vulnerability.Fixed in 5.15.0-1011.13 - Upgrade
Upgrade
ubuntu/linux-realtimeto a version that resolves this vulnerability.Fixed in 5.15.0-1014.14 - Compensating control
In the qla2xxx driver, schedule the fc_remote_port_delete call in non-interrupt context so it can safely sleep.
Event History
Frequently Asked Questions
What is the severity of CVE-2022-49156?
CVE-2022-49156 is classified as a high-severity vulnerability affecting the Linux kernel's qla2xxx SCSI driver.
How do I fix CVE-2022-49156?
To fix CVE-2022-49156, ensure that you update your Linux kernel to the latest version that includes the patch for this vulnerability.
What are the potential impacts of CVE-2022-49156?
CVE-2022-49156 can lead to system instability due to improper scheduling in an interrupt context, potentially causing crashes or data corruption.
Which systems are affected by CVE-2022-49156?
CVE-2022-49156 affects systems running the Linux kernel as well as those using the QLogic qla2xxx driver.
Is CVE-2022-49156 exploitable remotely?
CVE-2022-49156 is not classified as a remotely exploitable vulnerability; it requires local access to trigger the faulty behavior.