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 32C2AD530 for ; Wed, 9 Oct 2024 14:14:22 +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=1728483262; cv=none; b=mSKAh7fli2G3S571BeMPXAWkqdcJALC2vpjM3c/3OLjFkt8v+DTY73LZ19IOrBDhcDSTpwgMbd7/bvv7jkKwQtHm1Dlwp2/VtDa50UqUGr/LUFx1Ku4e7beEAPeNvEZbK9G68S0HLmQqkAI4SV4k9rqJEnkwqcCdkbWyHu2co5I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728483262; c=relaxed/simple; bh=Q+U+LVm28pPPTJPXyRXvjWuV0n5gbhr4oR1v+d2Hr8U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oKzVl6DNydaYCuN/G6chJfx4myS/PLsoKRVDMgrjuXYPDHtPVnxc1PTQKZYfQKwa3b5BZQW/0pJFlGn9JE4b+FPPUYR8vVSXT1Llp3N9pctarqt/LqFCRSIf/by1fMDlZBK2DEjWEGfHi8Hy1jJ8XxNFCmBLe0mGN5FN5xbldF8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KeYTR6+Y; 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="KeYTR6+Y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D7EBC4CEC3; Wed, 9 Oct 2024 14:14:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1728483262; bh=Q+U+LVm28pPPTJPXyRXvjWuV0n5gbhr4oR1v+d2Hr8U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KeYTR6+YycfqWku+G20ahYUgNoy+E1oV4bgK0RCkrdiqZ7uqqBuLiYS1PsYQ82ac6 9fE60aZACDaJiW/kChY6fRykj3ZMcONEnbf4GeYZ3/IT+6qQCtCOpoxNAGzfM54HhD OPxBuo+RjfD0OAUipt6INHDt313Zsg8wZh+cNneM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47666: scsi: pm80xx: Set phy->enable_completion only when we wait for it Date: Wed, 9 Oct 2024 16:14:08 +0200 Message-ID: <2024100905-CVE-2024-47666-0015@gregkh> X-Mailer: git-send-email 2.47.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=2134; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Q+U+LVm28pPPTJPXyRXvjWuV0n5gbhr4oR1v+d2Hr8U=; b=owGbwMvMwCRo6H6F97bub03G02pJDOls/WvTD954l3hy18Qf0v1z/Pvfl/amlDQZ1BVq5Owvm Xyr+HlgRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk+UeGBWfv5Cff3tfS63Y0 Yb2aoMAi0w/Gdgzza1zXBrLP5N1sLjPhrPEsVqE+rQ49AA== 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: pm80xx: Set phy->enable_completion only when we wait for it pm8001_phy_control() populates the enable_completion pointer with a stack address, sends a PHY_LINK_RESET / PHY_HARD_RESET, waits 300 ms, and returns. The problem arises when a phy control response comes late. After 300 ms the pm8001_phy_control() function returns and the passed enable_completion stack address is no longer valid. Late phy control response invokes complete() on a dangling enable_completion pointer which leads to a kernel crash. The Linux kernel CVE team has assigned CVE-2024-47666 to this issue. Affected and fixed versions =========================== Fixed in 6.6.51 with commit 7b1d779647af Fixed in 6.10.10 with commit f14d3e1aa613 Fixed in 6.11 with commit e4f949ef1516 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-2024-47666 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/pm8001/pm8001_sas.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/7b1d779647afaea9185fa2f150b1721e7c1aae89 https://git.kernel.org/stable/c/f14d3e1aa613311c744af32d75125e95fc8ffb84 https://git.kernel.org/stable/c/e4f949ef1516c0d74745ee54a0f4882c1f6c7aea