CVE-2022-49159
Linux Kernel vulnerability analysis and mitigation

Overview

In the Linux kernel, a race condition vulnerability was discovered in the qla2xxx driver. The issue occurs between the timeout handler and done function, where qla2x00asynciocbtimeout() can be preempted by the normal response path via firmware. When this happens, qla24xxasyncgpscspdone() releases the SRB unconditionally, leading to a NULL pointer dereference when qla24xxasyncabortcmd() attempts to access the freed sp->qpair pointer (Kernel Git).

Technical details

The vulnerability stems from a race condition between the timeout handler and done function in the qla2xxx driver. When qla2x00asynciocbtimeout() starts execution, it can be preempted by the normal response path through the firmware. The qla24xxasyncgpscspdone() function then unconditionally releases the SRB (SCSI Request Block). When execution returns to qla2x00asynciocbtimeout(), the subsequent call to qla24xxasyncabort_cmd() attempts to access the now-freed sp->qpair pointer, resulting in a NULL pointer dereference (Kernel Git).

Impact

The vulnerability can lead to a kernel NULL pointer dereference, potentially causing system crashes or denial of service conditions. This affects the stability and availability of systems using the qla2xxx driver for SCSI storage devices (Kernel Git).

Mitigation and workarounds

The issue has been fixed by implementing a reference counter for SRB. The solution introduces proper synchronization using locks and reference counting, where one reference is taken for the normal code path and another for the timeout path. The fix ensures proper handling of the race condition between the normal case and timeout/abort handler (Kernel Git).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40205HIGH7.8
  • Linux KernelLinux Kernel
  • linux-hwe-6.14
NoYesNov 12, 2025
CVE-2025-40211HIGH7.1
  • Linux KernelLinux Kernel
  • linux-azure-fde-6.14
NoYesNov 21, 2025
CVE-2025-40206MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoYesNov 12, 2025
CVE-2025-40210MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-tools-libs-devel
NoYesNov 21, 2025
CVE-2025-40212N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k
NoYesNov 24, 2025

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