Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 92B515383D3 for ; Thu, 17 Sep 2026 16:39:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789663182; cv=none; b=UhPjSlzQXcxqYiLzaa0T6iQnb5C9uiGnNW1IOdVZMpAp/FpDPd+60kWkmoNx4tJD/IzGsoNhbW9sLvXr7z2r7UaYn4v2CBvsbOVoKzAKjJGYL268ua7l6hsc35sGONZDoR15pVYZyFJTxaGB09NJdRv6ySiQt2dNl9e6wyAuwsE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789663182; c=relaxed/simple; bh=SH4SanrDewKIlzoA+IvZte2OL7fEykP50Puoi2GARcI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UL1hBJoo9GJQWb9XDGsOMI36Gcj2cTSllJ2iEyV2XW243wuGhr4uxO1x4jdbfwuHrIjfBK8GAA1r1aa1UAUpX/eUkfoOSsNw0tx9AHxlbZMvHzr3ThF/3ZK7FMk0T6+qdtRlQyjeXNBVadhntppGPJoCfefYMC35emu3v4x/NEQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Oo9BnuJ9; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Oo9BnuJ9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62C551F000FF; Thu, 17 Sep 2026 16:39:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789663179; bh=CuKV7sgBa4Gh35igdXSxpEBQjxNoxzE8ty/c1G3mEKM=; h=From:To:Cc:Subject:Date:Reply-To; b=Oo9BnuJ9IrEXnaiftYNongYUBBk8+iAeIjXz+U96BrBzW7u5EJt+1t6N7/e9P88UH mJaNGuxd7XqfcSFoZbq+vXbdDb9FRYJ16x7n1bGkr3de1mjV6pd00jw6+2bNHaib/s C6mKjcTEW73RhY8XrwS/IXPUCEfnW1mE55eYHrgA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93118: usb: gadget: aspeed_udc: check endpoint DMA allocation Date: Thu, 17 Sep 2026 17:16:35 +0100 Message-ID: <2026091748-CVE-2026-93118-3c49@gregkh> X-Mailer: git-send-email 2.55.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=3531; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5eipmIl6BSbRm8bVugGssc1tvi3hJ/AWnOgeAWgtt0Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBM7oKJps/bE5MK7rkO/U5bu/GXz06P7Wt+D5FQtzR rfercftO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiH+cxzE+I0ZRUkeq7M/9T OkemPstSfu3ZGQzzY+Jevuep251oMeP3qt8T2/leBWpXAQA= 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: gadget: aspeed_udc: check endpoint DMA allocation ast_udc_probe() allocates a coherent DMA buffer used as the backing store for endpoint buffers. ast_udc_init_ep() derives per-endpoint buffer pointers from udc->ep0_buf, so a failed allocation is dereferenced during probe. Check the allocation before endpoint setup. The existing probe error path called ast_udc_remove(), which unregisters the gadget unconditionally and is not safe before usb_add_gadget_udc() succeeds. Add a local cleanup helper for probe failures so pre-registration failures only unwind the resources that were actually initialized. This was found by a local static analysis checker for unchecked allocator returns while scanning Linux 6.16. The change was checked by applying it to current mainline and by running checkpatch. I do not have access to Aspeed UDC hardware, so no runtime testing was performed. The Linux kernel CVE team has assigned CVE-2026-93118 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 055276c1320564b0192b3af323b8cc67f9b665e1 and fixed in 6.1.188 with commit d7ae1a48e70e9c3451b7dc7bc3896c82884bc4df Issue introduced in 6.0 with commit 055276c1320564b0192b3af323b8cc67f9b665e1 and fixed in 6.6.157 with commit 4aaad88f857498ed1294f061f0b25d27ae891c55 Issue introduced in 6.0 with commit 055276c1320564b0192b3af323b8cc67f9b665e1 and fixed in 6.12.110 with commit 6182e708e2e1f55521c8a01d7535630ecc2d7df9 Issue introduced in 6.0 with commit 055276c1320564b0192b3af323b8cc67f9b665e1 and fixed in 6.18.52 with commit ff6e88e29965bd06f640e59acdcf0bbf04a7f55c Issue introduced in 6.0 with commit 055276c1320564b0192b3af323b8cc67f9b665e1 and fixed in 7.2.6 with commit 9e6f57107c1886052d4baaa047a2bc3d0e91be5d Issue introduced in 6.0 with commit 055276c1320564b0192b3af323b8cc67f9b665e1 and fixed in 7.3-rc1 with commit 97cee53a94be3bd4fd8fbed6071bd2f32dad1ab1 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-2026-93118 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/udc/aspeed_udc.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/d7ae1a48e70e9c3451b7dc7bc3896c82884bc4df https://git.kernel.org/stable/c/4aaad88f857498ed1294f061f0b25d27ae891c55 https://git.kernel.org/stable/c/6182e708e2e1f55521c8a01d7535630ecc2d7df9 https://git.kernel.org/stable/c/ff6e88e29965bd06f640e59acdcf0bbf04a7f55c https://git.kernel.org/stable/c/9e6f57107c1886052d4baaa047a2bc3d0e91be5d https://git.kernel.org/stable/c/97cee53a94be3bd4fd8fbed6071bd2f32dad1ab1