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 28ECD29A300 for ; Wed, 24 Dec 2025 15: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=1766591472; cv=none; b=Gi/8UE3YeOLpwueRl7WuAvWpP+M71wgYXV95OeciCJyT4ys0l5nuk6dNIh1Mn7m/5lLEa0+ALr/Hkgv21VmM02G2TRUQ/NUs8N/soKT1X+zyXizcMv0rpc7o8Zq7PDo7kc+Lj6Sx6lq7C1qkbvAQ4VaSX8HpopzFre1ag+/R3wQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766591472; c=relaxed/simple; bh=D/2dHhmszineJ/+Odqhonxa+fD7zNSnsVocVNBjIGqE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NNMaQ25YcBbTtxBJEGuhThFyROYQ3HapcXiJX/9rLCrV0pVvXd8qx7T6L3DWlH3byvUpkloAHefKtWvalioudC42aiSFy6oBnbaU7EkLM1hEOhkW3xgFPsIRMip2mZVgSmLT7RGdJGHKyGckC5oVHbpepDjSBUQjj5B3U3HJPxU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=G0kcu3l1; 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="G0kcu3l1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FDEFC4CEF7; Wed, 24 Dec 2025 15:51:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766591471; bh=D/2dHhmszineJ/+Odqhonxa+fD7zNSnsVocVNBjIGqE=; h=From:To:Cc:Subject:Date:Reply-To:From; b=G0kcu3l1isTnPeu9hRKE8XrR7TfF9PlGzPBj/8O8dHerjw2ljcqdfMo+PMt9DtGs/ nQwPqd/XIYIB7BviMsEmPIaUVd6BunpN6upCzUqgTNvBQqtapZiyHksr2wQgTFK1jg kv2+CD4kjxAg6iJ9tqLK6sFcj1BGzvgIVtkQW+BE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68750: usb: potential integer overflow in usbg_make_tpg() Date: Wed, 24 Dec 2025 16:51:06 +0100 Message-ID: <2025122406-CVE-2025-68750-7ff1@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=3021; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FA4iYb/wm+sFlRCIAqtoTvgxne35DGsQ6dVEpRLLJVg=; b=owGbwMvMwCRo6H6F97bub03G02pJDJk+3K+KUgy0NmyJXpFeUlYYNUvh7Y2gKMVHUh4KD7c9u c78IMG3I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbS188wP7Ms3UQo+J94qvoa Xa4uWxsbzR0tDAs6xe9ceLSxRdt+a4YZf+DrF1cSI7YCAA== 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: potential integer overflow in usbg_make_tpg() The variable tpgt in usbg_make_tpg() is defined as unsigned long and is assigned to tpgt->tport_tpgt, which is defined as u16. This may cause an integer overflow when tpgt is greater than USHRT_MAX (65535). I haven't tried to trigger it myself, but it is possible to trigger it by calling usbg_make_tpg() with a large value for tpgt. I modified the type of tpgt to match tpgt->tport_tpgt and adjusted the relevant code accordingly. This patch is similar to commit 59c816c1f24d ("vhost/scsi: potential memory corruption"). The Linux kernel CVE team has assigned CVE-2025-68750 to this issue. Affected and fixed versions =========================== Fixed in 5.4.296 with commit 0861b9cb2ff519b7c5a3b1dd52a343e18c4efb24 Fixed in 5.10.240 with commit 603a83e5fee38a950bfcfb2f36449311fa00a474 Fixed in 5.15.187 with commit 6f77e344515b5258edb3988188311464209b1c7c Fixed in 6.1.143 with commit 6722e080b5b39ab7471386c73d0c1b39572f943c Fixed in 6.6.96 with commit a33f507f36d5881f602dab581ab0f8d22b49762c Fixed in 6.12.36 with commit 358d5ba08f1609c34a054aed88c431844d09705a Fixed in 6.15.5 with commit 620a5e1e84a3a7004270703a118d33eeb1c0f368 Fixed in 6.16 with commit 153874010354d050f62f8ae25cbb960c17633dc5 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-2025-68750 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/gadget/function/f_tcm.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/0861b9cb2ff519b7c5a3b1dd52a343e18c4efb24 https://git.kernel.org/stable/c/603a83e5fee38a950bfcfb2f36449311fa00a474 https://git.kernel.org/stable/c/6f77e344515b5258edb3988188311464209b1c7c https://git.kernel.org/stable/c/6722e080b5b39ab7471386c73d0c1b39572f943c https://git.kernel.org/stable/c/a33f507f36d5881f602dab581ab0f8d22b49762c https://git.kernel.org/stable/c/358d5ba08f1609c34a054aed88c431844d09705a https://git.kernel.org/stable/c/620a5e1e84a3a7004270703a118d33eeb1c0f368 https://git.kernel.org/stable/c/153874010354d050f62f8ae25cbb960c17633dc5