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 920544D09E3 for ; Wed, 16 Sep 2026 10:35:46 +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=1789554961; cv=none; b=E/slwQPLwXDbO3+4qIGcITCk0Me/+6UkPerhfoXeke+LFojPoaheTlrj8/Yd2n50bc5hZiuZtXjExUPStZUE1Wo6VamWM4/GvJdcc1YNtk6101viTHOx+UEeh3ObOU3MZpgNrFSWqavCUgPpSgcBudCN+Ymr8geDRDLzqwBIFX8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789554961; c=relaxed/simple; bh=t45xVUNmofT7i6YQxbi/G5guUPWxv/gYFQsTRRuNdIg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iQxCnJJSkdzzdd/OdGfDmXEuJUJvTOcMCaosv1oCDqgCbgnOK4DqwxvDZmrTVhh4JGFbaUKFpVtCDk+q/eosLNNAS6xxG88+UxTDBBu6ZQYRa9IQH0fyzMzI0pGctxt+N0QMitptUWA/dt9tdZyse7bp3Gwp6VS2dnldzwOxZfs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ziqX0LXY; 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="ziqX0LXY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B584A1F00898; Wed, 16 Sep 2026 10:35:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789554945; bh=hyGCqUckZTzjMSkd/cWp6BdO1v0ATxwGeh7OH32KKB0=; h=From:To:Cc:Subject:Date:Reply-To; b=ziqX0LXYTHsoHZiGUKsuskNUxnaV3SRIJQw/Odku4QHoWCvaNDHs5VCBGq7p/caI8 K/4FiCGlVocxZvO22/C0btMfssI1MKM/AKNNCgGa9z7QzFXHSUUwS2YRbT7LJt5Xow /bUAnccKwjbP+iMZoBIB8znvcxBMv11DgwlT5oRE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89857: scsi: qla2xxx: Hold qpair lock when sending NVMe LS reject Date: Wed, 16 Sep 2026 11:29:47 +0100 Message-ID: <2026091619-CVE-2026-89857-fed6@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=3648; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WvAh4McLa0pUUzpklNPROnuY3xm1FY5IxxSxDJI2lIQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8ustrn59Kdhfdjmw+8nxJmt5plybGhHn/s8emqq7e 5tb7n3uiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImwBTPMD/1pcupN0fdMM9vy 1F9r27PZvm9XYVgw188sv2uFqAWrx+JG2eQ7s7tb09oB 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: Hold qpair lock when sending NVMe LS reject qla_nvme_ls_reject_iocb() allocates from and advances the request ring through __qla2x00_alloc_iocbs() (which assumes the hardware_lock is held) and qla2x00_start_iocbs() (which advances the ring and rings the request-in doorbell), but takes no lock itself. Two of its callers invoke it without the producer lock held: - qla_nvme_xmt_ls_rsp(), the NVMe-FC .xmt_ls_rsp transport callback, on its error path, and - qla2xxx_process_purls_pkt(), run from the purex work/DPC context. Both use ha->base_qpair, whose qp_lock_ptr is hardware_lock, so they can run concurrently with normal I/O submission on the base ring and corrupt the ring producer state, leading to duplicated or dropped commands. The third caller, qla2xxx_process_purls_iocb(), runs inside qla24xx_process_response_queue() with the qpair lock already held and is safe; that is also why the lock cannot be taken inside the helper itself (it would recursively re-acquire hardware_lock on the response path). Take qp_lock_ptr around the two unlocked callers and document the helper as caller-locked. Both run in process context, so spin_lock_irqsave() is used and nothing in the locked region sleeps. The Linux kernel CVE team has assigned CVE-2026-89857 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 875386b98857822b77ac7f95bdf367b70af5b78c and fixed in 6.6.157 with commit 7eb618877503edbf17aa65e357a81bda1fc8f163 Issue introduced in 6.6 with commit 875386b98857822b77ac7f95bdf367b70af5b78c and fixed in 6.12.110 with commit b3a362466db6b8ec47cc537ac641ac197fa69b5d Issue introduced in 6.6 with commit 875386b98857822b77ac7f95bdf367b70af5b78c and fixed in 6.18.51 with commit 11834e5773e20fd3742d7eb900876e66b9e7d029 Issue introduced in 6.6 with commit 875386b98857822b77ac7f95bdf367b70af5b78c and fixed in 7.2.5 with commit b02ff132017b28222187ebcf95ce7f4cb576cd36 Issue introduced in 6.6 with commit 875386b98857822b77ac7f95bdf367b70af5b78c and fixed in 7.3-rc1 with commit f743488e4a203049f27ec5d8cd0caccc483af01e 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-89857 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_nvme.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/7eb618877503edbf17aa65e357a81bda1fc8f163 https://git.kernel.org/stable/c/b3a362466db6b8ec47cc537ac641ac197fa69b5d https://git.kernel.org/stable/c/11834e5773e20fd3742d7eb900876e66b9e7d029 https://git.kernel.org/stable/c/b02ff132017b28222187ebcf95ce7f4cb576cd36 https://git.kernel.org/stable/c/f743488e4a203049f27ec5d8cd0caccc483af01e