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 09B0F29B8E0 for ; Tue, 30 Dec 2025 12:11:16 +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=1767096678; cv=none; b=EA7G/vzSGoT+yAYwLGe1FOW4k11X2y2vwGn0G/mC0aGp2LZpwyAmpYBIARq+zDDdKXt7V8COv/khV0EYjUlw3x4Z8GZGC0JtNbicWSAHUCLzwBmqdkO2MI3gZH0bEnbXpf81GaoGp7JlAHcYiwE7L7hynp5bLe85hY7uCO/dMFw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096678; c=relaxed/simple; bh=kmmP+6MoFJCJ+fFYLDN9Pps697v61LAlLf6AhCeurIs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ppawQoq3d/cSrT/rzT/x7jyeW2NovEm8rDjq18eLa+UhD1u66Us1ZeyiFxtM+ZLpJd+7edJrWlSXnDyJ5qTFpqCVkz/4IStYRUpDC9/uwjTNpjHsUrT+rCw0HRUrOZJewJ7Nwj7jYwjY/9pH2YAurcWJjBuOZ1eQ6bbZ5XJSDE0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XrHTpfU+; 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="XrHTpfU+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42B8BC113D0; Tue, 30 Dec 2025 12:11:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096676; bh=kmmP+6MoFJCJ+fFYLDN9Pps697v61LAlLf6AhCeurIs=; h=From:To:Cc:Subject:Date:Reply-To:From; b=XrHTpfU+Ja8AL33LfWFQmjG3KmaNDptaXgO2MTPSnJCmAB8Zd+QMhQd1N5rBBP06j 2bpbKWRXeKTntqC+oL6aeUPcp8pnvXNMkSR9k3yNY6Bj6eTtuwCSgRkt1vyU6TGIBQ UcNa4FsDEVwv6b4hG8cv3CScEFnjeF6V1yJ3PrEM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54189: pstore/ram: Add check for kstrdup Date: Tue, 30 Dec 2025 13:09:57 +0100 Message-ID: <2025123026-CVE-2023-54189-a4d5@gregkh> X-Mailer: git-send-email 2.52.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=2997; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pfU3CnS6VCOmftLYLEOHe10bdW0RbovsJ9+aSfcMI/k=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBB75vsMxru7qFe+IPwTUzBBq+P9fV2hf51ZabU//97 3tq0cfDO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiJ0oZ5umxMn3b/FTTKJlZ 04FDXSJ43srSFwzzczsvLjn/5f70oMcPc9eXNtbM64kuBAA= 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: pstore/ram: Add check for kstrdup Add check for the return value of kstrdup() and return the error if it fails in order to avoid NULL pointer dereference. The Linux kernel CVE team has assigned CVE-2023-54189 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4.12 with commit c617a3b777b92a0e80ceff2dffaae9350d4c3850 and fixed in 5.4.251 with commit 8430a8e8e85420d4cb51dcb08b0278ab194ea82f Issue introduced in 5.5 with commit e163fdb3f7f8c62dccf194f3f37a7bcb3c333aa8 and fixed in 5.10.188 with commit a14cb307267ba7a1715403e071bdc4deda77eef5 Issue introduced in 5.5 with commit e163fdb3f7f8c62dccf194f3f37a7bcb3c333aa8 and fixed in 5.15.121 with commit 38a9d7dac3ad25323145b4aaea3b5f434f50011d Issue introduced in 5.5 with commit e163fdb3f7f8c62dccf194f3f37a7bcb3c333aa8 and fixed in 6.1.39 with commit f57ba91a46d3fc52bfdac9cca5cf5572ec7afd6d Issue introduced in 5.5 with commit e163fdb3f7f8c62dccf194f3f37a7bcb3c333aa8 and fixed in 6.3.13 with commit 2a764a2facd9dd88a69777200f65dfd0182765dc Issue introduced in 5.5 with commit e163fdb3f7f8c62dccf194f3f37a7bcb3c333aa8 and fixed in 6.4.4 with commit 065c81ae5817b245bb9feb6d54e027702740b49a Issue introduced in 5.5 with commit e163fdb3f7f8c62dccf194f3f37a7bcb3c333aa8 and fixed in 6.5 with commit d97038d5ec2062733c1e016caf9baaf68cf64ea1 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-54189 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: fs/pstore/ram_core.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/8430a8e8e85420d4cb51dcb08b0278ab194ea82f https://git.kernel.org/stable/c/a14cb307267ba7a1715403e071bdc4deda77eef5 https://git.kernel.org/stable/c/38a9d7dac3ad25323145b4aaea3b5f434f50011d https://git.kernel.org/stable/c/f57ba91a46d3fc52bfdac9cca5cf5572ec7afd6d https://git.kernel.org/stable/c/2a764a2facd9dd88a69777200f65dfd0182765dc https://git.kernel.org/stable/c/065c81ae5817b245bb9feb6d54e027702740b49a https://git.kernel.org/stable/c/d97038d5ec2062733c1e016caf9baaf68cf64ea1