Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E2302F6903 for ; Wed, 24 Dec 2025 12:10:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766578230; cv=none; b=obo/DFPDFNhcTraCh/aKYTiOxepcv4L7nrDP1TtmNnEGZir0jO2hxRsKv6f0Vrm7PQ+P63yxgTuZGO+okDg5zaqNzCvsclVVVoTQyZdG40/aekpH2n477mSNN4ImmhPAUNS9Cg3yI5tsx4vDcM3/8Yl6KYfnmr8Tmk66icitWfQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766578230; c=relaxed/simple; bh=swdrjaSSJeS8YOqmURgfXq+54yNTde44c1TGUZHbAq4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FwjDpHkkeuIFeauDQ4gw/Adcomqu0v4fj0wNTogg5Yo4e/SEJEM4s7OEo2Sx1KPiU+0D6c/M8y1WC/YTsBto9xqE8m05chsUmQzxhDgGCyFbHyO4BrFNK7Vh1xPy/kkXgfIUO7hVi2EDGsOqVT85g5w86+5nsu6KC7oorSTyuVE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=flZQ5x+s; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="flZQ5x+s" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7EE11C4CEFB; Wed, 24 Dec 2025 12:10:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766578230; bh=swdrjaSSJeS8YOqmURgfXq+54yNTde44c1TGUZHbAq4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=flZQ5x+sXM6qx2gEJlceYCOoH0rBnoTN/n/yP4h0mia1kiZQ9hsJqDRvxFwmomtJx yAWB1C9ZxvepJQzYAfKNc2ClrvVORHBEqbWbd+HchaTkLt/t6dI+PMhlGCeoOmFxUc KxXNNlr4VLZZoFLb/+CrxfTx6JMoQGKKMGAdkTEA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68745: scsi: qla2xxx: Clear cmds after chip reset Date: Wed, 24 Dec 2025 13:10:21 +0100 Message-ID: <2025122416-CVE-2025-68745-69b5@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2884; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mcRzu4MNFmH9/RVedVW6jJcbESa75/ZZ+frVl0zOIFA=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneNzRunX88q8/11gKlqhzD7HU7M6d+9/K13lX51frbS X672i/7O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiak4M8wtV32lwbjPfJCm+ ed93GSX710eNfRgWnI95XGUq0HFwL/vic5GV7Jtscgo+AQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2025-68745 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit aefed3e5548f28e5fecafda6604fcbc65484dbaa and fixed in 6.18.2 with commit 5c1fb3fd05da3d55b8cbc42d7d660b313cbdc936 Issue introduced in 5.2 with commit aefed3e5548f28e5fecafda6604fcbc65484dbaa and fixed in 6.19-rc1 with commit d46c69a087aa3d1513f7a78f871b80251ea0c1ae Issue introduced in 4.9.316 with commit eb67b7a23d357f578578e737cb6412ae2384f352 Issue introduced in 4.14.281 with commit ec9639d92c1e10d4bc667e842753d85e21683d5c Issue introduced in 4.19.245 with commit e6e957f552d5b696879a31e5b0e2a9120e1ea86e Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-68745 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/scsi/qla2xxx/qla_os.c drivers/scsi/qla2xxx/qla_target.c drivers/scsi/qla2xxx/qla_target.h Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/5c1fb3fd05da3d55b8cbc42d7d660b313cbdc936 https://git.kernel.org/stable/c/d46c69a087aa3d1513f7a78f871b80251ea0c1ae