← Back to CVE Explorer

CVE-2025-68745

Full vulnerability record from the local CVENow database.

Description

In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Clear cmds after chip reset Commit aefed3e5548f ("scsi: qla2xxx: target: Fix offline port handling and host reset handling") caused two problems: 1. Commands sent to FW, after chip reset got stuck and never freed as FW is not going to respond to them anymore. 2. BUG_ON(cmd->sg_mapped) in qlt_free_cmd(). Commit 26f9ce53817a ("scsi: qla2xxx: Fix missed DMA unmap for aborted commands") attempted to fix this, but introduced another bug under different circumstances when two different CPUs were racing to call qlt_unmap_sg() at the same time: BUG_ON(!valid_dma_direction(dir)) in dma_unmap_sg_attrs(). So revert "scsi: qla2xxx: Fix missed DMA unmap for aborted commands" and partially revert "scsi: qla2xxx: target: Fix offline port handling and host reset handling" at __qla2x00_abort_all_cmds.

Severity
CRITICAL
CVSS score
9.8 (v3.1)
Vulnerability status
Deferred
Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2025-12-24 13:16:29.440000
Last modified
2026-10-30 13:18:23.077000
View original CVE JSON
{
  "id": "CVE-2025-68745",
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "published": "2025-12-24T13:16:29.440",
  "lastModified": "2026-10-30T13:18:23.077",
  "vulnStatus": "Deferred",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: qla2xxx: Clear cmds after chip reset\n\nCommit aefed3e5548f (\"scsi: qla2xxx: target: Fix offline port handling\nand host reset handling\") caused two problems:\n\n1. Commands sent to FW, after chip reset got stuck and never freed as FW\n   is not going to respond to them anymore.\n\n2. BUG_ON(cmd->sg_mapped) in qlt_free_cmd().  Commit 26f9ce53817a\n   (\"scsi: qla2xxx: Fix missed DMA unmap for aborted commands\")\n   attempted to fix this, but introduced another bug under different\n   circumstances when two different CPUs were racing to call\n   qlt_unmap_sg() at the same time: BUG_ON(!valid_dma_direction(dir)) in\n   dma_unmap_sg_attrs().\n\nSo revert \"scsi: qla2xxx: Fix missed DMA unmap for aborted commands\" and\npartially revert \"scsi: qla2xxx: target: Fix offline port handling and\nhost reset handling\" at __qla2x00_abort_all_cmds."
    },
    {
      "lang": "es",
      "value": "En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nscsi: qla2xxx: Borrar cmds después del reinicio del chip\n\nEl commit aefed3e5548f ('scsi: qla2xxx: target: Corregir el manejo de puertos fuera de línea y el manejo de reinicio del host') causó dos problemas:\n\n1. Los comandos enviados al FW, después del reinicio del chip, se quedaron atascados y nunca se liberaron, ya que el FW no va a responderles más.\n\n2. BUG_ON(cmd -> sg_mapped) en qlt_free_cmd(). El commit 26f9ce53817a ('scsi: qla2xxx: Corregir el desmapeo DMA omitido para comandos abortados') intentó solucionar esto, pero introdujo otro error bajo diferentes circunstancias cuando dos CPUs diferentes estaban compitiendo para llamar a qlt_unmap_sg() al mismo tiempo: BUG_ON(!valid_dma_direction(dir)) en dma_unmap_sg_attrs().\n\nAsí que se revierte 'scsi: qla2xxx: Corregir el desmapeo DMA omitido para comandos abortados' y se revierte parcialmente 'scsi: qla2xxx: target: Corregir el manejo de puertos fuera de línea y el manejo de reinicio del host' en __qla2x00_abort_all_cmds."
    }
  ],
  "affected": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "affectedData": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "programFiles": [
            "drivers/scsi/qla2xxx/qla_os.c",
            "drivers/scsi/qla2xxx/qla_target.c",
            "drivers/scsi/qla2xxx/qla_target.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "aefed3e5548f28e5fecafda6604fcbc65484dbaa",
              "lessThan": "e87e9f92d7735895b7dd97f53dce6d95d08cf29c",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "aefed3e5548f28e5fecafda6604fcbc65484dbaa",
              "lessThan": "0d0a1a267c1ee7c41aeffdca84afcb113787a91a",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "aefed3e5548f28e5fecafda6604fcbc65484dbaa",
              "lessThan": "c82c0fbb97d0fd44324eb55ab758408c7c964b32",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "aefed3e5548f28e5fecafda6604fcbc65484dbaa",
              "lessThan": "5c1fb3fd05da3d55b8cbc42d7d660b313cbdc936",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "aefed3e5548f28e5fecafda6604fcbc65484dbaa",
              "lessThan": "d46c69a087aa3d1513f7a78f871b80251ea0c1ae",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "eb67b7a23d357f578578e737cb6412ae2384f352",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "ec9639d92c1e10d4bc667e842753d85e21683d5c",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "e6e957f552d5b696879a31e5b0e2a9120e1ea86e",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "4.9.316",
              "lessThan": "4.10",
              "versionType": "semver",
              "status": "affected"
            },
            {
              "version": "4.14.281",
              "lessThan": "4.15",
              "versionType": "semver",
              "status": "affected"
            },
            {
              "version": "4.19.245",
              "lessThan": "4.20",
              "versionType": "semver",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "programFiles": [
            "drivers/scsi/qla2xxx/qla_os.c",
            "drivers/scsi/qla2xxx/qla_target.c",
            "drivers/scsi/qla2xxx/qla_target.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "5.2",
              "status": "affected"
            },
            {
              "version": "0",
              "lessThan": "5.2",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.1.191",
              "lessThanOrEqual": "6.1.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.6.160",
              "lessThanOrEqual": "6.6.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.12.114",
              "lessThanOrEqual": "6.12.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.18.2",
              "lessThanOrEqual": "6.18.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.19",
              "lessThanOrEqual": "*",
              "versionType": "original_commit_for_fix",
              "status": "unaffected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
          "baseScore": 9.8,
          "baseSeverity": "CRITICAL",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "availabilityImpact": "HIGH"
        },
        "exploitabilityScore": 3.9,
        "impactScore": 5.9
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-10-16T15:04:59.378599Z",
          "id": "CVE-2025-68745",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "yes"
            },
            {
              "technicalImpact": "total"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "references": [
    {
      "url": "https://git.kernel.org/stable/c/0d0a1a267c1ee7c41aeffdca84afcb113787a91a",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/5c1fb3fd05da3d55b8cbc42d7d660b313cbdc936",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/c82c0fbb97d0fd44324eb55ab758408c7c964b32",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/d46c69a087aa3d1513f7a78f871b80251ea0c1ae",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/e87e9f92d7735895b7dd97f53dce6d95d08cf29c",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ]
}