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 BB8A52AF00 for ; Sat, 4 Oct 2025 15:17:03 +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=1759591023; cv=none; b=RCiWCez6XSI13Uoowg9FwTjA/sX2hP6bKHHlZ3S1U1jQfI0cr2vKLdBkMclJYpkHg8/VPYJvG1Z6LBheEDeYODxIRtHTT/9GdOwUtGVBSjVJtqrablR0gj0JnOCzQa891ssr1qfDiCVA1vO8JYlPfFtkwb002DPG4d2vs6FaGsM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759591023; c=relaxed/simple; bh=IcAyjZvSvLTVCh0FIr5umgJjgdl5rAHJwT3hAfNc2Dk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DNrKivvN44GznbJH6JLAC5u1YYtSfapO4qVxXLN4k7tfDUR8/OMhP1EKo+Uf5gMq6nYVoq7/eKmqZrTk80us78coMwa5T9o9r72H9RQeN0L4cI5ExzQWB+9+MyJpYEY1dvsBZabY2z0UKw5tgHTx/twnBstZ5ZtA6uOv2s3gtI0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NJejl6Pu; 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="NJejl6Pu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2A6EC4CEF1; Sat, 4 Oct 2025 15:17:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759591023; bh=IcAyjZvSvLTVCh0FIr5umgJjgdl5rAHJwT3hAfNc2Dk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NJejl6PuD3jrmCSrQp0YhGkbPZnwV6rBWCGT4QtsGIdU0JFJlof2O2fb11OziSnPH 6rMjf/xShoBiWvGX7+M5LQrSt9EuMMoiWL9gTZJQZ9J+PYfdTRhZvjtvs0EgROu3Rn 2pqBQKzwWn/o1czUCkHprOC77SxAgwZnh8Wc+FIk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50470: xhci: Remove device endpoints from bandwidth list when freeing the device Date: Sat, 4 Oct 2025 17:16:29 +0200 Message-ID: <2025100434-CVE-2022-50470-e56f@gregkh> X-Mailer: git-send-email 2.51.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=3210; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BJ3e757svfTsUteymE/YtO3XS1L0OL7VlxdkYk9B6qA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPrYJeHLWa9n+erpf1yuPvPyxc59/NLOf/eFX9be+tU lGM/yeKdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE2NMZFlz5OuVJG8cj6ycb BDc/CnvPvz2QYTvD/AStVXLKL+QsBPufL3hweItsfZbebQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: xhci: Remove device endpoints from bandwidth list when freeing the device Endpoints are normally deleted from the bandwidth list when they are dropped, before the virt device is freed. If xHC host is dying or being removed then the endpoints aren't dropped cleanly due to functions returning early to avoid interacting with a non-accessible host controller. So check and delete endpoints that are still on the bandwidth list when freeing the virt device. Solves a list_del corruption kernel crash when unbinding xhci-pci, caused by xhci_mem_cleanup() when it later tried to delete already freed endpoints from the bandwidth list. This only affects hosts that use software bandwidth checking, which currenty is only the xHC in intel Panther Point PCH (Ivy Bridge) The Linux kernel CVE team has assigned CVE-2022-50470 to this issue. Affected and fixed versions =========================== Fixed in 4.9.332 with commit 5e4ce28ad907aa54f13b21d5f1dc490525957b0c Fixed in 4.14.298 with commit f0de39474078adef6ece7a183e34c15ce2c1d8d1 Fixed in 4.19.264 with commit cebbc8d335d6bcc1316584f779c08f80287c6af8 Fixed in 5.4.223 with commit 8f1cd9633d1f21efc13e8fc75be8f2b6bb85e38c Fixed in 5.10.153 with commit 678d2cc2041cc6ce05030852dce9ad42719abcfc Fixed in 5.15.77 with commit c892a81c7424b4f6a660cb9c249d354ccf3afeca Fixed in 6.0.7 with commit 3bf860a41e0f2fcea0ac3aae8f7ef887a7994b70 Fixed in 6.1 with commit 5aed5b7c2430ce318a8e62f752f181e66f0d1053 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-2022-50470 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/usb/host/xhci-mem.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/5e4ce28ad907aa54f13b21d5f1dc490525957b0c https://git.kernel.org/stable/c/f0de39474078adef6ece7a183e34c15ce2c1d8d1 https://git.kernel.org/stable/c/cebbc8d335d6bcc1316584f779c08f80287c6af8 https://git.kernel.org/stable/c/8f1cd9633d1f21efc13e8fc75be8f2b6bb85e38c https://git.kernel.org/stable/c/678d2cc2041cc6ce05030852dce9ad42719abcfc https://git.kernel.org/stable/c/c892a81c7424b4f6a660cb9c249d354ccf3afeca https://git.kernel.org/stable/c/3bf860a41e0f2fcea0ac3aae8f7ef887a7994b70 https://git.kernel.org/stable/c/5aed5b7c2430ce318a8e62f752f181e66f0d1053