From mboxrd@z Thu Jan 1 00:00:00 1970 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 B042021C17B for ; Wed, 26 Feb 2025 02:27:58 +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=1740536878; cv=none; b=K+/1POSvJUbI+vbNagCM6yfhN7WXhbX4zxiXJSzloyl7f5oM9ConUu+9Oksa+t4vDPWQR4rreVxu9wFqpG+CzUTGR//3MZJNkaImgKtaS84zUK5zx552zo8+tnWx1X+Gq9eGYHJpb2NRQn5o3HCWN+vfZU7VEbulksGuS4sJt6g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536878; c=relaxed/simple; bh=nGBuDFj7XXQOj11s0u3X1CpTgUwB4N96fJpQRB9lWsg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=K/bxjUyX5mUGjRgNi9fnfFtNvqqecqjeK+YOamo2+op7WDZsYrobs6Yc+I657V6XcaC72v/YJJ3sre0tTneb/YbRZS2hOwajoq8Ia0xB8UWXnEWFpSZRZfJRQVwcpBdD4Ho0WvoT94af15coitvKnnqW7mV7K26dK2D50VoPQZ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fkwE16H4; 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="fkwE16H4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60810C4CEDD; Wed, 26 Feb 2025 02:27:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536878; bh=nGBuDFj7XXQOj11s0u3X1CpTgUwB4N96fJpQRB9lWsg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=fkwE16H41rGxcMg4slsA0C6lSMRaw65zUIlF3lK75b53uYRY1YSbKVpebnDRonYzL ibc6Ak32u7+F1Wb4QjLsIHrjn4r6Xdie6fiIoEXu6bWeo6pH0o3+gb/zCbP4N6nehn DzjC+/2WERHifm239XXULau9ums4NLalz/7TuLIc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49730: scsi: lpfc: Resolve NULL ptr dereference after an ELS LOGO is aborted Date: Wed, 26 Feb 2025 03:24:53 +0100 Message-ID: <2025022634-CVE-2022-49730-db2b@gregkh> X-Mailer: git-send-email 2.48.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=2145; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nGBuDFj7XXQOj11s0u3X1CpTgUwB4N96fJpQRB9lWsg=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7ql5lzt80M9nj4znOawWVLlIsQcu1Fku1Lwu2EGZct SmQeXNJRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk7mGGeVoT7l45cu9scOJO 94uizeXyZf1xBxkWrGbYJbXY9FLdb/sjzEybniZrbObJAAA= 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: Resolve NULL ptr dereference after an ELS LOGO is aborted A use-after-free crash can occur after an ELS LOGO is aborted. Specifically, a nodelist structure is freed and then ndlp->vport->cfg_log_verbose is dereferenced in lpfc_nlp_get() when the discovery state machine is mistakenly called a second time with NLP_EVT_DEVICE_RM argument. Rework lpfc_cmpl_els_logo() to prevent the duplicate calls to release a nodelist structure. The Linux kernel CVE team has assigned CVE-2022-49730 to this issue. Affected and fixed versions =========================== Fixed in 5.15.49 with commit 5e83869e29448958f8ae2c6911f350318f75e4fc Fixed in 5.18.6 with commit eea34ce23dc3a595695856dc73bb132a9c5a2902 Fixed in 5.19 with commit b1b3440f437b75fb2a9b0cfe58df461e40eca474 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-2022-49730 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_els.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/5e83869e29448958f8ae2c6911f350318f75e4fc https://git.kernel.org/stable/c/eea34ce23dc3a595695856dc73bb132a9c5a2902 https://git.kernel.org/stable/c/b1b3440f437b75fb2a9b0cfe58df461e40eca474