Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6CFC4182D0B for ; Thu, 30 May 2024 15:35:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717083349; cv=none; b=L3ad0dV7uA+xhULJs/A73wINL4y8K8wmfpc6DNi77Tv7MXXvDdc4aO4Pg8CB7PN18gWfXS84cgVI43ucTx3ZG2l4Iuip9zOvcUdlROfiRJTtzfy26Ncml3E9z0i0qBwklIc2EEqH8FTi9j8oUNxsUmobJEDPgshf/bV5XjyOO94= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717083349; c=relaxed/simple; bh=RDKQLG18ZgK3Sk0jYmG7YSHTxrJ1HuY3Um5LCFfImmc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cXbInE5kfmDlw3Y1iY5nILXCjC6eefdX6bNMzrT4kOfD9K0LSgezIsVQddI2S3t/hyl8PMERmgSmChD+9P8ICJmWrPLmeyeLQic7eLAJFWYz+lmqwJVguxoxlgs5ZA7VOcunc8nbtfr4+cXPE1PDHVaZSGlhj3vQqIulyLSVzO4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1h8Y93lq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="1h8Y93lq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFE19C4AF09; Thu, 30 May 2024 15:35:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717083349; bh=RDKQLG18ZgK3Sk0jYmG7YSHTxrJ1HuY3Um5LCFfImmc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1h8Y93lqXHxyDagBqT8VxjlNI2cHJ10Ue9xsGUQC3VLV2MeBI5ZvTPa0RZA6k90K3 uIemnrtSdxisTVJvYFtZo5zmfFtDfdyYPqiiXAqfYi2wJxEaphH2b8oJ3TDGvhyLH/ Vr32FdoSvlZG5k+++JgVH8jA1Q82O5IBnv4JeRFw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36952: scsi: lpfc: Move NPIV's transport unregistration to after resource clean up Date: Thu, 30 May 2024 17:35:49 +0200 Message-ID: <2024053040-CVE-2024-36952-f8f8@gregkh> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2534; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RDKQLG18ZgK3Sk0jYmG7YSHTxrJ1HuY3Um5LCFfImmc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkRc87sUlHhO1h8x/T+/6mnfomK/9Yz1uya8HHGbQHHt 72Jse8Xd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEklkZFkz4u6hl44q26a9l Qm+c7+CWPM/uxcGw4NTbF6vXrmnkt/K/+8z1395t/xYsNAMA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: scsi: lpfc: Move NPIV's transport unregistration to after resource clean up There are cases after NPIV deletion where the fabric switch still believes the NPIV is logged into the fabric. This occurs when a vport is unregistered before the Remove All DA_ID CT and LOGO ELS are sent to the fabric. Currently fc_remove_host(), which calls dev_loss_tmo for all D_IDs including the fabric D_ID, removes the last ndlp reference and frees the ndlp rport object. This sometimes causes the race condition where the final DA_ID and LOGO are skipped from being sent to the fabric switch. Fix by moving the fc_remove_host() and scsi_remove_host() calls after DA_ID and LOGO are sent. The Linux kernel CVE team has assigned CVE-2024-36952 to this issue. Affected and fixed versions =========================== Fixed in 5.15.159 with commit f2c7f029051e Fixed in 6.1.91 with commit 0936809d968e Fixed in 6.6.31 with commit 76337eb8daee Fixed in 6.8.10 with commit 718602cd15f4 Fixed in 6.9 with commit 4ddf01f2f150 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-2024-36952 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/lpfc/lpfc_vport.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/f2c7f029051edc4b394bb48edbe2297575abefe0 https://git.kernel.org/stable/c/0936809d968ecf81e0726fbd02ff2a5732d960c3 https://git.kernel.org/stable/c/76337eb8daee32bcc67742efab3168ed4ca299d0 https://git.kernel.org/stable/c/718602cd15f4c5710850090ea3066a89eeb46278 https://git.kernel.org/stable/c/4ddf01f2f1504fa08b766e8cfeec558e9f8eef6c