CVE-2026-89849: scsi: qla2xxx: Reject non-SCSI SRB on status IOCB fast path
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
scsi: qla2xxx: Reject non-SCSI SRB on status IOCB fast path
qla2x00_status_entry() filters out non-TYPE_SRB entries and the SRB_NVME_CMD, SRB_BIDI_CMD and SRB_TM_CMD types, then falls through to a SCSI fast path that assumes the command is an SRB_SCSI_CMD. The first thing on that path, qla_chk_edif_rx_sa_delete_pending(), and the subsequent handling both evaluate GET_CMD_SP(sp), i.e. sp->u.scmd.cmd.
The srb u union overlays the SCSI command pointer with other command layouts (bsg_job, iocb_cmd). If firmware delivers an unexpected STATUS_TYPE IOCB for a non-SCSI handle, sp->u.scmd.cmd can read as a non-NULL garbage pointer, bypassing the NULL checks in qla_chk_edif_rx_sa_delete_pending() and at the cp == NULL test, and leading to a wild pointer dereference.
Reject any SRB whose type is not SRB_SCSI_CMD before entering the fast path. The outstanding_cmds slot is left untouched so a genuinely non-SCSI command still completes through its proper handler.
The Linux kernel CVE team has assigned CVE-2026-89849 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.15 with commit dd30706e73b70d67e88fdaca688db7a3374fd5de and fixed in 5.15.221 with commit 9204fb0888374083be74f799049649a17eab4191 Issue introduced in 5.15 with commit dd30706e73b70d67e88fdaca688db7a3374fd5de and fixed in 6.1.188 with commit b7418198b45b327194b97f856fe8ea8daa91f3fd Issue introduced in 5.15 with commit dd30706e73b70d67e88fdaca688db7a3374fd5de and fixed in 6.6.157 with commit 8f0e31e7a41376abe7d6ca7cbee07fcf9de071e6 Issue introduced in 5.15 with commit dd30706e73b70d67e88fdaca688db7a3374fd5de and fixed in 6.12.110 with commit e38041b47c29316ba79b645e2ae0b713d216b1db Issue introduced in 5.15 with commit dd30706e73b70d67e88fdaca688db7a3374fd5de and fixed in 6.18.51 with commit e93aa3c5125d9a4352ac0fa8ba4a7f8f87881805 Issue introduced in 5.15 with commit dd30706e73b70d67e88fdaca688db7a3374fd5de and fixed in 7.2.5 with commit 29f1f9ad9e354cd0b6e4f6fc75ba09162d6a04d9 Issue introduced in 5.15 with commit dd30706e73b70d67e88fdaca688db7a3374fd5de and fixed in 7.3-rc1 with commit 0f41d07d72f2245208c45374ca8d0a1846cad667
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-89849
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_dbg.c
drivers/scsi/qla2xxx/qla_isr.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/9204fb0888374083be74f799049649a17eab4191 https://git.kernel.org/stable/c/b7418198b45b327194b97f856fe8ea8daa91f3fd https://git.kernel.org/stable/c/8f0e31e7a41376abe7d6ca7cbee07fcf9de071e6 https://git.kernel.org/stable/c/e38041b47c29316ba79b645e2ae0b713d216b1db https://git.kernel.org/stable/c/e93aa3c5125d9a4352ac0fa8ba4a7f8f87881805 https://git.kernel.org/stable/c/29f1f9ad9e354cd0b6e4f6fc75ba09162d6a04d9 https://git.kernel.org/stable/c/0f41d07d72f2245208c45374ca8d0a1846cad667