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 E9FFD14264C for ; Tue, 21 May 2024 14:39:23 +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=1716302364; cv=none; b=RieZ0vGBzEJi0YBOcuR/ign6h/PM0tppYQjdmkq4MBq1JsT2yYBLRzGvRdB7IvwQ7xtt8qk4CW/Zvex8DxXEzG//jhN/Iuq4TEOVy9q3Q1oQ/iE06M5FbRBcAG0WMX/cUXmhwI+VP+bMv//d1/wX9JSNTBkBLcLUzBudhFLTcvE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716302364; c=relaxed/simple; bh=rx/DRyrF9r2I5gvP2owbChdwm6F84G+n3swkjSo+JkY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lDajeCeyS8r6VNSD7nYLErSfCymwUJu5siRdbKuWKUVEmJR6o33CIPGX4VApvlfIcBXjlGVxuIrG895NjASKoICwX/+LbDpK5nsdAwgHeGUThZjCi2xhJjwck3MBGrbFvlv1hl4Py9OiE/vBBYpBzJC7BuV6ZJKRaDlhW4iwpHU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=o9e35CDD; 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="o9e35CDD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75A3CC2BD11; Tue, 21 May 2024 14:39:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716302363; bh=rx/DRyrF9r2I5gvP2owbChdwm6F84G+n3swkjSo+JkY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=o9e35CDDjDHopygTbfVlYEUD45w1UKjigj6SZYhWHWnO4uTtsB05XJsReBwK3SISx QhlzDJz5QaDJCGA8AvcOLXBRt4/m9n/+LhHUD4CrgQTFi9tsqhpDCB3QNm/NkpzAys GDCG8etd9zhK9VEVTjbZds34PiGhfChQ7JtxEVyM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47329: scsi: megaraid_sas: Fix resource leak in case of probe failure Date: Tue, 21 May 2024 16:36:03 +0200 Message-ID: <2024052134-CVE-2021-47329-fb26@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=2155; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rx/DRyrF9r2I5gvP2owbChdwm6F84G+n3swkjSo+JkY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+G81sV0z/8Ip/yfe+qYZy8z+qLJUOtKnrK+5vE9B/X aHQJvClI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbSYsewYG3htD0P+mbnnGAI bpwVfSn4/Y7EewzzM+xen5i+L7w76riNwbG57/76VE9eAQA= 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: megaraid_sas: Fix resource leak in case of probe failure The driver doesn't clean up all the allocated resources properly when scsi_add_host(), megasas_start_aen() function fails during the PCI device probe. Clean up all those resources. The Linux kernel CVE team has assigned CVE-2021-47329 to this issue. Affected and fixed versions =========================== Fixed in 5.4.134 with commit 0c6226601c3e Fixed in 5.10.52 with commit 0680db6f4192 Fixed in 5.12.19 with commit 04b6b9ea8090 Fixed in 5.13.4 with commit e623f79691c5 Fixed in 5.14 with commit b5438f48fdd8 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-47329 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/megaraid/megaraid_sas_base.c drivers/scsi/megaraid/megaraid_sas_fusion.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/0c6226601c3e191a44a57d8f9f814b7e5c308959 https://git.kernel.org/stable/c/0680db6f41920b2c91c7df3cc9cd5968701a6f74 https://git.kernel.org/stable/c/04b6b9ea80906e3b41ff120b45db31768947cf72 https://git.kernel.org/stable/c/e623f79691c5104317669ab36ec316a90c05062f https://git.kernel.org/stable/c/b5438f48fdd8e1c3f130d32637511efd32038152