CVE-2026-89863 PUBLISHED

scsi: qla2xxx: edif: Fix NULL pointer deref in RX SA delete check

Assigner: Linux
Reserved: 11.09.2026 Published: 16.09.2026 Updated: 16.09.2026

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

scsi: qla2xxx: edif: Fix NULL pointer deref in RX SA delete check

qla_chk_edif_rx_sa_delete_pending() obtains the SCSI command via GET_CMD_SP(sp) and immediately dereferences cmd->sc_data_direction. That command pointer can be NULL: the firmware may post a status completion for a command that has already been returned or aborted. The caller qla2x00_status_entry() acknowledges this on the very same status path, re-fetching GET_CMD_SP(sp) and bailing out with the "Command already returned" message when it is NULL -- but that check runs only after qla_chk_edif_rx_sa_delete_pending() has already dereferenced the pointer, so a NULL cmd crashes the kernel in interrupt context.

Return early when cmd is NULL, before touching cmd->sc_data_direction.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS Score: 7.5

AV:N - qla_chk_edif_rx_sa_delete_pending() runs from qla2x00_status_entry() on STATUS_TYPE IOCBs the HBA firmware posts from a remote Fibre Channel or FCoE target's FCP_RSP. QLogic CNAs speak FCoE and SAN fabrics are stretched via FCIP, so a compromised target delivers late completions over the storage network with no local access. AC:L - A hostile target controls FCP_RSP timing and can delay a response until SCSI error handling aborts and returns the command, then complete so firmware posts status for a NULL cmd. The same function already handles that case ("Command already returned"); the crash is then deterministic and needs no rare config or layout beyond a qla2xxx HBA. PR:N - Completions are handled in the HBA interrupt/response-queue path (qla24xx_process_response_queue to qla2x00_status_entry) with no Linux credential or capability check; the attacker only needs to act as an FC/FCoE target on the fabric. UI:N - Once the target is visible on the fabric, the SCSI midlayer automatically issues commands (scan, path checks, mounted-filesystem I/O) whose STATUS_TYPE completions take the vulnerable path; no user mount, open, or other interactive step is required at exploit time. S:U - The NULL dereference and resulting oops stay inside the host kernel that owns the qla2xxx driver and do not cross a VM, IOMMU, or other separate security authority. C:N - This is a pure NULL-pointer dereference of GET_CMD_SP(sp) (cmd->sc_data_direction at a NULL-page offset) when the SCSI command was already returned or aborted. There is no use-after-free of a live object, out-of-bounds read, or other kernel memory disclosure primitive. I:N - The cmd pointer is NULL, not a freed or attacker-controlled object, so the load cannot corrupt kernel heap, overwrite function pointers, or hijack control flow. The fix is only an early NULL return; there is no write primitive. A:H - Dereferencing NULL cmd in qla_chk_edif_rx_sa_delete_pending() from the response-queue interrupt or qla_do_work() context oopses or panics the host, taking down all storage served by the adapter. A fabric peer can repeat this on aborted I/O.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from dd30706e73b70d67e88fdaca688db7a3374fd5de to e479e9b148456905d12711411484b94083c8ff58 (excl.)
  • affected from dd30706e73b70d67e88fdaca688db7a3374fd5de to 2191b0034a2f1307d421782e6eceddf8eec9e7f6 (excl.)
  • affected from dd30706e73b70d67e88fdaca688db7a3374fd5de to de0c8ef3b900c5e971c82ef38c6f5c22c5f3d8c1 (excl.)
  • affected from dd30706e73b70d67e88fdaca688db7a3374fd5de to 96eb8a3fc9f7fe7ba32679fcf1d2fd7d251e7a8b (excl.)
  • affected from dd30706e73b70d67e88fdaca688db7a3374fd5de to 94bfb61478bcb207d27f8cd24fd231421059519f (excl.)
  • affected from dd30706e73b70d67e88fdaca688db7a3374fd5de to 75fd6d041c4a325ae37f4683e6678d3015988bb0 (excl.)
  • affected from dd30706e73b70d67e88fdaca688db7a3374fd5de to c20ee380ca59c5a8646750c4849969a815924e2e (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.15 is affected
  • unaffected from 0 to 5.15 (excl.)
  • unaffected from 5.15.221 to 5.15.* (incl.)
  • unaffected from 6.1.188 to 6.1.* (incl.)
  • unaffected from 6.6.157 to 6.6.* (incl.)
  • unaffected from 6.12.110 to 6.12.* (incl.)
  • unaffected from 6.18.51 to 6.18.* (incl.)
  • unaffected from 7.2.5 to 7.2.* (incl.)
  • unaffected from 7.3-rc1 to * (incl.)

References