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 19A7917F36A for ; Wed, 10 Apr 2024 18:57:50 +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=1712775471; cv=none; b=I44Orw+W3iIh0fBGFx5IAYNq0r7tpNyWLyimHfGRu37rMV3yvoVjsnUEbGRGciePK6NZnNkcDi/1ApDw5SF2xXWnzT6mwf9+SBpCKXhg4O20v6n8m+ApCQxL+KUEhdz08SwXMojYrN41qplo1Y5pLHyC6/ES4urgKws+/ebpnHE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712775471; c=relaxed/simple; bh=FMsA1FP2z7Z0y/BFudwSZ7okPaihye1YhZksWxDpioU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Uqj3crdNwkDqSOsLMNj8Q+p737+/XlLiW7FpTHlSLmrff0bjBNEPkpCXBa5cPNmBOBGdYAgeBhXQTihAzaPVQB0KwuDuC4hvds3Lr8/fOdVt8fXmlbjniBuk3qzEDxbxpPUxK72/+o3YyC9cwngn8AkWkh7ygzHv26OpD2fGNF0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RuUw5GZL; 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="RuUw5GZL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45550C433F1; Wed, 10 Apr 2024 18:57:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712775470; bh=FMsA1FP2z7Z0y/BFudwSZ7okPaihye1YhZksWxDpioU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RuUw5GZLqa+vMobRGeW9kTjs8+SGu1K5V760olEltH5Jof54rUQtjmif+Y6TwdjCx 37xaajMOBXNdvEfQp1l9fdE9UaUKpQ3CHRaQnwERZW8Q9XxzMaAGFod6YnmOb1kgCh spRSxVzBRzj9ZGtfKt/KxEaEg77por1LCxgCaDY0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47183: scsi: lpfc: Fix link down processing to address NULL pointer dereference Date: Wed, 10 Apr 2024 20:57:32 +0200 Message-ID: <2024041033-CVE-2021-47183-e130@gregkh> X-Mailer: git-send-email 2.44.0 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=2390; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FMsA1FP2z7Z0y/BFudwSZ7okPaihye1YhZksWxDpioU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGliD2Wf/1ir1hKrpxS7Mp5ju1zja4n9T3grzn1g/Owzt +q875vGjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI+3MMs9nELVcL6P137uJv 9jv8J6JKTPisIsN8X1/FebbHQysk1AqkJgSucFy2MeEDAA== 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: Fix link down processing to address NULL pointer dereference If an FC link down transition while PLOGIs are outstanding to fabric well known addresses, outstanding ABTS requests may result in a NULL pointer dereference. Driver unload requests may hang with repeated "2878" log messages. The Link down processing results in ABTS requests for outstanding ELS requests. The Abort WQEs are sent for the ELSs before the driver had set the link state to down. Thus the driver is sending the Abort with the expectation that an ABTS will be sent on the wire. The Abort request is stalled waiting for the link to come up. In some conditions the driver may auto-complete the ELSs thus if the link does come up, the Abort completions may reference an invalid structure. Fix by ensuring that Abort set the flag to avoid link traffic if issued due to conditions where the link failed. The Linux kernel CVE team has assigned CVE-2021-47183 to this issue. Affected and fixed versions =========================== Fixed in 5.15.5 with commit 28de48a7cea4 Fixed in 5.16 with commit 1854f53ccd88 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-2021-47183 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_sli.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/28de48a7cea495ab48082d9ff4ef63f7cb4e563a https://git.kernel.org/stable/c/1854f53ccd88ad4e7568ddfafafffe71f1ceb0a6