From mboxrd@z Thu Jan 1 00:00:00 1970 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 CE88378C92 for ; Wed, 7 Aug 2024 15:26:29 +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=1723044389; cv=none; b=gpgWASV5H6ORiSOlC3+5Wl7VVY62EguutuEZ4crSO7rnhcmhWWcxViEnouVR98eKsfk0eBo/zlox5X6ccUKAz440heSG7QT2OEszd3bGFhIJwvYKzGqbfvKpcTxkxPN7IVbVZ/k01hSAGGHghE3gDOnPEyDejefUa57PH9W+Eyo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723044389; c=relaxed/simple; bh=qd5sjlkagy6vUhlgoWk9Lbyf8UfoQLQ7rq5e/Bssy8k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FaJ4BWYuK3oRrNnMgOeVxyE4GXVaffuqq7Z6JRvsZaM65s+m4IYxD/HFJbPOyMy/YlRvh3/cKPk/OvekQnDyJcF8SF7KFdAFsbaGfRwksDHr1wi9ppieGNLFBKMI6BudpYBKCzR8wBvEthpDgntQ637ABleQXi8hmzrcSvLpKVg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wO35LJpr; 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="wO35LJpr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA83EC32781; Wed, 7 Aug 2024 15:26:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723044389; bh=qd5sjlkagy6vUhlgoWk9Lbyf8UfoQLQ7rq5e/Bssy8k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wO35LJprsS+T+RgrfrlkdIgDTO5KGRK49JxA5aUaj5zonzZT2N06Z5JsaMIfs78R/ pOoN+SghrL8NuWODe5OwHt+y3BDf8swlNeWFEoWREhNHU/Ix3ovs6bGKoeNCts216A 0uZwP2LK8xU0RLqreDBSGGbHDcrYs7jKYWbhEeOQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42235: s390/mm: Add NULL pointer check to crst_table_free() base_crst_free() Date: Wed, 7 Aug 2024 17:14:41 +0200 Message-ID: <2024080740-CVE-2024-42235-efae@gregkh> X-Mailer: git-send-email 2.46.0 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=2250; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qd5sjlkagy6vUhlgoWk9Lbyf8UfoQLQ7rq5e/Bssy8k=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmb+xMMDU9s+qbhYVXR8HJRTFd6wDmZwy0bn+3+65ieo en+9d6JjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIfxjDgpXpv+dLrWU4qrpj WW4xxxOfTA7dkwzzq9kZCxoV/RIXNkRr/7Jb12qdbdQDAA== 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: s390/mm: Add NULL pointer check to crst_table_free() base_crst_free() crst_table_free() used to work with NULL pointers before the conversion to ptdescs. Since crst_table_free() can be called with a NULL pointer (error handling in crst_table_upgrade() add an explicit check. Also add the same check to base_crst_free() for consistency reasons. In real life this should not happen, since order two GFP_KERNEL allocations will not fail, unless FAIL_PAGE_ALLOC is enabled and used. The Linux kernel CVE team has assigned CVE-2024-42235 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 6326c26c1514 and fixed in 6.6.41 with commit 794fa52b9463 Issue introduced in 6.6 with commit 6326c26c1514 and fixed in 6.9.10 with commit f80bd8bb6f38 Issue introduced in 6.6 with commit 6326c26c1514 and fixed in 6.10 with commit b5efb63acf7b 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-42235 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/s390/mm/pgalloc.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/794fa52b94637d6b2e8c9474fbe3983af5c9f046 https://git.kernel.org/stable/c/f80bd8bb6f380bc265834c46058d38b34174813e https://git.kernel.org/stable/c/b5efb63acf7bddaf20eacfcac654c25c446eabe8