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 138867FBC1 for ; Wed, 22 May 2024 08:20: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=1716366050; cv=none; b=KkWP3n8K8lzm3oi2CE4DAhidxyyosnC6w+vgF8h3M0hUDSXZYA6ZwfU1VgmNFNV9d6ohaksVoJxeaSe9aJIKDRUseghC2Y48NcSdhqPqgrp40zW4nog1H7F4N6M2R9bjXAEgAa79ZfmKMPlw19jpP7mmWiM+hDEC5/utd9stq0w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716366050; c=relaxed/simple; bh=DNQFZc0BNXikZBIIQe2sy4TbBkIvPOHFrAFRsCLas+c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EJG1dgNYcRDuUiURyNk8+UIm0zuv3Y0N2/H7QbcYAcKZHZSZmT8Ul/IYQLkKUn/RFxv2G+SehkLSFThP4ihS60EYWHPITF2F05+sLaws0NgIXUWyxTnxCgNf5Z1Mpyy1ex4faRyTUGZt6hMBAr2VO0phW4XV2lRj4GWokyFS4ok= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VeW2Gwg7; 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="VeW2Gwg7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86362C32781; Wed, 22 May 2024 08:20:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716366049; bh=DNQFZc0BNXikZBIIQe2sy4TbBkIvPOHFrAFRsCLas+c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VeW2Gwg7F6JmabP5a/ZsQOHUfzqG4eTDfBrdyZFYj970K7Wvwn6rbyCwfOBB0j9ZJ TAWVjpLxoinZbBwM8ynpFX/aeU4ybf1N9nsy+3E9mitWrfOFrNcUZl1UZCfzC+aMxt 6OkRScdi1qiglKCi4RKbKpKPiRu5N41DDCreF3D4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47480: scsi: core: Put LLD module refcnt after SCSI device is released Date: Wed, 22 May 2024 10:19:40 +0200 Message-ID: <2024052237-CVE-2021-47480-eaa0@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=2698; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DNQFZc0BNXikZBIIQe2sy4TbBkIvPOHFrAFRsCLas+c=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm+q2b+n1J19klZX7PybqtmWz8Jw3It001uO9eFN++pu 8p2+pNORywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEoIRhwTmX3O7X1/4eYfwo rMWtwuT5gqdJhmF+7nk9y3eHa6488Vhg/I49W2fh/ZvVAA== 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: core: Put LLD module refcnt after SCSI device is released SCSI host release is triggered when SCSI device is freed. We have to make sure that the low-level device driver module won't be unloaded before SCSI host instance is released because shost->hostt is required in the release handler. Make sure to put LLD module refcnt after SCSI device is released. Fixes a kernel panic of 'BUG: unable to handle page fault for address' reported by Changhui and Yi. The Linux kernel CVE team has assigned CVE-2021-47480 to this issue. Affected and fixed versions =========================== Fixed in 4.4.292 with commit 1105573d964f Fixed in 4.9.290 with commit 8e4814a46178 Fixed in 4.14.255 with commit 61a0faa89f21 Fixed in 4.19.216 with commit c2df161f69fb Fixed in 5.4.158 with commit 1ce287eff9f2 Fixed in 5.10.78 with commit 7b57c38d12ae Fixed in 5.14.17 with commit f30822c0b4c3 Fixed in 5.15 with commit f2b85040acec 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-47480 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/scsi.c drivers/scsi/scsi_sysfs.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/1105573d964f7b78734348466b01f5f6ba8a1813 https://git.kernel.org/stable/c/8e4814a461787e15a31d322d9efbe0d4f6822428 https://git.kernel.org/stable/c/61a0faa89f21861d1f8d059123b5c285a5d9ffee https://git.kernel.org/stable/c/c2df161f69fb1c67f63adbd193368b47f511edc0 https://git.kernel.org/stable/c/1ce287eff9f23181d5644db787f472463a61f68b https://git.kernel.org/stable/c/7b57c38d12aed1b5d92f74748bed25e0d041729f https://git.kernel.org/stable/c/f30822c0b4c35ec86187ab055263943dc71a6836 https://git.kernel.org/stable/c/f2b85040acec9a928b4eb1b57a989324e8e38d3f