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 DF261446B4 for ; Tue, 21 May 2024 15:39:30 +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=1716305971; cv=none; b=n+iYJcco766hU0hS9B5aFCVDbUPyY/KLQEDuqEZLZiHZkTAzO1Ktegg9aeTPtXtbyWLpeFqhtTkAvnYPJENJUhsAYLL6CJ37fINC11oqYhNRVWBuKqdJOVwnIALUkGOFlmsV/cRj56FSIrGUqsfakJA/bWYp+p7/kvxrADHqDA4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305971; c=relaxed/simple; bh=W+SOKCbn7E4GNoGztsD5hYvX5VkivbjyPBssfItgupc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iNIBuaG4GpgpOY8JDhrE+EsDX+Jty+MA7s5loPJD8Xp+WFW1jai+BgiX/rjdplPYOjmdKLuFBznXikeEkvQkwEyZs/dUn0/S6CDVHWCh0MVzgTysEaLuWnWBtSXvvETxAkQOkW5v7/ZQihO8t7XDpjwfUJp+BnZd2sSii0yWq3k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yGf2YcVE; 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="yGf2YcVE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 671FDC2BD11; Tue, 21 May 2024 15:39:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305970; bh=W+SOKCbn7E4GNoGztsD5hYvX5VkivbjyPBssfItgupc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=yGf2YcVEtaHKj+2/XkQ5PogKY7MeDJX5X0NrRUkq1LESbamfpjzqe++XzBbwMKkmO WCqDKmPKr9rL/5TUGUmXz6YqV44gh/0amlGtN0y/Y+3l9oK9xdUyqMpXKpFWiFa8GQ yHyG8cQvKLCbU+SQYbKqLbXxUGSRhg0+9WCiKB98= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52869: pstore/platform: Add check for kstrdup Date: Tue, 21 May 2024 17:32:45 +0200 Message-ID: <2024052120-CVE-2023-52869-6f57@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=2435; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=W+SOKCbn7E4GNoGztsD5hYvX5VkivbjyPBssfItgupc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++zzUqq3OPzRcdf/Vu1ezQj1mek4Q/8972NVyocm7Y 3pPG4PvdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBErqxnmCswX+nhja4dOjdu Z6zb38zy9bhc/WyGecZbmXKNCvNebImROBqg/3zWMyU2dwA= 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: pstore/platform: 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-52869 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 563ca40ddf40 and fixed in 5.10.201 with commit bb166bdae1a7 Issue introduced in 5.8 with commit 563ca40ddf40 and fixed in 5.15.139 with commit 379b120e4f27 Issue introduced in 5.8 with commit 563ca40ddf40 and fixed in 6.1.63 with commit 63f637309baa Issue introduced in 5.8 with commit 563ca40ddf40 and fixed in 6.5.12 with commit 1c426da79f9f Issue introduced in 5.8 with commit 563ca40ddf40 and fixed in 6.6.2 with commit ad5cb6deb414 Issue introduced in 5.8 with commit 563ca40ddf40 and fixed in 6.7 with commit a19d48f7c5d5 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-52869 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/platform.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/bb166bdae1a7d7db30e9be7e6ccaba606debc05f https://git.kernel.org/stable/c/379b120e4f27fd1cf636a5f85570c4d240a3f688 https://git.kernel.org/stable/c/63f637309baadf81a095f2653e3b807d4b5814b9 https://git.kernel.org/stable/c/1c426da79f9fc7b761021b5eb44185ba119cd44a https://git.kernel.org/stable/c/ad5cb6deb41417ef41b9d6ff54f789212108606f https://git.kernel.org/stable/c/a19d48f7c5d57c0f0405a7d4334d1d38fe9d3c1c