{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-89863",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2026-89863"
  ],
  "published": "2026-09-16T10:32:03Z",
  "summary": "scsi: qla2xxx: edif: Fix NULL pointer deref in RX SA delete check",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: qla2xxx: edif: Fix NULL pointer deref in RX SA delete check\n\nqla_chk_edif_rx_sa_delete_pending() obtains the SCSI command via\nGET_CMD_SP(sp) and immediately dereferences cmd->sc_data_direction.\nThat command pointer can be NULL: the firmware may post a status\ncompletion for a command that has already been returned or aborted.  The\ncaller qla2x00_status_entry() acknowledges this on the very same status\npath, re-fetching GET_CMD_SP(sp) and bailing out with the \"Command\nalready returned\" message when it is NULL -- but that check runs only\nafter qla_chk_edif_rx_sa_delete_pending() has already dereferenced the\npointer, so a NULL cmd crashes the kernel in interrupt context.\n\nReturn early when cmd is NULL, before touching cmd->sc_data_direction.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.188",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-89863"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/e479e9b148456905d12711411484b94083c8ff58"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/2191b0034a2f1307d421782e6eceddf8eec9e7f6"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/de0c8ef3b900c5e971c82ef38c6f5c22c5f3d8c1"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/96eb8a3fc9f7fe7ba32679fcf1d2fd7d251e7a8b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/94bfb61478bcb207d27f8cd24fd231421059519f"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/75fd6d041c4a325ae37f4683e6678d3015988bb0"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/c20ee380ca59c5a8646750c4849969a815924e2e"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-09-16T14:40:32Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.5,
      "cvss_v3_severity": "High",
      "scenario": "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.\nAC: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.\nPR: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.\nUI: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.\nS: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.\nC: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.\nI: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.\nA: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."
    }
  }
}
