← Back to CVE Explorer

CVE-2026-89845

Full vulnerability record from the local CVENow database.

Description

In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Avoid req_q_map double-read in qla2x00_error_entry() qla2x00_error_entry() reads ha->req_q_map[que] twice: once for the NULL check and again when assigning it to req. The map slot is cleared by qla25xx_free_req_que() (ha->req_q_map[que_id] = NULL under mq_lock) during queue teardown, while the response-queue interrupt that drives qla2x00_error_entry() is still registered (the IRQ is released later in qla25xx_free_rsp_que()). If the slot is set to NULL between the two reads, req becomes NULL and is dereferenced. Read the slot once into req and NULL-check the local before use. mq_lock is a mutex and cannot be taken from interrupt context, so the single read plus local check is the appropriate fix for the reported NULL dereference.

Severity
Not scored
CVSS score
Not available
Vulnerability status
Received
Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2026-09-16 11:16:51.720000
Last modified
2026-10-19 09:18:28.483000
View original CVE JSON
{
  "id": "CVE-2026-89845",
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "published": "2026-09-16T11:16:51.720",
  "lastModified": "2026-10-19T09:18:28.483",
  "vulnStatus": "Received",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: qla2xxx: Avoid req_q_map double-read in qla2x00_error_entry()\n\nqla2x00_error_entry() reads ha->req_q_map[que] twice: once for the NULL\ncheck and again when assigning it to req. The map slot is cleared by\nqla25xx_free_req_que() (ha->req_q_map[que_id] = NULL under mq_lock)\nduring queue teardown, while the response-queue interrupt that drives\nqla2x00_error_entry() is still registered (the IRQ is released later in\nqla25xx_free_rsp_que()). If the slot is set to NULL between the two\nreads, req becomes NULL and is dereferenced.\n\nRead the slot once into req and NULL-check the local before use. mq_lock\nis a mutex and cannot be taken from interrupt context, so the single\nread plus local check is the appropriate fix for the reported NULL\ndereference."
    }
  ],
  "affected": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "affectedData": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "programFiles": [
            "drivers/scsi/qla2xxx/qla_isr.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "a6fe35c052c4fdd1e8e21251f14eea0bd4bbd25b",
              "lessThan": "c845f2597787ef70159a32566669e308b2807a56",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "a6fe35c052c4fdd1e8e21251f14eea0bd4bbd25b",
              "lessThan": "fe04b31e386aee4cc3a18f07462af146037dc389",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "a6fe35c052c4fdd1e8e21251f14eea0bd4bbd25b",
              "lessThan": "1b995cf4157465357d66ba096e7cdaafab9972e7",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "a6fe35c052c4fdd1e8e21251f14eea0bd4bbd25b",
              "lessThan": "d79376fbd2a076de82c1cd8aa0b600b300c75a44",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "a6fe35c052c4fdd1e8e21251f14eea0bd4bbd25b",
              "lessThan": "1c90b74e484ba48f31944fe04963d99e01ac3767",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "a6fe35c052c4fdd1e8e21251f14eea0bd4bbd25b",
              "lessThan": "5dd9bec8004ba93cee8b689bf54ce294f59e5e3c",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "a6fe35c052c4fdd1e8e21251f14eea0bd4bbd25b",
              "lessThan": "35124cfa9898b2088ee72859e573e0876aff66fc",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "a6fe35c052c4fdd1e8e21251f14eea0bd4bbd25b",
              "lessThan": "deb8abde83a799d2501f3977f6d6051000253f5e",
              "versionType": "git",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "programFiles": [
            "drivers/scsi/qla2xxx/qla_isr.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "3.4",
              "status": "affected"
            },
            {
              "version": "0",
              "lessThan": "3.4",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.10.270",
              "lessThanOrEqual": "5.10.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.15.221",
              "lessThanOrEqual": "5.15.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.1.188",
              "lessThanOrEqual": "6.1.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.6.157",
              "lessThanOrEqual": "6.6.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.12.110",
              "lessThanOrEqual": "6.12.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.18.51",
              "lessThanOrEqual": "6.18.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.2.5",
              "lessThanOrEqual": "7.2.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.3",
              "lessThanOrEqual": "*",
              "versionType": "original_commit_for_fix",
              "status": "unaffected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {},
  "references": [
    {
      "url": "https://git.kernel.org/stable/c/1b995cf4157465357d66ba096e7cdaafab9972e7",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/1c90b74e484ba48f31944fe04963d99e01ac3767",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/35124cfa9898b2088ee72859e573e0876aff66fc",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/5dd9bec8004ba93cee8b689bf54ce294f59e5e3c",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/c845f2597787ef70159a32566669e308b2807a56",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/d79376fbd2a076de82c1cd8aa0b600b300c75a44",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/deb8abde83a799d2501f3977f6d6051000253f5e",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/fe04b31e386aee4cc3a18f07462af146037dc389",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ]
}