Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97536 Overview
CVE-2026-97536 is a use-after-free vulnerability in the Linux kernel's qla2xxx SCSI driver for QLogic Fibre Channel adapters. The flaw occurs during response queue teardown when pending work items reference memory that has already been released. The response queue MSI-X handler qla2xxx_msix_rsp_q() schedules qla_do_work() through queue_work(ha->wq, &qpair->q_work), and the scheduled work can execute against a freed qpair structure. This condition is most reachable during full adapter teardown, when destroy_workqueue(ha->wq) forces pending work to run after the queue pairs have been freed.
Critical Impact
Successful triggering of the use-after-free can corrupt kernel memory, leading to crashes, data integrity loss, or potential privilege escalation on systems using QLogic Fibre Channel HBAs.
Affected Products
- Linux kernel versions containing the vulnerable qla2xxx SCSI driver
- Systems using QLogic Fibre Channel Host Bus Adapters (HBAs) with multi-queue response configurations
- Enterprise storage servers and SAN-attached hosts relying on the qla2xxx driver
Discovery Timeline
- 2026-09-25 - CVE-2026-97536 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97536
Vulnerability Analysis
The qla2xxx driver schedules per-qpair work items from its MSI-X response-queue interrupt handler. When a response queue is torn down, qla2xxx_delete_qpair() invokes qla25xx_free_rsp_que(), which calls free_irq() and then releases the queue and the qpair memory. While free_irq() waits for in-flight hardirq handlers to finish, it does not cancel work already queued on ha->wq. Any pending q_work subsequently runs qla_do_work() against the freed qpair, dereferencing vha, rsp, and acquiring qpair->qp_lock on released memory.
Root Cause
The root cause is missing synchronization between workqueue drainage and queue teardown. The driver removes the interrupt source but does not flush or cancel work items that reference the structures being freed. During full adapter teardown, destroy_workqueue(ha->wq) forces pending work to execute after the backing memory is gone, producing a classic use-after-free. The fix calls cancel_work_sync() in qla25xx_free_rsp_que() after free_irq() and before freeing the queue, guarded by rsp->qpair and ha->wq checks to match the INIT_WORK() condition.
Attack Vector
Exploitation requires adjacent-network interaction with a vulnerable adapter and the ability to trigger queue pair teardown, which typically occurs during adapter reconfiguration, hot-unplug, module unload, or error recovery paths. A local attacker with the ability to influence driver state, or an adversary able to induce fabric-level events that drive teardown while response traffic is in flight, can race the freed memory window. Successful exploitation can yield denial of service or memory corruption suitable for further escalation. See the upstream fixes in Linux Kernel Commit 1710a69, Linux Kernel Commit 19788a55, and Linux Kernel Commit f1f4d1cb.
Detection Methods for CVE-2026-97536
Indicators of Compromise
- Kernel oops or general protection fault entries in dmesg referencing qla_do_work, qla2xxx_msix_rsp_q, or qpair
- KASAN use-after-free reports naming the qla2xxx module during adapter teardown or module unload
- Unexpected SCSI subsystem crashes correlated with Fibre Channel link flaps or qpair reconfiguration events
Detection Strategies
- Enable KASAN on test and staging kernels to catch the use-after-free on hosts with QLogic HBAs under teardown workloads
- Audit running kernel versions against the fixed upstream commits to identify unpatched systems
- Correlate qla2xxx kernel log messages with SCSI command failures and workqueue activity in system telemetry
Monitoring Recommendations
- Forward kernel ring buffer and journald output to a central log platform and alert on qla2xxx fault signatures
- Track module load, unload, and adapter reset events on storage hosts using host telemetry
- Monitor for unplanned reboots of SAN-attached hosts to catch exploitation attempts or stability regressions
How to Mitigate CVE-2026-97536
Immediate Actions Required
- Inventory Linux hosts running the qla2xxx driver and identify kernels missing the referenced upstream fixes
- Apply vendor-supplied kernel updates that include commits 1710a69, 19788a55, and f1f4d1cb
- Restrict local shell access and administrative privileges on affected storage hosts until patches are deployed
Patch Information
The fix adds cancel_work_sync() in qla25xx_free_rsp_que() after free_irq() releases the interrupt and before the response queue and qpair memory are freed. Patched kernels are available via the upstream references: Linux Kernel Commit 1710a69, Linux Kernel Commit 19788a55, and Linux Kernel Commit f1f4d1cb. Distribution-specific stable kernel updates should be applied via the vendor package manager.
Workarounds
- Avoid dynamic qpair reconfiguration and module unload operations on production hosts until patched kernels are deployed
- Schedule maintenance windows that quiesce Fibre Channel I/O before performing adapter teardown or hot-unplug
- Where feasible, restrict loading of the qla2xxx module on hosts that do not require QLogic Fibre Channel connectivity
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

