All vulnerabilities
CVE-2026-97536

Linux: scsi: qla2xxx: Fix use-after-free of qpair work on queue teardown

Linux LinuxOperating systems
CVSS
7.5High
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.28%Chance of exploitation activity in the next 30 days, higher than 19% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in9bd063c082ef0475dfc28c46f607aa3e90fe13d7Also 1710a69fd74d0b4bdfcc57c3309b1c4057f70d85, 19788a55cab61d78e33e0914a5a31d27843e8a4aCVE List
Published25 Sep 2026Updated 21 Oct 2026CVE List

What fixes it

  • 9bd063c082ef0475dfc28c46f607aa3e90fe13d7LinuxCVE List
  • 1710a69fd74d0b4bdfcc57c3309b1c4057f70d85LinuxCVE List
  • 19788a55cab61d78e33e0914a5a31d27843e8a4aLinuxCVE List

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

In the Linux kernel, the following vulnerability has been resolved:

scsi: qla2xxx: Fix use-after-free of qpair work on queue teardown

The response queue MSI-X handler qla2xxx_msix_rsp_q() schedules qla_do_work() via queue_work(ha->wq, &qpair->q_work). qla_do_work() dereferences the qpair (vha, rsp) and takes qpair->qp_lock.

During teardown, qla2xxx_delete_qpair() deletes the response queue, which calls free_irq() in qla25xx_free_rsp_que(), and then frees the queue and the qpair. free_irq() waits for running hardirq handlers but does not cancel work already placed on ha->wq. A still-pending q_work then runs qla_do_work() against the freed qpair and response queue, causing a use-after-free. This is especially likely during full adapter teardown, where destroy_workqueue(ha->wq) forces pending work to run after the queue pairs have been freed.

Flush the work item with cancel_work_sync() in qla25xx_free_rsp_que() after free_irq() has released the interrupt (so no new work can be queued) and before the response queue and qpair memory are freed (so the flushed handler still sees valid memory). Guard on rsp->qpair and ha->wq to match the INIT_WORK() condition and avoid operating on an uninitialized work_struct.

Text from CVE List

Affected versions 12

  • Linuxaffected: 68ca949cdb04b4dc71451a999148fbc5f187a220 before 9bd063c082ef0475dfc28c46f607aa3e90fe13d7CVE List
  • Linuxaffected: 68ca949cdb04b4dc71451a999148fbc5f187a220 before dd6c14db0dbb7774278e62c8114902f953540932CVE List
  • Linuxaffected: 68ca949cdb04b4dc71451a999148fbc5f187a220 before 1710a69fd74d0b4bdfcc57c3309b1c4057f70d85CVE List
  • Linuxaffected: 68ca949cdb04b4dc71451a999148fbc5f187a220 before f1f4d1cb93eeeb250eac9405121933e268eefbd3CVE List
  • Linuxaffected: 68ca949cdb04b4dc71451a999148fbc5f187a220 before 19788a55cab61d78e33e0914a5a31d27843e8a4aCVE List
  • Linuxaffected: 2.6.31CVE List
  • Linuxunaffected: all versions before 2.6.31CVE List
  • Linuxunaffected: 6.6.160 through 6.6.*CVE List
  • Linuxunaffected: 6.12.112 through 6.12.*CVE List
  • Linuxunaffected: 6.18.53 through 6.18.*CVE List
  • Linuxunaffected: 7.2.7 through 7.2.*CVE List
  • Linuxunaffected: 7.3CVE List

References 5