From mboxrd@z Thu Jan 1 00:00:00 1970 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 A794C48FF66 for ; Fri, 25 Sep 2026 10:25:06 +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=1790331907; cv=none; b=BMYDjn1AJM0DbvwLMsslvYqKytR7U2xqhkL6Qwi3JjiIBVN9P8g3H2uIOVPQ8c7dT3oXtl/ue8e9kl/tWaY1b761VfkPgcoTroMIaqr4gEYjNW4vyUT8Uhdv/RVW3IRGj11QZivBTmVonWXCEF8lW6XXUpp1GLpIjhjTfZN39Uw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331907; c=relaxed/simple; bh=uxTFG1Eb+Vy7cExBSryB0iP4vBx3403y8wsB4lPaLLA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ECxrroSJnDYnRlT20cLL0E6JqvbMtSrdTtVgAMs9uaVOC6Rgg7ONg5/PlAzzt+O8h1pddlUcah/+CzoJDCoxR9dXZUekmvGOjV1Ln/nHH2sok/XxZVs345w39HtMSOTWiJTUiGlrCfPCznyP581o0tL0aJtlPHAaegvHA6x1Dss= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=E+kwlfBp; 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="E+kwlfBp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBEE51F000FF; Fri, 25 Sep 2026 10:25:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790331906; bh=OUCY4G63t6qkXgQnPBolHySPJnfFhtXL2Bdqkz3cVxM=; h=From:To:Cc:Subject:Date:Reply-To; b=E+kwlfBpb4tL6pLpxgNslWpc3ubvjAx38i16oZ21XETAYdG31TB0s8MlE27O5qolu xv15ibUjIr/QNHU/fsjJPsfEaGsUZ6zlhVCDAeVO04VeuKrnfyaXppzZX3a6yGH6hQ ZSX458epokAjODp70jVE//u7rrvYrHT4Og8iQEN4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97531: scsi: qla2xxx: Skip vport under deletion in report ID acquisition Date: Fri, 25 Sep 2026 12:21:51 +0200 Message-ID: <2026092547-CVE-2026-97531-8a7e@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=3074; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1t0Zzi1d4guf0ET0QHcV9sp5zJr8B6YcON2cFu7bA9o=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvK1rT03RMdc4b9AU1TnlZkrLrr7LOzPnSWT7JOew+ i8/onemI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACby9RDDgt77s75/KxW+tG3r ORfGE+v+7jmxppRhwZ68smdcpgvvd/7J3mHc+rHTYZafJQA= 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: Skip vport under deletion in report ID acquisition qla24xx_report_id_acquisition() format-1 handling walks ha->vp_list under vport_slock, takes a vref_count on the matching vport and calls qla_update_host_map() to register its port id. A vport teardown via qla24xx_vport_delete() sets VPORT_DELETE, then qla24xx_disable_vp() removes the vport from the host_map btree and zeroes vha->d_id (RESET_AL_PA). The vport is only unlinked from vp_list later, in qla24xx_deallocate_vp_id(), which clears vp_map[idx] (RESET_VP_IDX) but does not touch host_map. In the window in between, report ID acquisition can still find the vport on vp_list and call qla_update_host_map(); with d_id already zeroed it takes the btree_insert32() path and re-inserts the dying vport into host_map. Nothing cleans that entry afterwards, so once scsi_host_put() frees the vha a later host_map lookup dereferences freed memory. Skip a vport that has VPORT_DELETE set before taking the reference, so it is neither re-registered nor scheduled for DPC re-registration. This mirrors the existing guard in qla2x00_alert_all_vps(). The Linux kernel CVE team has assigned CVE-2026-97531 to this issue. Affected and fixed versions =========================== Issue introduced in 4.11 with commit 41dc529a4602ac737020f423f84686a81de38e6d and fixed in 6.18.53 with commit d61e8de98c5a52978fb1edd95fe4dde3131b280e Issue introduced in 4.11 with commit 41dc529a4602ac737020f423f84686a81de38e6d and fixed in 7.2.7 with commit 7a83979d92782f83c90888ebe19bdc9420521940 Issue introduced in 4.11 with commit 41dc529a4602ac737020f423f84686a81de38e6d and fixed in 7.3-rc1 with commit 23582731afa35031c94fadb71a4f3b4afd094649 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-97531 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_mbx.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/d61e8de98c5a52978fb1edd95fe4dde3131b280e https://git.kernel.org/stable/c/7a83979d92782f83c90888ebe19bdc9420521940 https://git.kernel.org/stable/c/23582731afa35031c94fadb71a4f3b4afd094649