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 D8D41190666 for ; Tue, 30 Jul 2024 07:51: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=1722325865; cv=none; b=nr9XwwkG1dG0CPe+7OANMAudCv9aJnpCQj0JodRg3z64BvvjShVHF12Axd14xMUFk9DFidoa3LGbivPX0473UAGEJG3hb6GhrgZMB8wpFSXbJg4zbQ7X3J6ocQZaB9EGHyzAhUUTkqquHqQXY22G88jgqf+JVG2unRcX6t+OXA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325865; c=relaxed/simple; bh=1GwMgH5A8vc+/guF8xZe/Wippp77A88+FfjkIxdaMDg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mr0dUVkDm1LM0iXYZ2EHMuUrF5ptq+FFDpiFOFyOEXe2yfbEFJE419km/wnOPRZmbFhyMeroybIbRobyIEVAaQivoKKp5kThchUj/oZ5qyYbGVbkNinC5h+CtRVvCjDpItn7j9D8BNfJWyZPZmVLowqV7N11HYY2tR/5al5z508= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=K96Wqr1d; 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="K96Wqr1d" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 549E9C32782; Tue, 30 Jul 2024 07:51:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325865; bh=1GwMgH5A8vc+/guF8xZe/Wippp77A88+FfjkIxdaMDg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=K96Wqr1dQV2tsq46JvSyYqFEWjdFxOxADk3pqCAcV6T0TTJdxOzSyp5f1i27Nt6WL DcDjpW/9umdsfDUgixOh89wv1NEMxTOD/sd0w5zrK7+iK5RfN386r9/7B17hUFwjGh cesvSgXGJT58mIiqxKYzfk6AmCDleAbZ9/XXxBdQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42157: s390/pkey: Wipe sensitive data on failure Date: Tue, 30 Jul 2024 09:48:15 +0200 Message-ID: <2024073035-CVE-2024-42157-ca67@gregkh> X-Mailer: git-send-email 2.45.2 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=2313; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1GwMgH5A8vc+/guF8xZe/Wippp77A88+FfjkIxdaMDg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZk03CnBfolw/c33/tZ0VbwTuL1keutk6Uz5tr1HQ9 ZnHHhe/74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJPLdjmF/f77Kp7fhVRR7H tY/DBRM1Jj3T6WOYn/ntQN3Kt+EpM+1nzU8+9eBJyOZQLQA= 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/pkey: Wipe sensitive data on failure Wipe sensitive data from stack also if the copy_to_user() fails. The Linux kernel CVE team has assigned CVE-2024-42157 to this issue. Affected and fixed versions =========================== Fixed in 4.19.318 with commit 6e2e374403bf Fixed in 5.4.280 with commit b5eb9176ebd4 Fixed in 5.10.222 with commit 93c034c4314b Fixed in 5.15.163 with commit 4889f117755b Fixed in 6.1.98 with commit c51795885c80 Fixed in 6.6.39 with commit 90a01aefb84b Fixed in 6.9.9 with commit c44a2151e5d2 Fixed in 6.10 with commit 1d8c270de5eb 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-42157 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: drivers/s390/crypto/pkey_api.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/6e2e374403bf73140d0efc9541cb1b3bea55ac02 https://git.kernel.org/stable/c/b5eb9176ebd4697bc248bf8d145e66d782cf5250 https://git.kernel.org/stable/c/93c034c4314bc4c4450a3869cd5da298502346ad https://git.kernel.org/stable/c/4889f117755b2f18c23045a0f57977f3ec130581 https://git.kernel.org/stable/c/c51795885c801b6b7e976717e0d6d45b1e5be0f0 https://git.kernel.org/stable/c/90a01aefb84b09ccb6024d75d85bb8f620bd3487 https://git.kernel.org/stable/c/c44a2151e5d21c66b070a056c26471f30719b575 https://git.kernel.org/stable/c/1d8c270de5eb74245d72325d285894a577a945d9