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 D1C2134B1A4 for ; Wed, 24 Dec 2025 13:12:21 +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=1766581941; cv=none; b=VUuSL7TK7hXTtNnXDxMTIhMBGDNmx87k6195fpgSp6Zkn2slv4AYrRF2lCqCFIQFu2issXtKPrGiJYGy3FliEpQcvGFHpDX2Fdtpwz0Rhhg12D5BExjQ7ndTm6xXM7xJ4AkrthLj/mt1a9JJDVLxOLFgymD6/JmuEe31hWe8NQY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581941; c=relaxed/simple; bh=A80+OeUL0xyhIqD07xamQcX/HKcKJ5aOOzsE2UTKNmA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=vEYJCbduhzmLNKLZzKfmHEsb3z0Am1zi5KbOOKRikuIvvYacslMGXxsChHeHnxycMQKueaz6Uji1/Mr5bKuTwIkZ/EHsDkQW9fEOHUyq+2aqU6BZp17PlTiBB6TviELQP1Ch33RC2iECFhE0Q03xNBdly5E5wSCA4XqXx+aXig0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hZEECJgM; 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="hZEECJgM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55F91C4CEFB; Wed, 24 Dec 2025 13:12:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581941; bh=A80+OeUL0xyhIqD07xamQcX/HKcKJ5aOOzsE2UTKNmA=; h=From:To:Cc:Subject:Date:Reply-To:From; b=hZEECJgMvXCXMG3Gk/SKBOD/wUtA8ft4yC0IoA2ezUbShtHnMjjKOTmobofj3NXU2 sH1F95Y8F58lPKT9W2YGrpqWJkYCnt9WhZrHtUjkNLv1gMaZ4Ro4/dRa9SDEfbQivz KhOfxZhkvOp1Oi77y0bUa2q/3aK8fUy+W8kAFM70= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54159: usb: mtu3: fix kernel panic at qmu transfer done irq handler Date: Wed, 24 Dec 2025 14:07:56 +0100 Message-ID: <2025122429-CVE-2023-54159-5908@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3730; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aAydNl0JWP5KPj7BtsoxPrcHCEHao5US/R0dptAy4gs=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneT0OPm+gs++5ctO3Ii+XV9e6mRom5T3fec5r4bsmGV AGrRd3zO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiVesY5qefkZVpcpgn4fD+ ikB6mumsq4tn8DAsuBaonbvM8ys/9wSpv1E/3Pe1NL0wBwA= 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: usb: mtu3: fix kernel panic at qmu transfer done irq handler When handle qmu transfer irq, it will unlock @mtu->lock before give back request, if another thread handle disconnect event at the same time, and try to disable ep, it may lock @mtu->lock and free qmu ring, then qmu irq hanlder may get a NULL gpd, avoid the KE by checking gpd's value before handling it. e.g. qmu done irq on cpu0 thread running on cpu1 qmu_done_tx() handle gpd [0] mtu3_requ_complete() mtu3_gadget_ep_disable() unlock @mtu->lock give back request lock @mtu->lock mtu3_ep_disable() mtu3_gpd_ring_free() unlock @mtu->lock lock @mtu->lock get next gpd [1] [1]: goto [0] to handle next gpd, and next gpd may be NULL. The Linux kernel CVE team has assigned CVE-2023-54159 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit 48e0d3735aa557a8adaf94632ca3cf78798e8505 and fixed in 5.4.243 with commit 26ca30516b2c49dd04c134cbdf122311c538df98 Issue introduced in 5.2 with commit 48e0d3735aa557a8adaf94632ca3cf78798e8505 and fixed in 5.10.180 with commit 012936502a9cb7b0604e85bb961eb15e2bb40dd9 Issue introduced in 5.2 with commit 48e0d3735aa557a8adaf94632ca3cf78798e8505 and fixed in 5.15.111 with commit ee53a7a88027cea765c68f3b00a50b8f58d6f786 Issue introduced in 5.2 with commit 48e0d3735aa557a8adaf94632ca3cf78798e8505 and fixed in 6.1.28 with commit f26273428657ef4ca74740e578ae45a3be492f6f Issue introduced in 5.2 with commit 48e0d3735aa557a8adaf94632ca3cf78798e8505 and fixed in 6.2.15 with commit b636aff94a67be46582d4321d11743f1a10cc2c1 Issue introduced in 5.2 with commit 48e0d3735aa557a8adaf94632ca3cf78798e8505 and fixed in 6.3.2 with commit 3a7d4959560a2ee493ef222e3b63d359365f41ec Issue introduced in 5.2 with commit 48e0d3735aa557a8adaf94632ca3cf78798e8505 and fixed in 6.4 with commit d28f4091ea7ec3510fd6a3c6d433234e7a2bef14 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-54159 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/mtu3/mtu3_qmu.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/26ca30516b2c49dd04c134cbdf122311c538df98 https://git.kernel.org/stable/c/012936502a9cb7b0604e85bb961eb15e2bb40dd9 https://git.kernel.org/stable/c/ee53a7a88027cea765c68f3b00a50b8f58d6f786 https://git.kernel.org/stable/c/f26273428657ef4ca74740e578ae45a3be492f6f https://git.kernel.org/stable/c/b636aff94a67be46582d4321d11743f1a10cc2c1 https://git.kernel.org/stable/c/3a7d4959560a2ee493ef222e3b63d359365f41ec https://git.kernel.org/stable/c/d28f4091ea7ec3510fd6a3c6d433234e7a2bef14