KernelScan.io

HIGH Introduced in 4.10

qla2xxx QueuePair UAF

CVE-2026-89848

CVSS 8.1 / 10.0 NVD

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

KernelScan AI6.8MEDIUM

01

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.

02

Engine v0.6.0

Risk summary

Systems with a QLogic Fibre Channel HBA running the qla2xxx driver are at risk of a use-after-free during queue-pair teardown. A privileged local attacker who can initiate queue-pair deletion may exploit a race window where a late response interrupt dereferences already-freed request queue memory, potentially leading to kernel memory corruption or a system crash. Products without this specific hardware or without interactive privileged access are not affected.

Affecteddrivers/scsi/qla2xxx/qla_init.c (qla2xxx SCSI driver)

Vulnerability analysis

The qla2xxx Fibre Channel driver tears down a queue pair by deleting and freeing the request queue before releasing the response queue's interrupt. During that window a response interrupt can still fire and schedule work that dereferences the now-freed request queue through the response queue's pointer to it, causing a use-after-free. The fix releases the response-queue interrupt and flushes any pending work before the request queue is freed, so no late completion can reach the freed memory, while preserving the firmware's required deletion order. This vulnerability requires a QLogic Fibre Channel HBA to be present and is triggered during queue-pair teardown, which requires privileged local access to initiate.

03

BranchIntroducedFixed inPatch commit
5.104.105.10.273730a18768b27
5.154.105.15.224be68aef64ab2
6.14.106.1.1910a005dcc5e9b
6.124.106.12.1101486cc18be3e
6.184.106.18.5110e9f05f7fd0
6.64.106.6.1577ac5be2a8609
7.24.107.2.5157ca7d1af45
mainline4.107.3505753ec2594
cip/6.124.106.12.111-cip321486cc18be3e

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.111-cip32
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip136)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip136-rt50)