CVE-2025-68745

Linux Kernel 5.2-6.18.1 - Use-After-Free in qla2xxx SCSI Target Command Handling

Title source: llm
STIX 2.1

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.

Scores

EPSS 0.0002
EPSS Percentile 6.5%

Details

Status published
Products (13)
linux/Kernel 5.2.0 - 6.18.2linux
Linux/Linux < 5.2
Linux/Linux 4.14.281 - 4.15
Linux/Linux 4.19.245 - 4.20
Linux/Linux 4.9.316 - 4.10
Linux/Linux 5.2
Linux/Linux 6.18.2 - 6.18.*
Linux/Linux 6.19
Linux/Linux aefed3e5548f28e5fecafda6604fcbc65484dbaa - 5c1fb3fd05da3d55b8cbc42d7d660b313cbdc936
Linux/Linux aefed3e5548f28e5fecafda6604fcbc65484dbaa - d46c69a087aa3d1513f7a78f871b80251ea0c1ae
... and 3 more
Published Dec 24, 2025
Tracked Since Feb 18, 2026