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 17AFB58AB8 for ; Fri, 17 May 2024 14:27:27 +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=1715956048; cv=none; b=FGlPyUZ1uNHKn3XfyBZidvE/dSLJuwFweKGJO5+FQFSURdsTOdIiI4+2qpJoaR/6uTe1NN/ZQM1b8O/WWdK683zYU/Tz9w9yz7qx2Q0gJ+Xeep303fizdHX2aWFmhF5XSBxzLhs6+8HrUOAjpZKm4yPkjFIRHVVCHB6aXOlxjOo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715956048; c=relaxed/simple; bh=+IIFv5236gyxzjKve5TaI1ozYD6meZE7Kn5fpEzGxD4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CMSkBbMXKyivdzVl6ftueNb1VdKHPg8b9l2+HWm0UsYSzzCn0/g7OakAjXH8sYanGo9qaVZ+a3TlrF4eALEked2dYjUXkYbWPgP0xa6xdOKA0P59FQGMuYNp0JiJbLD3n8bmdGH7vun3XVQoT4u68ItkENQ8wObyxR6ZwXK9xVY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MPcxoCME; 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="MPcxoCME" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43067C2BD10; Fri, 17 May 2024 14:27:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715956047; bh=+IIFv5236gyxzjKve5TaI1ozYD6meZE7Kn5fpEzGxD4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=MPcxoCME0lGfe+H9qNoho7dAeNKqrDpS21H2jrVSbK8bMsQpv9ku9LfjQi3LilJUG icl5vm6ZCKhg8rYs6v2qmvMshiKcZCknyQ7FdNOL9CqNmHVKT7Ztkn2kUC6/6QGNEg wl0mAN+evwIJFZhcU/ftCg8U7LcwFoKGXeRLf/Tk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52690: powerpc/powernv: Add a null pointer check to scom_debug_init_one() Date: Fri, 17 May 2024 16:27:03 +0200 Message-ID: <2024051753-CVE-2023-52690-f225@gregkh> X-Mailer: git-send-email 2.45.1 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=2699; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+IIFv5236gyxzjKve5TaI1ozYD6meZE7Kn5fpEzGxD4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnumbpNt5Sj0oRlXt1PZf9xc6quZWl62Ns3GyewfjTRu 9WiY8jSEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPxsGeYH/WX6+mu2K8ewlOD kysOGC/iWn76F8OCozuqPIMf50eXPltjv+vO+qgnc9qSAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: powerpc/powernv: Add a null pointer check to scom_debug_init_one() kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Add a null pointer check, and release 'ent' to avoid memory leaks. The Linux kernel CVE team has assigned CVE-2023-52690 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit bfd2f0d49aef and fixed in 5.4.268 with commit f84c1446daa5 Issue introduced in 5.4 with commit bfd2f0d49aef and fixed in 5.10.209 with commit 1eefa93faf69 Issue introduced in 5.4 with commit bfd2f0d49aef and fixed in 5.15.148 with commit 2a82c4439b90 Issue introduced in 5.4 with commit bfd2f0d49aef and fixed in 6.1.75 with commit ed8d023cfa97 Issue introduced in 5.4 with commit bfd2f0d49aef and fixed in 6.6.14 with commit dd8422ff271c Issue introduced in 5.4 with commit bfd2f0d49aef and fixed in 6.7.2 with commit a9c05cbb6644 Issue introduced in 5.4 with commit bfd2f0d49aef and fixed in 6.8 with commit 9a260f2dd827 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-52690 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: arch/powerpc/platforms/powernv/opal-xscom.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/f84c1446daa552e9699da8d1f8375eac0f65edc7 https://git.kernel.org/stable/c/1eefa93faf69188540b08b024794fa90b1d82e8b https://git.kernel.org/stable/c/2a82c4439b903639e0a1f21990cd399fb0a49c19 https://git.kernel.org/stable/c/ed8d023cfa97b559db58c0e1afdd2eec7a83d8f2 https://git.kernel.org/stable/c/dd8422ff271c22058560832fc3006324ded895a9 https://git.kernel.org/stable/c/a9c05cbb6644a2103c75b6906e9dafb9981ebd13 https://git.kernel.org/stable/c/9a260f2dd827bbc82cc60eb4f4d8c22707d80742