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 D9E52269823 for ; Fri, 9 May 2025 06:46:14 +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=1746773174; cv=none; b=LKz9G9OWg2aUM2AwU+tsXm4JsaR6oIaxM8RKmvx9T/8eEDiCL0jDWVNA3/VND1n+/E35bEFbbhIuGl54BvWFcNLmFUu5iWoRkVV8gXZVtj667wln2yWXPAMqN5uuUSf/9hfiELZAe8bg4v/3DDaXoNrHmFrH3TxdHS+E3r5g6Eo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746773174; c=relaxed/simple; bh=ERuZSNhafmFLL812wCoc0I5jbWBHsb66cbVrVqwcbBk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oGbd+33j2pBx+qI3Rxe5t11A2lr30bZWTmEbS9JSCEG6rd8UF2UEKZPJYevJ7c+SMhvZdkOixZh7sIjl9FxlzZiDtNelGiO2TE8yyBqxc1tOdWvM2e7OSm2fvjP98Yh1V5ItHwI/FyPbbYvMs2LFEd3mzTMr/8W1WYTcsOuZxPI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=j/X6Giyf; 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="j/X6Giyf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47F87C4CEED; Fri, 9 May 2025 06:46:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746773174; bh=ERuZSNhafmFLL812wCoc0I5jbWBHsb66cbVrVqwcbBk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=j/X6GiyfwnZUhkDFWmLE3NR0IGb2jStAy/Mhzij86COOMBY5MEyk6g12+WdvFtsRy xNr/cRY0twFH6p2knr1R8KMjALcy6Rvp4qHc7f7bj9lnY8BcVXBoSJYW/uwxfPYKnu F59AJpGa81slqMgoUQ/mWh3eRUvM/TTaBQ8kQrBU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37881: usb: gadget: aspeed: Add NULL pointer check in ast_vhub_init_dev() Date: Fri, 9 May 2025 08:45:48 +0200 Message-ID: <2025050944-CVE-2025-37881-505f@gregkh> X-Mailer: git-send-email 2.49.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=2819; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AVPHHsijOvNPgEikP5Vp7L+5dNf8msW4GGrZl6KO3CU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmyS2bEy08rZFWU13LZcl4hTujB80X/dP4tW7zquqCQ8 Y8IXsXNHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARZSmGBRP5ypRvHpvzVDvw If+PCnXJuL0+UxgWLDr+o0fjXoTWgnvmz77Xd72bUv7qGAA= 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: Add NULL pointer check in ast_vhub_init_dev() The variable d->name, returned by devm_kasprintf(), could be NULL. A pointer check is added to prevent potential NULL pointer dereference. This is similar to the fix in commit 3027e7b15b02 ("ice: Fix some null pointer dereference issues in ice_ptp.c"). This issue is found by our static analysis tool The Linux kernel CVE team has assigned CVE-2025-37881 to this issue. Affected and fixed versions =========================== Fixed in 5.4.293 with commit a777ccfb9ba8d43f745e41b69ba39d4a506a081e Fixed in 5.10.237 with commit c8d4faf452a627f9b09c3a5c366133a19e5b7a28 Fixed in 5.15.181 with commit d26a6093d52904cacdbb75424c323c19b443a890 Fixed in 6.1.136 with commit 36d68151712e525450f0fbb3045e7110f0d9b610 Fixed in 6.6.89 with commit cfa7984f69359761b07a7831c1258c0fde1e0389 Fixed in 6.12.26 with commit 052fb65335befeae8500e88d69ea022266baaf6d Fixed in 6.14.5 with commit 61006ca381b4d65d2b8ca695ea8da1ce18d6dee3 Fixed in 6.15-rc1 with commit 8c75f3e6a433d92084ad4e78b029ae680865420f 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-37881 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-vhub/dev.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/a777ccfb9ba8d43f745e41b69ba39d4a506a081e https://git.kernel.org/stable/c/c8d4faf452a627f9b09c3a5c366133a19e5b7a28 https://git.kernel.org/stable/c/d26a6093d52904cacdbb75424c323c19b443a890 https://git.kernel.org/stable/c/36d68151712e525450f0fbb3045e7110f0d9b610 https://git.kernel.org/stable/c/cfa7984f69359761b07a7831c1258c0fde1e0389 https://git.kernel.org/stable/c/052fb65335befeae8500e88d69ea022266baaf6d https://git.kernel.org/stable/c/61006ca381b4d65d2b8ca695ea8da1ce18d6dee3 https://git.kernel.org/stable/c/8c75f3e6a433d92084ad4e78b029ae680865420f