CVE-2026-97536scsi: qla2xxx: Fix use-after-free of qpair work on queue teardown
Updated under an hour ago ()
Does this affect you?
It affects Linux. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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.
- CVSS
- 7.5 HIGH (v3.1, CNA)CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness (CWE)
- Not given
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- Linux
- NVD analysis
- Received
- Record last updated
- Oct 3, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
Linux Linux linux:linux (from the name) | from 68ca949cdb04b4dc71451a999148fbc5f187a220 before dd6c14db0dbb7774278e62c8114902f953540932; from 68ca949cdb04b4dc71451a999148fbc5f187a220 before 1710a69fd74d0b4bdfcc57c3309b1c4057f70d85; from 68ca949cdb04b4dc71451a999148fbc5f187a220 before f1f4d1cb93eeeb250eac9405121933e268eefbd3; from 68ca949cdb04b4dc71451a999148fbc5f187a220 before 19788a55cab61d78e33e0914a5a31d27843e8a4a | CNA record |
References
- https://git.kernel.org/stable/c/dd6c14db0dbb7774278e62c8114902f953540932
- https://git.kernel.org/stable/c/1710a69fd74d0b4bdfcc57c3309b1c4057f70d85
- https://git.kernel.org/stable/c/f1f4d1cb93eeeb250eac9405121933e268eefbd3
- https://git.kernel.org/stable/c/19788a55cab61d78e33e0914a5a31d27843e8a4a
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.