{"id":"CVE-2025-68745","aliases":["CVE-2025-68745"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: qla2xxx: Clear cmds after chip reset","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-12-24T12:09:41.517Z","modified":"2026-10-30T13:18:23.077Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"aefed3e5548f28e5fecafda6604fcbc65484dbaa","fixed":"e87e9f92d7735895b7dd97f53dce6d95d08cf29c","status":"affected"},{"type":"git","introduced":"aefed3e5548f28e5fecafda6604fcbc65484dbaa","fixed":"0d0a1a267c1ee7c41aeffdca84afcb113787a91a","status":"affected"},{"type":"git","introduced":"aefed3e5548f28e5fecafda6604fcbc65484dbaa","fixed":"c82c0fbb97d0fd44324eb55ab758408c7c964b32","status":"affected"},{"type":"git","introduced":"aefed3e5548f28e5fecafda6604fcbc65484dbaa","fixed":"5c1fb3fd05da3d55b8cbc42d7d660b313cbdc936","status":"affected"},{"type":"git","introduced":"aefed3e5548f28e5fecafda6604fcbc65484dbaa","fixed":"d46c69a087aa3d1513f7a78f871b80251ea0c1ae","status":"affected"},{"type":"git","version":"eb67b7a23d357f578578e737cb6412ae2384f352","status":"affected"},{"type":"git","version":"ec9639d92c1e10d4bc667e842753d85e21683d5c","status":"affected"},{"type":"git","version":"e6e957f552d5b696879a31e5b0e2a9120e1ea86e","status":"affected"},{"type":"semver","introduced":"4.9.316","fixed":"4.10","status":"affected"},{"type":"semver","introduced":"4.14.281","fixed":"4.15","status":"affected"},{"type":"semver","introduced":"4.19.245","fixed":"4.20","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.2","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.2","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/e87e9f92d7735895b7dd97f53dce6d95d08cf29c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0d0a1a267c1ee7c41aeffdca84afcb113787a91a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c82c0fbb97d0fd44324eb55ab758408c7c964b32","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5c1fb3fd05da3d55b8cbc42d7d660b313cbdc936","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d46c69a087aa3d1513f7a78f871b80251ea0c1ae","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-10-16T15:04:59.378Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68745","url":"https://www.cve.org/CVERecord?id=CVE-2025-68745","licence":"CVE Terms of Use","modified":"2026-10-30T12:23:17.973Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68745","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68745","licence":"Public domain","modified":"2026-10-30T13:18:23.077Z"}],"updatedAt":"2026-11-25T22:59:09.906Z","epss":{"score":0.00581,"percentile":0.49151,"date":"2026-12-01T12:00:22.000Z"}}