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 1B5403D9DB1 for ; Fri, 25 Sep 2026 10:23:08 +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=1790331789; cv=none; b=fDaWIQ9hDEPKjrjCT8Ok3BWS6i178NxyFxOLLEkhCFr8IWckrs8RFN5Ymrb1cEmkxqR7D5kGG6VqmajlpVRewFqOvHm+gUlsOzi/+hZp6fogd6eqqfaggbL5W7Ytv8oFeVH/nCSU7uwyIa+MQwvTphyqCzFQ7DvHj7odxf2WCiM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331789; c=relaxed/simple; bh=F2wdL24QRkAoHa4EqqHqKX4HVrC4cM58GsOtJ3hGGPo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LCE2gQixpljx3bSnq4W1QU7dFrUax4NS1kciRXpfYqcbqG1c6M8qHwgZ8SaRniSES3lNbPWu0FZdFEKWI+CkEwWlyqcdv73DRfWUifYarGmapklY+ACLyHIN0X5GelTRxTVl3TgQs7L1MKu9X9Fp3jyFNH44buHWTGZvQdAMQe0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pFCGdfsl; 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="pFCGdfsl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 688441F000FF; Fri, 25 Sep 2026 10:23:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790331788; bh=XvmT4HioExmqhIBaJqH2NHCRU4CdscDE/Ga2vPJ+T5I=; h=From:To:Cc:Subject:Date:Reply-To; b=pFCGdfsly5VKf/mVRfoGa9CA1FVbpqYU2/p8QhGW0PtVhRGwtXbG78WqnDyuyYXzH bFXc/WZ7E8GuwJ54wzO0PQBxbLqsRYj8MPvFyNHvjF45D2jk0+s0usgCVVVw+fTp01 CXl/bUCYfIaoYu++yoTa2RKb5ZNgWh5ZABHNH0eU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97535: scsi: qla2xxx: Bound VP index against VP_CTRL IOCB bitmap size Date: Fri, 25 Sep 2026 12:21:55 +0200 Message-ID: <2026092547-CVE-2026-97535-f3e1@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=3020; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nNdMJENfSVbgwTQSkexZBTCOW13rzr8jGRzqiCDBfQU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvG083B6vdZk55Ve2VVsGj49uiqYdC7Psw4a4stlLn +z5f1qhI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayZx3DgmbGqIyuW9a3J3v2 3Hhac+i5h69hG8M8U7bshiUt8ZN7W/VWcCScvbSy/LoCAA== 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: Bound VP index against VP_CTRL IOCB bitmap size The VP control IOCB selects its target virtual port by setting one bit in vp_idx_map, a fixed 16-byte (128-bit) array in both vp_ctrl_entry_24xx and vp_ctrl_entry_24xx_ext. qla25xx_ctrlvp_iocb() computes map = (vp_index - 1) / 8 and writes vce->vp_idx_map[map] without checking that map stays within the array. max_npiv_vports is taken from firmware and only sanitized to a MIN_MULTI_ID_FABRIC-aligned boundary, so it can legitimately be 191 or 255, and qla24xx_control_vp() only rejects vp_index >= max_npiv_vports. A vp_index above 128 therefore yields map >= 16 and an out-of-bounds write of up to 16 bytes past vp_idx_map, corrupting the trailing IOCB fields (or the adjacent request-ring slot on the 64-byte layout). Reject a vp_index that cannot be represented in the IOCB bitmap in qla24xx_control_vp(), and add a defensive ARRAY_SIZE() guard in qla25xx_ctrlvp_iocb() before the write. Adapters that report the usual 63 or 127 NPIV vports are unaffected. The Linux kernel CVE team has assigned CVE-2026-97535 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit 2853192e154b813fe34a6cbee5e34dfef50d29d0 and fixed in 6.18.53 with commit 48a44e19746eaa70320a3c2571dcb345192fca72 Issue introduced in 4.16 with commit 2853192e154b813fe34a6cbee5e34dfef50d29d0 and fixed in 7.2.7 with commit 13354ad251ab009102597a791bc7c4d2265229e1 Issue introduced in 4.16 with commit 2853192e154b813fe34a6cbee5e34dfef50d29d0 and fixed in 7.3-rc1 with commit 878613ecb5a36db26859c4fd83daf9283a334fa2 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-97535 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_iocb.c 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/48a44e19746eaa70320a3c2571dcb345192fca72 https://git.kernel.org/stable/c/13354ad251ab009102597a791bc7c4d2265229e1 https://git.kernel.org/stable/c/878613ecb5a36db26859c4fd83daf9283a334fa2