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 B11495C613 for ; Fri, 17 May 2024 14:28:05 +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=1715956085; cv=none; b=GVwn6dZXvd9QpKRBwKjwhmXSIXHO2QXGl6PzhWRSCKZpWDSmf8jZwmAF4STCya5dlOCu+rlF6Soobn4xxDuh4BkVpw322IeoX1B1Wpin90wYRy2HgbycUF9Gwsc39lyL6BPD3VZkgwMV/wYRmEU/nmsbHxYjMEeWskcyaMk/xOQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715956085; c=relaxed/simple; bh=FKgg399Gm3Px+c2+cUJdzKjeBww2XFhS4FYJSvaeUrI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kv6NVfMZjg8Ofz3AYWtBZnXPHR+Day1fPptSjxaHSr3Yx+TBcP7KiTFKpIi0q6yOdYkvf+DR/fosYSiKcnkJnIccH6XSgXCA3uSRCbNKNa1kjQ2KE8jgmp2F5YS+exSvQ9TwQx6HYepgNTzLt1JYGFpuERJC9N/6GpYMPQtgTxE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dBDcEwlP; 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="dBDcEwlP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0188AC2BD10; Fri, 17 May 2024 14:28:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715956085; bh=FKgg399Gm3Px+c2+cUJdzKjeBww2XFhS4FYJSvaeUrI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=dBDcEwlPdPx2zWPUKRERJTRa2oc+sv3k/NyVjIZj6QgI3Aff19+A9fbZnIHlZ6Ozh JhJeEqcplF8+y7NKKgad6E7SM1uXX2o8xLDfiHZbYxIUrgmmhl+kVKuR+C6bzsAd7n mp8pVQQe1EzW8jXDAfedtWzZgsYricnQPkMPSR+E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52696: powerpc/powernv: Add a null pointer check in opal_powercap_init() Date: Fri, 17 May 2024 16:27:09 +0200 Message-ID: <2024051755-CVE-2023-52696-d4ab@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=2640; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FKgg399Gm3Px+c2+cUJdzKjeBww2XFhS4FYJSvaeUrI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnumfq6ViH++5cYLz++8uPsUHHJJR6LbX+tyFQRlWCbu OfypeaTHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARHT2GuWLlP96KRsWZNxkt nevjnTBBR+1XK8N8t42/J/qySq+OY1zJLza1af6kQPHHAA== 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 in opal_powercap_init() kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. The Linux kernel CVE team has assigned CVE-2023-52696 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit b9ef7b4b867f and fixed in 5.4.268 with commit 9da4a56dd377 Issue introduced in 4.20 with commit b9ef7b4b867f and fixed in 5.10.209 with commit a67a04ad05ac Issue introduced in 4.20 with commit b9ef7b4b867f and fixed in 5.15.148 with commit 6b58d1603721 Issue introduced in 4.20 with commit b9ef7b4b867f and fixed in 6.1.75 with commit f152a6bfd187 Issue introduced in 4.20 with commit b9ef7b4b867f and fixed in 6.6.14 with commit 69f95c5e9220 Issue introduced in 4.20 with commit b9ef7b4b867f and fixed in 6.7.2 with commit b02ecc35d01a Issue introduced in 4.20 with commit b9ef7b4b867f and fixed in 6.8 with commit e123015c0ba8 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-52696 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-powercap.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/9da4a56dd3772570512ca58aa8832b052ae910dc https://git.kernel.org/stable/c/a67a04ad05acb56640798625e73fa54d6d41cce1 https://git.kernel.org/stable/c/6b58d16037217d0c64a2a09b655f370403ec7219 https://git.kernel.org/stable/c/f152a6bfd187f67afeffc9fd68cbe46f51439be0 https://git.kernel.org/stable/c/69f95c5e9220f77ce7c540686b056c2b49e9a664 https://git.kernel.org/stable/c/b02ecc35d01a76b4235e008d2dd292895b28ecab https://git.kernel.org/stable/c/e123015c0ba859cf48aa7f89c5016cc6e98e018d