Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D810448EBFC for ; Fri, 25 Sep 2026 10:23:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331792; cv=none; b=rngJp2GzVvVV5sOxSTUi8llzP7dqQu8KaNiVw8LZZfQIWpE379IKDomEt5kFuDIXVPvvoET+KnUWWtku6ItkKW0LoK0Vdo5+CJsdsIvYvFxKdMZ+IsyoMYWOvyAv4voy5Hasf1e+XOer567NwijTv8MWse6LL/sM8/k+SyGkhIo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331792; c=relaxed/simple; bh=fc9SR7iejZpXLkkWf9a7La7CrO/Etmcd1eMBwdl6e58=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BASzymdpr0wRhIuPK8iYDHP5tfYF/qZ5981cJ489UT38k/9BNO9eCARbg+nSfNBSylrrLUCKhWPNqLuZB1VYVBhJS1f0Muxws5lhA/wTeCMCuQ48+4msHYUoUAHElurw70Izj0+H7nFoN+qBN23j2kDs4JkGLr8I6lZWcDe2xbA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XTCErvfD; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="XTCErvfD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F04D1F000FF; Fri, 25 Sep 2026 10:23:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790331790; bh=EPWXhtQatyVlZiZ5aPRoFfz+YmKFUN07j1Rwxc7iBEY=; h=From:To:Cc:Subject:Date:Reply-To; b=XTCErvfDADh5JQWvs1FCQteu8VsfMF+o8Ex9CXnQ6CE3gzh5mrF9KTlZdPt0v/e/3 80tThg73GF7yTVSk7Ua4ND3q7SeMD+7eLFznPO6ZnY/b69PIuV9bEaMWZO67h4Omy0 Q83mgovQeyM2T+aSQFYigINCOTTLggeq1kn2aKrg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97536: scsi: qla2xxx: Fix use-after-free of qpair work on queue teardown Date: Fri, 25 Sep 2026 12:21:56 +0200 Message-ID: <2026092548-CVE-2026-97536-78b4@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3124; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=11Rb7JVi7v+r5oP4J3ROgvZgzgOdyCXCFiVZqrJvr/E=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvG2qJvE3ueTOc7DceGf9Wf7fnqaTzux42Hkr9dXki wcMWi6ldcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEviUzLOj5eeTWh0X3d2Xv 1Ne4+D9RqCfq726GuVI/16+Ybq70svK2aM6sNMmle+/6fgIA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-97536 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.31 with commit 68ca949cdb04b4dc71451a999148fbc5f187a220 and fixed in 6.18.53 with commit 1710a69fd74d0b4bdfcc57c3309b1c4057f70d85 Issue introduced in 2.6.31 with commit 68ca949cdb04b4dc71451a999148fbc5f187a220 and fixed in 7.2.7 with commit f1f4d1cb93eeeb250eac9405121933e268eefbd3 Issue introduced in 2.6.31 with commit 68ca949cdb04b4dc71451a999148fbc5f187a220 and fixed in 7.3-rc1 with commit 19788a55cab61d78e33e0914a5a31d27843e8a4a Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-97536 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/scsi/qla2xxx/qla_mid.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/1710a69fd74d0b4bdfcc57c3309b1c4057f70d85 https://git.kernel.org/stable/c/f1f4d1cb93eeeb250eac9405121933e268eefbd3 https://git.kernel.org/stable/c/19788a55cab61d78e33e0914a5a31d27843e8a4a