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 27D2510A1F for ; Tue, 29 Oct 2024 00:51:11 +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=1730163072; cv=none; b=tmRel2XKvhiehSzWWRaL4JVIyxQiLlV1arKjt4cuvs473I9lE1LuZfDUi0WI8KVx+D4WJFDF1AfX8yhBQXTtvZ6qolzCbVWqKAmyzqxrgbYjGfNB073Pkjl61TClVukkvpqeUtwpEUudF1XXsPiJbfiaMOnsp/8JCurqdY571cI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730163072; c=relaxed/simple; bh=cs8mb1BdNMCnjUvoKzH597MXV47IW/ce5hUXSzQS/oQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XBp0hM0lPdIsuhn0TC2bd9LMQHq6KYIn4EnuioDacSQXqo8oksHpt+8KePX/ECK6+Itjfb6jBDsv/ZWT+R5ZkWEptlgjcIjvINvyjHySunJHa27I6BTlQRmoes2N9Jz1nvBt1nubRH+JVWAEJwr26NEQXNU9j8yifd1vJJCVPME= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OrzZA5kz; 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="OrzZA5kz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66BA3C4CEC3; Tue, 29 Oct 2024 00:51:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730163071; bh=cs8mb1BdNMCnjUvoKzH597MXV47IW/ce5hUXSzQS/oQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=OrzZA5kzOyDLtOH/Dfe8QMCG/0kK9cPfj0FVZpsCwlYJXatxXmgDurHpN4ukYacUx DE8vR8jcQWA9092PbjGziuqQbP8Ti9APWdWbtUBd2/1+b4d92mDnrheVn67f3ZEF8d KnRCKHWuiMMAztspIWU0NrK6LjgbV3cVC3/H9U0g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50075: xhci: tegra: fix checked USB2 port number Date: Tue, 29 Oct 2024 01:50:38 +0100 Message-ID: <2024102935-CVE-2024-50075-81b7@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=2815; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cs8mb1BdNMCnjUvoKzH597MXV47IW/ce5hUXSzQS/oQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDOkKhjGKx/6wXeawylmdwavS9kc17V13doIz8xnnRzfKP +aX55Z1xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwERERBjmGRSmVj+sVr6ov2p3 wdlPnmVz9ri8YJin8PnC0Sr1X4ocF+75L+z8N//y3kM/AQ== 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: xhci: tegra: fix checked USB2 port number If USB virtualizatoin is enabled, USB2 ports are shared between all Virtual Functions. The USB2 port number owned by an USB2 root hub in a Virtual Function may be less than total USB2 phy number supported by the Tegra XUSB controller. Using total USB2 phy number as port number to check all PORTSC values would cause invalid memory access. [ 116.923438] Unable to handle kernel paging request at virtual address 006c622f7665642f ... [ 117.213640] Call trace: [ 117.216783] tegra_xusb_enter_elpg+0x23c/0x658 [ 117.222021] tegra_xusb_runtime_suspend+0x40/0x68 [ 117.227260] pm_generic_runtime_suspend+0x30/0x50 [ 117.232847] __rpm_callback+0x84/0x3c0 [ 117.237038] rpm_suspend+0x2dc/0x740 [ 117.241229] pm_runtime_work+0xa0/0xb8 [ 117.245769] process_scheduled_works+0x24c/0x478 [ 117.251007] worker_thread+0x23c/0x328 [ 117.255547] kthread+0x104/0x1b0 [ 117.259389] ret_from_fork+0x10/0x20 [ 117.263582] Code: 54000222 f9461ae8 f8747908 b4ffff48 (f9400100) The Linux kernel CVE team has assigned CVE-2024-50075 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit a30951d31b25 and fixed in 6.6.58 with commit 9c696bf4ab54 Issue introduced in 6.3 with commit a30951d31b25 and fixed in 6.11.5 with commit c46555f14b71 Issue introduced in 6.3 with commit a30951d31b25 and fixed in 6.12-rc4 with commit 7d381137cb6e 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-50075 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-tegra.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/9c696bf4ab54c7cec81221887564305f0ceeac0a https://git.kernel.org/stable/c/c46555f14b71f95a447f5d49fc3f1f80a1472da2 https://git.kernel.org/stable/c/7d381137cb6ecf558ef6698c7730ddd482d4c8f2