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 4686C17A5AA for ; Fri, 13 Sep 2024 05:31:24 +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=1726205484; cv=none; b=CoANDzvJlEQ+fzulLiosyUlOh0u6sJxlO7aSaHXYy4dimeXga3PXS+zxKw3QeB9EoWeY18Vub3GKLe1G+9vQymQZqsbXIMOdLQZ0YWUZPeFv+LIJLCgFW43bpRy1U/TkxdGHYszfAaHZ7NSARCXXAL2uhC8JUU1PJpSrDr0dqAU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726205484; c=relaxed/simple; bh=eHNfyj89KW+vsEXkmzKZ09rWWxh/mEWyVm6pA3hS1rQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=u74kFarO7PzzuiTEvzAUpD8YZ0zmQ+Gs4msl54bkB3TtLnamx8s7yLqt0mD9jbDFYB6QrMCj8En5wzdXKarx7+4UTtEauWO+bHSvb9ZEn7xnri1PZi1lfh9tNltHqU/B/8OuGbVTGFxZ4xbJrBejj/Eq1VH9fuPbyCEEqeMjg5k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SFfR1jbd; 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="SFfR1jbd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8350DC4CEC0; Fri, 13 Sep 2024 05:31:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726205483; bh=eHNfyj89KW+vsEXkmzKZ09rWWxh/mEWyVm6pA3hS1rQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SFfR1jbdMwalHtDguXzZBaMLIQWVSYSQtNZz0dcr9LSXyKeLQBSLtsJofxA+A3li2 rIDPrHSeGe5BhZWBNGIe122tjbQEDftercP9N+PaibI3wm9aa+d/0x05tj1jSCAJxl Yilv8remL5dqMPzzESuBBeJ58LNPL1QW/s6Otorg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46675: usb: dwc3: core: Prevent USB core invalid event buffer address access Date: Fri, 13 Sep 2024 07:30:36 +0200 Message-ID: <2024091335-CVE-2024-46675-ba70@gregkh> X-Mailer: git-send-email 2.46.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=3180; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eHNfyj89KW+vsEXkmzKZ09rWWxh/mEWyVm6pA3hS1rQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmPz/4++PzjmT2rlaNibwmyi+36WbYvrdA5fvLmyJT1D YbSVen+HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRW1sZ5ldxH/3FvHSW1+cV go0Woou+tBv9K2VYcPaB/pGpUeWLmR2+/biq38Ggnd60EwA= 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: usb: dwc3: core: Prevent USB core invalid event buffer address access This commit addresses an issue where the USB core could access an invalid event buffer address during runtime suspend, potentially causing SMMU faults and other memory issues in Exynos platforms. The problem arises from the following sequence. 1. In dwc3_gadget_suspend, there is a chance of a timeout when moving the USB core to the halt state after clearing the run/stop bit by software. 2. In dwc3_core_exit, the event buffer is cleared regardless of the USB core's status, which may lead to an SMMU faults and other memory issues. if the USB core tries to access the event buffer address. To prevent this hardware quirk on Exynos platforms, this commit ensures that the event buffer address is not cleared by software when the USB core is active during runtime suspend by checking its status before clearing the buffer address. The Linux kernel CVE team has assigned CVE-2024-46675 to this issue. Affected and fixed versions =========================== Fixed in 4.19.321 with commit eca3f543f817 Fixed in 5.4.283 with commit d2afc2bffec7 Fixed in 5.10.225 with commit b72da4d89b97 Fixed in 5.15.166 with commit 111277b881de Fixed in 6.1.108 with commit 2189fd13c577 Fixed in 6.6.49 with commit 7bb11a75dd4d Fixed in 6.10.8 with commit e23f6ad8d110 Fixed in 6.11-rc6 with commit 14e497183df2 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-46675 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/dwc3/core.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/eca3f543f817da87c00d1a5697b473efb548204f https://git.kernel.org/stable/c/d2afc2bffec77316b90d530b07695e3f534df914 https://git.kernel.org/stable/c/b72da4d89b97da71e056cc4d1429b2bc426a9c2f https://git.kernel.org/stable/c/111277b881def3153335acfe0d1f43e6cd83ac93 https://git.kernel.org/stable/c/2189fd13c577d7881f94affc09c950a795064c4b https://git.kernel.org/stable/c/7bb11a75dd4d3612378b90e2a4aa49bdccea28ab https://git.kernel.org/stable/c/e23f6ad8d110bf632f7471482e10b43dc174fb72 https://git.kernel.org/stable/c/14e497183df28c006603cc67fd3797a537eef7b9