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 72C372D1F7E for ; Thu, 3 Jul 2025 08:37:41 +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=1751531861; cv=none; b=sLLCjSv4pSYR0H5d5/i69TWqhJGp0RX4HVakdWlYqfUB/AJyGm9AL3cLzpVBbwIwtEiVXdUHNhuHSAacxmyoiBVnmlfSjybhLwQ0lrcyAc4z8cMlHHo6wqRSIacvkhj94OhVxWTFfR/kvhfUzVHMERhMu6oWCAXXyrtjm1/3P+U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751531861; c=relaxed/simple; bh=20wrkWhV37wR9fTAvwFOTNpHVroegQd9kZMRq0DOkE8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=po4yAAw8Q3UJ6tzF5YAfyeQFDdHSWJ6xLyhvseLX1jGAUXVaOThMr97kHFc5geaBAeszWRWW+QgzwVqFFD/hc+gcpnQa3Ght6pC6DSsVWYP/3dX0K1xYvLVR+ihxTGfHIBSgANtt83/I/eo7Sw6Pon+K3tXQ/j/Ughrd8ghXv5A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rz630+nc; 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="rz630+nc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D28AC4CEE3; Thu, 3 Jul 2025 08:37:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751531861; bh=20wrkWhV37wR9fTAvwFOTNpHVroegQd9kZMRq0DOkE8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rz630+ncD6SuceeQVNxfisgEOQMb8sugCr7V7brwey2hecXJgkyPX4T04ZVOYY7Qz b4tb1S68idI++3QAm1vnQpnnNaOTHEJl7tfcYvigCIjZX0f9spy9lVI1aiFmorEAXy atPDEJaPax/eqT+od8ZavVMdJnSVACCtu2VOA/uM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38145: soc: aspeed: Add NULL check in aspeed_lpc_enable_snoop() Date: Thu, 3 Jul 2025 10:36:02 +0200 Message-ID: <2025070335-CVE-2025-38145-548b@gregkh> X-Mailer: git-send-email 2.50.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=3451; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Mdw0lRcwGQqwlIfZkuoQ2XVOH8wFet/Ko5AEDKoJvjs=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlpDtctArUlfTRKTl3xbnibxvbp1sXjnulLFWJW5l1Ze UO4d75bRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkUwfD/PigmpSAB0Uqc55u lQ1eWjrjYLflGoYFhyNLWyROHp3dWsyW/D7XoPZvdf9RAA== 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: soc: aspeed: Add NULL check in aspeed_lpc_enable_snoop() devm_kasprintf() returns NULL when memory allocation fails. Currently, aspeed_lpc_enable_snoop() does not check for this case, which results in a NULL pointer dereference. Add NULL check after devm_kasprintf() to prevent this issue. [arj: Fix Fixes: tag to use subject from 3772e5da4454] The Linux kernel CVE team has assigned CVE-2025-38145 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit 3772e5da445420543b25825ac2b5971f3743f6e8 and fixed in 5.4.295 with commit 2beee9cf833374550e673d428ad8b6ab37c175b3 Issue introduced in 4.19 with commit 3772e5da445420543b25825ac2b5971f3743f6e8 and fixed in 5.10.239 with commit c550999f939b529d28a914d5034cc4290066aea6 Issue introduced in 4.19 with commit 3772e5da445420543b25825ac2b5971f3743f6e8 and fixed in 5.15.186 with commit 1fd889c145722579aa038c31cbc07cfdd4d75166 Issue introduced in 4.19 with commit 3772e5da445420543b25825ac2b5971f3743f6e8 and fixed in 6.1.142 with commit d62a589eaaec6385e3e2b25cf5a28b4560ace93f Issue introduced in 4.19 with commit 3772e5da445420543b25825ac2b5971f3743f6e8 and fixed in 6.6.94 with commit 8312b1f776f71979bf33bda7acc05b348e8792c7 Issue introduced in 4.19 with commit 3772e5da445420543b25825ac2b5971f3743f6e8 and fixed in 6.12.34 with commit f697ef117ecbf3a367dfc559a6a3589905956530 Issue introduced in 4.19 with commit 3772e5da445420543b25825ac2b5971f3743f6e8 and fixed in 6.15.3 with commit 45b2e8b0fdd280aba04c3cc869e9ae500c44e4b7 Issue introduced in 4.19 with commit 3772e5da445420543b25825ac2b5971f3743f6e8 and fixed in 6.16-rc1 with commit f1706e0e1a74b095cbc60375b9b1e6205f5f4c98 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-38145 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/soc/aspeed/aspeed-lpc-snoop.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/2beee9cf833374550e673d428ad8b6ab37c175b3 https://git.kernel.org/stable/c/c550999f939b529d28a914d5034cc4290066aea6 https://git.kernel.org/stable/c/1fd889c145722579aa038c31cbc07cfdd4d75166 https://git.kernel.org/stable/c/d62a589eaaec6385e3e2b25cf5a28b4560ace93f https://git.kernel.org/stable/c/8312b1f776f71979bf33bda7acc05b348e8792c7 https://git.kernel.org/stable/c/f697ef117ecbf3a367dfc559a6a3589905956530 https://git.kernel.org/stable/c/45b2e8b0fdd280aba04c3cc869e9ae500c44e4b7 https://git.kernel.org/stable/c/f1706e0e1a74b095cbc60375b9b1e6205f5f4c98