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 CFB4C48FF6A for ; Fri, 25 Sep 2026 10:25:00 +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=1790331902; cv=none; b=UDW38lTGKzLAVBTqPRnnE5zDQYdLf27rTPLS2FR9unkAJyPDvDjnnctxirhT8i9WkPgjPt8gw5ZQBijc/tCPr0F28CwDCrOJJIllvuC/yp80bPMCtWXHXppVfbrujyXIJ9zpVT0J2z0p6tjR7STUheE22W2GYO9JKQ66xjfE8uQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331902; c=relaxed/simple; bh=26nE3jG1oFp+Ll7Y3b700BwowSYY3zvlpqsW9XNb+Jo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TX3k0LdeBt9VhbWvvm0+Tfx6QEeIxYONj1e5JmT/b9Dz/dLvFa3PaCHha/suUU4bH5Scu/FgTC1gl0bjnkmtIzzLCzRfGQE1tQ7IpyG4y7OU+5jM8JQ19nUeN6xfE9PLzxKm6r0frmhqdFKOX7c5pOWCDmYg4TdURdSPRRJ2mTc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ny31s7gn; 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="Ny31s7gn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D18B1F000FF; Fri, 25 Sep 2026 10:24:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790331900; bh=uclBPnUbNqd4vM0hfdNk3bKSBT8YYKHbvcJbzMAJb98=; h=From:To:Cc:Subject:Date:Reply-To; b=Ny31s7gnA2HzNyXsmK/NIaGHuIkMvvr/MXYJQeuEcONZESGzmZ9InKgBdbyv8C5fa Kfa916UlDDwRaGBAnGomxoooTJVXqtqNNWs5N6hI9rdtQOg5qm7Aed9WQ7kffNS1k3 kJ1CYTiL/1koIa39yB54C1C3mNJD0Iz+nikAkZO0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97529: scsi: qla2xxx: Validate BSG request_len before reading vendor_cmd[] Date: Fri, 25 Sep 2026 12:21:49 +0200 Message-ID: <2026092546-CVE-2026-97529-c532@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=3134; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ll8rG0jydPtiEcEwDE7QJysh9O/hDughH3QGknThIWE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvK38NV9v79qz1U+tcWrH02lWohI/o64alXi2/bfMd 74/91N8RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykUI9hwY7Frr/ts79se6Uz s81U5qRbomSjEMOCtgWpFQ6qzwUi2XeHWr3r3Kf6usEcAA== 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: Validate BSG request_len before reading vendor_cmd[] The FC BSG transport allocates job->request via memdup_user() using the exact user-supplied request_len. For FC_BSG_HST_VENDOR, fc_bsg_host_dispatch() only guarantees request_len covers msgcode and vendor_id; it does not account for the vendor_cmd[] flexible array. qla2xxx then reads the command selector vendor_cmd[0] and, in several sub-handlers, vendor_cmd[1]/[2] or structures overlaid on the vendor command area without verifying request_len. A caller holding CAP_SYS_RAWIO can submit a short request whose vendor_id matches the host, triggering out-of-bounds heap reads (KASAN-detectable, and able to mis-select a command or panic). Add a central guard in qla2x00_process_vendor_specific() so the selector is always in bounds, restrict the early vendor_cmd[0] read in qla24xx_bsg_request() to sufficiently long vendor messages, and add request_len checks to the sub-handlers that read further: qla24xx_proc_fcp_prio_cfg_cmd(), qla2x00_process_loopback(), qla84xx_reset(), qla84xx_updatefw(), qla2x00_read_optrom(), qla2x00_update_optrom(), qlafx00_mgmt_cmd() and qla28xx_validate_flash_image(). The Linux kernel CVE team has assigned CVE-2026-97529 to this issue. Affected and fixed versions =========================== Issue introduced in 4.10 with commit 01e0e15c8b3b32e006e5cccac10c8b377ac3d803 and fixed in 6.18.53 with commit 740f3458a4798af54aaf8cf63e797d407e8b6d3b Issue introduced in 4.10 with commit 01e0e15c8b3b32e006e5cccac10c8b377ac3d803 and fixed in 7.2.7 with commit f75bff451a2fac5aed82f9641df1e9a42c5a899d Issue introduced in 4.10 with commit 01e0e15c8b3b32e006e5cccac10c8b377ac3d803 and fixed in 7.3-rc1 with commit 4cf38dd9465736141263ebb63375868311a0ec81 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-97529 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_bsg.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/740f3458a4798af54aaf8cf63e797d407e8b6d3b https://git.kernel.org/stable/c/f75bff451a2fac5aed82f9641df1e9a42c5a899d https://git.kernel.org/stable/c/4cf38dd9465736141263ebb63375868311a0ec81