Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 2AC4648EC9D for ; Fri, 25 Sep 2026 10:23:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331795; cv=none; b=BdcmxRFdGPsOs3Ae7pKYpoW1zodAUKq1B5N0vyL60OuuN9XMm7PU92QIuVNfFnNoFYYzrvmq2O6kEM0byyARXnu9xm5HmJSkmCnhrGoSP2rR5TtyuDK4CmueQwOhkBEvWIoE36OUWZfyHI2CswIA7J0hwHBVm5jYB6MoiHaVTZ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331795; c=relaxed/simple; bh=PccQ3+shJGGZUvieWkr98JDL/W9y8V9sMZ9EZdB5MuI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rjsXhTHg4GNcU9jNMi7dvwxiASBShVp/FKaKRBkuQ9RYErbNiDyCNQJyEXpDTjqanStloBthmg4jvU2fgPfK5igZs1omq5FnEnlv4xWxgPSkSPEjcbKzENZ2BIgrP9LCK4rZ0Vg39e1ytULXqs7TvGfpVlvPqnaHLAC3jx+UqYY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=w+Km+Cya; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="w+Km+Cya" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 292FD1F000FF; Fri, 25 Sep 2026 10:23:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790331793; bh=94NS+PtTaNqKS8lm/N5A8oZxmSIlfiYrEaV07yF8k+o=; h=From:To:Cc:Subject:Date:Reply-To; b=w+Km+CyavTJgA+HapIt1VzHy6KdKkqUOykaICGOPFWvIleIQA6xymVQb2DWyoKpQn 3n1VGz/lvrh+Odkm+ySHqt7BsgYSEBNVpMiZmtM8XzmdJtyWPE/aL61kuq0ivCMMU+ WtkcWwGzQGPwBRKHcLDyiTQqA1wIbpJlbz1xM5gg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97537: scsi: qla2xxx: Fix queue teardown NULL dma_free and bitmap locking Date: Fri, 25 Sep 2026 12:21:57 +0200 Message-ID: <2026092548-CVE-2026-97537-08f7@gregkh> X-Mailer: git-send-email 2.55.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=3009; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7fBk3eJvPD827e8+br0qBLrqS6uhi0aRzuVVCaEjlK8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvG2c2C6+WSMm1T9n+9T3iSYvdjYUet/mW250ZMFX1 5oX1lvndsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEwvwZ5lmdNTHrCPnytOrg sUlK56Zs+NwjOY1hwfXwqXz6WnNeLQpllHhn4ZPh0JTyAgA= 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: Fix queue teardown NULL dma_free and bitmap locking qla25xx_free_req_que() and qla25xx_free_rsp_que() have two pre-existing bugs exposed on the error path of qla25xx_create_{req,rsp}_que(): 1. When dma_alloc_coherent() fails during queue creation, the error path calls the free function with req->ring / rsp->ring still NULL (from kzalloc). The unconditional dma_free_coherent() with a NULL cpu_addr is undefined behavior and can panic. 2. The free functions clear req_qid_map / rsp_qid_map under vport_lock, but the create functions protect the same bitmaps with mq_lock. This provides no mutual exclusion. Additionally, the create error path clears the bit and releases mq_lock before calling the free function, creating a window where another thread can allocate the same que_id and have its ha->req_q_map entry clobbered by the subsequent lockless NULL assignment in the free function. Fix by: - Guarding dma_free_coherent() with a NULL check on the ring pointer. - Using mq_lock (the lock held by all creators) in the free functions to atomically NULL the map entry and clear the bitmap bit. - Removing the now-redundant clear_bit blocks from the create error paths since the free functions handle it atomically. The Linux kernel CVE team has assigned CVE-2026-97537 to this issue. Affected and fixed versions =========================== Fixed in 6.18.53 with commit f35cb67f2092b49d7949065dd56895ed47238f22 Fixed in 7.2.7 with commit 94fc0c5b45de2bf3a691619bcfd10b9a49fc647e Fixed in 7.3-rc1 with commit 34a40e0dff940ac5eba494a69b553ea571e24873 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-2026-97537 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_mid.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/f35cb67f2092b49d7949065dd56895ed47238f22 https://git.kernel.org/stable/c/94fc0c5b45de2bf3a691619bcfd10b9a49fc647e https://git.kernel.org/stable/c/34a40e0dff940ac5eba494a69b553ea571e24873