scsi: qla2xxx: Fix use-after-free of qpair work on queue teardown (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.30 % · percentile 23 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- NVD status
- Received
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.
References
- https://git.kernel.org/stable/c/2089647f81ff5263867ec08589f273899016ad4a
- https://git.kernel.org/stable/c/bf3f802619eb57cb11c706263dca13255db9f3fd
- https://git.kernel.org/stable/c/942ceba876881a57e5157bb30a8a05f99a77ddd8
- https://git.kernel.org/stable/c/9bd063c082ef0475dfc28c46f607aa3e90fe13d7
- 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
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | Linux |
| CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) |
European references
- ENISA EUVD · EUVD-2026-86844
- GCVE · GCVE-0-2026-97536
CERT-FR advisories
- CERTFR-2026-AVI-1375 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1374 — Multiples vulnérabilités dans le noyau Linux de Debian · cert.ssi.gouv.fr
Affected products
| Product | Versions |
|---|---|
| Linux · Linux | affected 68ca949cdb04b4dc71451a999148fbc5f187a220 < 2089647f81ff5263867ec08589f273899016ad4a ; affected 68ca949cdb04b4dc71451a999148fbc5f187a220 < bf3f802619eb57cb11c706263dca13255db9f3fd ; affected 68ca949cdb04b4dc71451a999148fbc5f187a220 < 942ceba876881a57e5157bb30a8a05f99a77ddd8 ; affected 68ca949cdb04b4dc71451a999148fbc5f187a220 < 9bd063c082ef0475dfc28c46f607aa3e90fe13d7 ; affected 68ca949cdb04b4dc71451a999148fbc5f187a220 < dd6c14db0dbb7774278e62c8114902f953540932 ; affected 68ca949cdb04b4dc71451a999148fbc5f187a220 < 1710a69fd74d0b4bdfcc57c3309b1c4057f70d85 |
| Linux · Linux | affected 2.6.31 ; unaffected 0 < 2.6.31 ; unaffected 5.10.273 ≤ 5.10.* ; unaffected 5.15.224 ≤ 5.15.* ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.160 ≤ 6.6.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |