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 E7BB312D766 for ; Fri, 24 May 2024 15:13:29 +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=1716563610; cv=none; b=ZCnyVlTgEb8AeQCCVfGrFGOls/k7BQFBmCAAdl5m630HzYhgBnwZiQ9dh6Oz4NOc3w9Lr8gnV5olF5BZ3Gd6lbU6Hmg+6xmQlcfqg5Ckd1Hr5/Fzs+eAGMKBI0Mk8PVyiwxJSbi4JSvX9WaiWQyQkv7qbTNUis9FRGi8c/+HraU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716563610; c=relaxed/simple; bh=9s2olX750/KKT4hULWaBPhrnSZmWdq1CI9e6m8MCjIs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FZxBkmoLP98kC15wrhacicC1CKjrI+zJhBChoWLBK4T7NRafqX/Rnofaz5bQtsiYn1+LdLaDxVqDj2ovTiKio6DMOjWOvBntXQBXppQd4rSEbdceugE3A7kn1qlbNQovgt2EBpHwacZofK8PIJa7poeppIkffDSh1Cv3+60DLGE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KpdiZPkt; 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="KpdiZPkt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6EDD1C2BBFC; Fri, 24 May 2024 15:13:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716563609; bh=9s2olX750/KKT4hULWaBPhrnSZmWdq1CI9e6m8MCjIs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KpdiZPktZxUiriDPz4++oyAzoeS+JAA3buj7c8aYE+KbAdrSfwgnSEzFHL7CafO52 YRKl5swfhOhaYHavHoT4XUZYVafdjAeTUDJb8YRcraC0pPpDSUabsBlhcu8sG9E9oA Q6/0/AA2Ng6Tx/vD91wbcZar46tzPjaiC0hqhN2c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47565: scsi: mpt3sas: Fix kernel panic during drive powercycle test Date: Fri, 24 May 2024 17:12:57 +0200 Message-ID: <2024052452-CVE-2021-47565-5f60@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=3044; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9s2olX750/KKT4hULWaBPhrnSZmWdq1CI9e6m8MCjIs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkB60oqm/tuHnxUd5Dlmu1aM64Nmpss2tS09+p8yA+0N ZzYOUmxI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbCJsawoDdUQazXu9LqO0/S o8UShoGJbidPMswPfjw9R4d7VbVJ5Tf/VVN7WyIYH6kDAA== 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: mpt3sas: Fix kernel panic during drive powercycle test While looping over shost's sdev list it is possible that one of the drives is getting removed and its sas_target object is freed but its sdev object remains intact. Consequently, a kernel panic can occur while the driver is trying to access the sas_address field of sas_target object without also checking the sas_target object for NULL. The Linux kernel CVE team has assigned CVE-2021-47565 to this issue. Affected and fixed versions =========================== Issue introduced in 3.8 with commit f92363d12359 and fixed in 4.4.294 with commit 5d4d50b1f159 Issue introduced in 3.8 with commit f92363d12359 and fixed in 4.9.292 with commit 58ef2c7a6de1 Issue introduced in 3.8 with commit f92363d12359 and fixed in 4.14.257 with commit dd035ca0e7a1 Issue introduced in 3.8 with commit f92363d12359 and fixed in 4.19.219 with commit 0d4b29eaadc1 Issue introduced in 3.8 with commit f92363d12359 and fixed in 5.4.163 with commit 7e324f734a91 Issue introduced in 3.8 with commit f92363d12359 and fixed in 5.10.83 with commit 2bf9c5a5039c Issue introduced in 3.8 with commit f92363d12359 and fixed in 5.15.6 with commit 8485649a7655 Issue introduced in 3.8 with commit f92363d12359 and fixed in 5.16 with commit 0ee4ba13e09c 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-47565 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/mpt3sas/mpt3sas_scsih.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/5d4d50b1f159a5ebab7617f47121b4370aa58afe https://git.kernel.org/stable/c/58ef2c7a6de13721865d84b80eecf56d6cba0937 https://git.kernel.org/stable/c/dd035ca0e7a142870a970d46b1d19276cfe2bc8c https://git.kernel.org/stable/c/0d4b29eaadc1f59cec0c7e85eae77d08fcca9824 https://git.kernel.org/stable/c/7e324f734a914957b8cc3ff4b4c9f0409558adb5 https://git.kernel.org/stable/c/2bf9c5a5039c8f4b037236aed505e6a25c1d5f7b https://git.kernel.org/stable/c/8485649a7655e791a6e4e9f15b4d30fdae937184 https://git.kernel.org/stable/c/0ee4ba13e09c9d9c1cb6abb59da8295d9952328b