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 4EE3421771B for ; Fri, 2 May 2025 15:57:05 +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=1746201426; cv=none; b=P8vLTVmc4KUI3WFAMwrAzgcMS5XvUbo8A1qvMlzvUYjLLH8Ogq3uQ7YOzX8BxJyKmXQ+EnRRfoznNaV17AqWhv17oQQehc0WG2cTXiEZcjyfzV9R47GxfMMeWSTOhODG9ad49Jfa3wf1qrRXs9mTp5XsrE4Y1FkgQJd68zxi0qA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746201426; c=relaxed/simple; bh=EU5MqxVLlvN8l3Qq2x0ag8oLmAejTKr2K28NSbN+Plg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=INCGVnjZFh2dvbJrKGLcLiHwF68+fhk/9BeUm4a0tNUVeWPFECp9xRI3yk8vyBAnYFQhgJ6CO1Xggn6m14BcG2wNhj4rxLCZ4QO493C7xG16dN8XchUpAdeid1LZPo+6F8T9/dbBQpOGJuFK2E9WxtVpnVAZw9aNcXhNXJ+Yq5c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=C2vVkIoI; 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="C2vVkIoI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52399C4CEE4; Fri, 2 May 2025 15:57:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746201425; bh=EU5MqxVLlvN8l3Qq2x0ag8oLmAejTKr2K28NSbN+Plg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=C2vVkIoIJOmwxWhgZ1yFNZpLUDrFkA8qjeYx1VAcQmeqfv4kvxIHNHNjuUs6bLuPl gWg5tYyNJUD3Gh45o0BRv+fF3nu/YVSLRr4WTuyP2p2coCc+E5ubNiB1ABDv9gp/lq E1+8oXmdF8dtOXj5g+Klo20+UOpq2xWGfG3GgouQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53041: scsi: qla2xxx: Perform lockless command completion in abort path Date: Fri, 2 May 2025 17:55:06 +0200 Message-ID: <2025050202-CVE-2023-53041-472c@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3539; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=X/ocf5LvjGbfnnc8uuVDyMOvVOmeDeY/q4l4N0rJhQs=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkir64tr18pELo3LeprWmZsgovHvVw+cT4G4ywz7dIU1 TepTJs6YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCJMMxnmil4Jkp56QOrU1P2p XRWKwmdKXp8uZ1hwraeQM3GefLFGU4XO9CPybf+aT98CAA== 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: Perform lockless command completion in abort path While adding and removing the controller, the following call trace was observed: WARNING: CPU: 3 PID: 623596 at kernel/dma/mapping.c:532 dma_free_attrs+0x33/0x50 CPU: 3 PID: 623596 Comm: sh Kdump: loaded Not tainted 5.14.0-96.el9.x86_64 #1 RIP: 0010:dma_free_attrs+0x33/0x50 Call Trace: qla2x00_async_sns_sp_done+0x107/0x1b0 [qla2xxx] qla2x00_abort_srb+0x8e/0x250 [qla2xxx] ? ql_dbg+0x70/0x100 [qla2xxx] __qla2x00_abort_all_cmds+0x108/0x190 [qla2xxx] qla2x00_abort_all_cmds+0x24/0x70 [qla2xxx] qla2x00_abort_isp_cleanup+0x305/0x3e0 [qla2xxx] qla2x00_remove_one+0x364/0x400 [qla2xxx] pci_device_remove+0x36/0xa0 __device_release_driver+0x17a/0x230 device_release_driver+0x24/0x30 pci_stop_bus_device+0x68/0x90 pci_stop_and_remove_bus_device_locked+0x16/0x30 remove_store+0x75/0x90 kernfs_fop_write_iter+0x11c/0x1b0 new_sync_write+0x11f/0x1b0 vfs_write+0x1eb/0x280 ksys_write+0x5f/0xe0 do_syscall_64+0x5c/0x80 ? do_user_addr_fault+0x1d8/0x680 ? do_syscall_64+0x69/0x80 ? exc_page_fault+0x62/0x140 ? asm_exc_page_fault+0x8/0x30 entry_SYSCALL_64_after_hwframe+0x44/0xae The command was completed in the abort path during driver unload with a lock held, causing the warning in abort path. Hence complete the command without any lock held. The Linux kernel CVE team has assigned CVE-2023-53041 to this issue. Affected and fixed versions =========================== Fixed in 5.4.240 with commit 9189f20b4c5307c0998682bb522e481b4567a8b8 Fixed in 5.10.177 with commit 231cfa78ec5badd84a1a2b09465bfad1a926aba1 Fixed in 5.15.105 with commit d6f7377528d2abf338e504126e44439541be8f7d Fixed in 6.1.22 with commit cd0a1804ac5bab2545ac700c8d0fe9ae9284c567 Fixed in 6.2.9 with commit 415d614344a4f1bbddf55d724fc7eb9ef4b39aad Fixed in 6.3 with commit 0367076b0817d5c75dfb83001ce7ce5c64d803a9 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-2023-53041 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 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/9189f20b4c5307c0998682bb522e481b4567a8b8 https://git.kernel.org/stable/c/231cfa78ec5badd84a1a2b09465bfad1a926aba1 https://git.kernel.org/stable/c/d6f7377528d2abf338e504126e44439541be8f7d https://git.kernel.org/stable/c/cd0a1804ac5bab2545ac700c8d0fe9ae9284c567 https://git.kernel.org/stable/c/415d614344a4f1bbddf55d724fc7eb9ef4b39aad https://git.kernel.org/stable/c/0367076b0817d5c75dfb83001ce7ce5c64d803a9