Skip to contentSkip to conversation

CVE-2026-89848: scsi: qla2xxx: Quiesce response IRQ before freeing request queue

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

scsi: qla2xxx: Quiesce response IRQ before freeing request queue

qla2xxx_delete_qpair() deletes the request queue before the response queue. qla25xx_delete_req_que() frees the request queue memory (kfree(req) in qla25xx_free_req_que()), but the response-queue MSI-X is only released later, in qla25xx_free_rsp_que(). In that window the response interrupt can still fire, qla2xxx_msix_rsp_q() queues qpair->q_work, and qla_do_work() -> qla24xx_process_response_queue() dereferences the now-freed rsp->req (LOGINOUT/CT/ELS entries and the status path), a use-after-free.

The cancel_work_sync() added for the qpair teardown lives in the response free path, which runs after the request queue is already freed, so it does not protect rsp->req.

Release the response-queue interrupt and flush qpair->q_work before deleting the request queue, so no late completion can reach the freed request queue. Clearing have_irq makes the subsequent qla25xx_free_rsp_que() skip its free_irq(), and the firmware queue-delete order (request then response) is preserved; the request-delete mailbox completes on the default vector and is unaffected by dropping the qpair response interrupt early.

The Linux kernel CVE team has assigned CVE-2026-89848 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.10 with commit d74595278f4ab192af66d9e60a9087464638beee and fixed in 6.6.157 with commit 7ac5be2a8609679fc6bbfea881360444a5ce8202
	Issue introduced in 4.10 with commit d74595278f4ab192af66d9e60a9087464638beee and fixed in 6.12.110 with commit 1486cc18be3e2b4c2a730f4a1b0448d009381b3d
	Issue introduced in 4.10 with commit d74595278f4ab192af66d9e60a9087464638beee and fixed in 6.18.51 with commit 10e9f05f7fd0a103886a867ec8afe621fe4b906a
	Issue introduced in 4.10 with commit d74595278f4ab192af66d9e60a9087464638beee and fixed in 7.2.5 with commit 157ca7d1af45f87aa14a286754f19c3f72386988
	Issue introduced in 4.10 with commit d74595278f4ab192af66d9e60a9087464638beee and fixed in 7.3-rc1 with commit 505753ec2594c6af09a601f0dd60be7d840c1d2d

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-89848

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_init.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/7ac5be2a8609679fc6bbfea881360444a5ce8202
	https://git.kernel.org/stable/c/1486cc18be3e2b4c2a730f4a1b0448d009381b3d
	https://git.kernel.org/stable/c/10e9f05f7fd0a103886a867ec8afe621fe4b906a
	https://git.kernel.org/stable/c/157ca7d1af45f87aa14a286754f19c3f72386988
	https://git.kernel.org/stable/c/505753ec2594c6af09a601f0dd60be7d840c1d2d