{"id":"CVE-2026-97536","aliases":["CVE-2026-97536"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: qla2xxx: Fix use-after-free of qpair work on queue teardown","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: qla2xxx: Fix use-after-free of qpair work on queue teardown\n\nThe response queue MSI-X handler qla2xxx_msix_rsp_q() schedules\nqla_do_work() via queue_work(ha->wq, &qpair->q_work). qla_do_work()\ndereferences the qpair (vha, rsp) and takes qpair->qp_lock.\n\nDuring teardown, qla2xxx_delete_qpair() deletes the response queue, which\ncalls free_irq() in qla25xx_free_rsp_que(), and then frees the queue and\nthe qpair. free_irq() waits for running hardirq handlers but does not\ncancel work already placed on ha->wq. A still-pending q_work then runs\nqla_do_work() against the freed qpair and response queue, causing a\nuse-after-free. This is especially likely during full adapter teardown,\nwhere destroy_workqueue(ha->wq) forces pending work to run after the queue\npairs have been freed.\n\nFlush the work item with cancel_work_sync() in qla25xx_free_rsp_que()\nafter free_irq() has released the interrupt (so no new work can be\nqueued) and before the response queue and qpair memory are freed (so the\nflushed handler still sees valid memory). Guard on rsp->qpair and ha->wq\nto match the INIT_WORK() condition and avoid operating on an\nuninitialized work_struct.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: qla2xxx: Fix use-after-free of qpair work on queue teardown\n\nThe response queue MSI-X handler qla2xxx_msix_rsp_q() schedules\nqla_do_work() via queue_work(ha->wq, &qpair->q_work). qla_do_work()\ndereferences the qpair (vha, rsp) and takes qpair->qp_lock.\n\nDuring teardown, qla2xxx_delete_qpair() deletes the response queue, which\ncalls free_irq() in qla25xx_free_rsp_que(), and then frees the queue and\nthe qpair. free_irq() waits for running hardirq handlers but does not\ncancel work already placed on ha->wq. A still-pending q_work then runs\nqla_do_work() against the freed qpair and response queue, causing a\nuse-after-free. This is especially likely during full adapter teardown,\nwhere destroy_workqueue(ha->wq) forces pending work to run after the queue\npairs have been freed.\n\nFlush the work item with cancel_work_sync() in qla25xx_free_rsp_que()\nafter free_irq() has released the interrupt (so no new work can be\nqueued) and before the response queue and qpair memory are freed (so the\nflushed handler still sees valid memory). Guard on rsp->qpair and ha->wq\nto match the INIT_WORK() condition and avoid operating on an\nuninitialized work_struct.","source":"cvelist"}],"published":"2026-09-25T10:21:34.991Z","modified":"2026-10-30T13:21:07.087Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"68ca949cdb04b4dc71451a999148fbc5f187a220","fixed":"2089647f81ff5263867ec08589f273899016ad4a","status":"affected"},{"type":"git","introduced":"68ca949cdb04b4dc71451a999148fbc5f187a220","fixed":"bf3f802619eb57cb11c706263dca13255db9f3fd","status":"affected"},{"type":"git","introduced":"68ca949cdb04b4dc71451a999148fbc5f187a220","fixed":"942ceba876881a57e5157bb30a8a05f99a77ddd8","status":"affected"},{"type":"git","introduced":"68ca949cdb04b4dc71451a999148fbc5f187a220","fixed":"9bd063c082ef0475dfc28c46f607aa3e90fe13d7","status":"affected"},{"type":"git","introduced":"68ca949cdb04b4dc71451a999148fbc5f187a220","fixed":"dd6c14db0dbb7774278e62c8114902f953540932","status":"affected"},{"type":"git","introduced":"68ca949cdb04b4dc71451a999148fbc5f187a220","fixed":"1710a69fd74d0b4bdfcc57c3309b1c4057f70d85","status":"affected"},{"type":"git","introduced":"68ca949cdb04b4dc71451a999148fbc5f187a220","fixed":"f1f4d1cb93eeeb250eac9405121933e268eefbd3","status":"affected"},{"type":"git","introduced":"68ca949cdb04b4dc71451a999148fbc5f187a220","fixed":"19788a55cab61d78e33e0914a5a31d27843e8a4a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.31","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.31","status":"unaffected"},{"type":"semver","introduced":"5.10.273","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.224","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.53","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.7","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/2089647f81ff5263867ec08589f273899016ad4a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bf3f802619eb57cb11c706263dca13255db9f3fd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/942ceba876881a57e5157bb30a8a05f99a77ddd8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9bd063c082ef0475dfc28c46f607aa3e90fe13d7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dd6c14db0dbb7774278e62c8114902f953540932","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1710a69fd74d0b4bdfcc57c3309b1c4057f70d85","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f1f4d1cb93eeeb250eac9405121933e268eefbd3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/19788a55cab61d78e33e0914a5a31d27843e8a4a","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-97536","url":"https://www.cve.org/CVERecord?id=CVE-2026-97536","licence":"CVE Terms of Use","modified":"2026-10-30T12:37:16.823Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-97536","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97536","licence":"Public domain","modified":"2026-10-30T13:21:07.087Z"}],"updatedAt":"2026-11-25T22:59:40.950Z","epss":{"score":0.00299,"percentile":0.2433,"date":"2026-12-01T12:00:22.000Z"}}