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 8B9E516CD09 for ; Wed, 21 Aug 2024 06:13:00 +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=1724220780; cv=none; b=CHtGmk8z5VUxQziKXMSxAQrqJE8FjVx8TzJDYZfz3a/VHGahBmPo5GpCEUwHTxgSNGG4FwwIizaZKIBr1QMcmmSkeuPISOqrkULT6Lm62I9NkPOnljyqu0iG8B0pUBspLGdEHEOR33d8Osl5zrnzDz8V8rh2w5Nai1hZtcM9Dc8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724220780; c=relaxed/simple; bh=bOPJh/BJSg04r9FL8jy6FH21QlOITcaFMrEB1hJDzXg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ehcQjNd7iLM7I4gRc/7eX5SmsG3ie4bKf2h5RcvGcRfZumJIZ+9rVEjaX1XsDJg8hmg7tVk2uklNhOiFgrlA9nrcPErRxmwelW1UICRdHDGq4rbI4IuBqpACbWAz+MCVMg5MyXNREM+s7Cfba/G6GQOrmDyNWKpQ+G4lNrFkTTA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WZthPxjL; 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="WZthPxjL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B1BAC32782; Wed, 21 Aug 2024 06:12:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724220780; bh=bOPJh/BJSg04r9FL8jy6FH21QlOITcaFMrEB1hJDzXg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=WZthPxjLBhGuZu0MY1dATJ0cDnC0vIiJbOnyeL/HJ0MWD9f/JXEJ0A/TRYJmtddJP 745UFA6drewqgm6CZ+pj4SdihbLwEmQvIYsOr4FtxoXtjU1wtAYYlji3zgmk/Ja1EZ 1aOzFe18fu8cp0C/yWQSonbVVse64NcmFcqVAJK0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52898: xhci: Fix null pointer dereference when host dies Date: Wed, 21 Aug 2024 14:11:39 +0800 Message-ID: <2024082112-CVE-2023-52898-f25e@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=2442; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bOPJh/BJSg04r9FL8jy6FH21QlOITcaFMrEB1hJDzXg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlHWxlkOk0N5Zaq/TzQvk04uPxSE8eTuAKb9dOsD14/J nQtbV5CRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkxm6G+S7bb/4SO3zDqyn7 Nqvei+ce7SXpUxgWLDZ4KanVPfWMr/+Vr2ox8v8KNjJyAgA= 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: Fix null pointer dereference when host dies Make sure xhci_free_dev() and xhci_kill_endpoint_urbs() do not race and cause null pointer dereference when host suddenly dies. Usb core may call xhci_free_dev() which frees the xhci->devs[slot_id] virt device at the same time that xhci_kill_endpoint_urbs() tries to loop through all the device's endpoints, checking if there are any cancelled urbs left to give back. hold the xhci spinlock while freeing the virt device The Linux kernel CVE team has assigned CVE-2023-52898 to this issue. Affected and fixed versions =========================== Fixed in 4.19.271 with commit 6fac4b5cecb3 Fixed in 5.4.230 with commit 133b902378e4 Fixed in 5.10.165 with commit 081105213ff6 Fixed in 5.15.90 with commit c462ac871f49 Fixed in 6.1.8 with commit ea2ee5e9991c Fixed in 6.2 with commit a2bc47c43e70 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-2023-52898 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.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/6fac4b5cecb3928a0a81069aaa815a2edc8dd5a1 https://git.kernel.org/stable/c/133b902378e4acbd824c29dd0d48570ad596e368 https://git.kernel.org/stable/c/081105213ff6f661c114781d469233c7d0e09c2e https://git.kernel.org/stable/c/c462ac871f49753eca86bb960f573b993976a5ea https://git.kernel.org/stable/c/ea2ee5e9991caf74e0604f994c1831a5867055b2 https://git.kernel.org/stable/c/a2bc47c43e70cf904b1af49f76d572326c08bca7