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 1CCDE1DDCE for ; Sun, 19 May 2024 10:12:15 +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=1716113535; cv=none; b=sThJgPihxFgSmU11wGwbxQ85fGepuAymGu18NfbPQ/eKYjwE7DcSHst09915jBx/ZOvlJ0aPTwPHw7tCyJtGzEOth9AfIIFoxPawOEdfIrA45Xj/jhhK7GJU90X9QKNySYs5KXWzombM8FHbf3DUrD7UMdNJoKTNE1TBphpe0M4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716113535; c=relaxed/simple; bh=JQrHttyy9LNpQItlPbkBS5tBWwEzxQxzHnKAyiQZRPE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S8oY3A1Z/2C5VA58aAw1TUMWbjgjXzAOW5lut7B0rQkJoIgW6WesN/wyIjoQ79Qb4LzJXdi7/866B9ChE4pO566PwH0afnYCxjM5XLAqP70OMvWVQ/M7VlT29eqrnNK5phXTA1owEhKcvHJ8Z9MIOZYi39Bc9kR99BhfdBynExQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Z6ZMRTQ0; 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="Z6ZMRTQ0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D3DDC32781; Sun, 19 May 2024 10:12:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716113534; bh=JQrHttyy9LNpQItlPbkBS5tBWwEzxQxzHnKAyiQZRPE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Z6ZMRTQ0I4dIzrl96RlhowLAOcy4S1t1V9cCgUpAtXJZ5DRht/wWoLt+sKBqu+FXe kklegbBdJoHvuPQwhi5l2v0xPvvZb0kjk0ORAkk4/pX2+TT/EDhAoUQ9dQZjscA3Gc ju+SE2Waz1mIeHBayaiXYWTELjFMrwTxWXx2Ad8c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35940: pstore/zone: Add a null pointer check to the psz_kmsg_read Date: Sun, 19 May 2024 12:11:34 +0200 Message-ID: <2024051919-CVE-2024-35940-5c73@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=2178; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JQrHttyy9LNpQItlPbkBS5tBWwEzxQxzHnKAyiQZRPE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmeF9wfriiZu8FoL7v0Pj3B4ISYhcpXJwcn7a9+EruO8 f2GT8E6HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRtQwMs5gbj98WWmBzdfX/ hRu92m8J/TdJC2aYpzRZ9UygjrTb3RKvif5GXwU+zH0VCwA= 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/zone: Add a null pointer check to the psz_kmsg_read kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Ensure the allocation was successful by checking the pointer validity. The Linux kernel CVE team has assigned CVE-2024-35940 to this issue. Affected and fixed versions =========================== Fixed in 5.10.215 with commit 98e2b97acb87 Fixed in 5.15.155 with commit 0ff96ec22a84 Fixed in 6.1.86 with commit 635594cca59f Fixed in 6.6.27 with commit ec7256887d07 Fixed in 6.8.6 with commit 6f9f2e498eae Fixed in 6.9 with commit 98bc7e26e14f 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-2024-35940 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/zone.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/98e2b97acb875d65bdfc75fc408e67975cef3041 https://git.kernel.org/stable/c/0ff96ec22a84d80a18d7ae8ca7eb111c34ee33bb https://git.kernel.org/stable/c/635594cca59f9d7a8e96187600c34facb8bc0682 https://git.kernel.org/stable/c/ec7256887d072f98c42cdbef4dcc80ddf84c7a70 https://git.kernel.org/stable/c/6f9f2e498eae7897ba5d3e33908917f68ff4abcc https://git.kernel.org/stable/c/98bc7e26e14fbb26a6abf97603d59532475e97f8