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 B347A190666 for ; Tue, 30 Jul 2024 07:51:09 +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=1722325869; cv=none; b=t1v2PtBjiW44D+lJ8f66QzQZ1RKHcaasbPu1xt5Z51zORX2Rr1boFF1xrOHINLeRWZfpqB3iTLNnv1Bkk84MpQ8fPhT1D1hQatOzDViluABIBCRuunEwoXSaD1HhNEReL+LdGebkSemj92yCWzTI68j/EzTg0WBjJxKS9FZbyEo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325869; c=relaxed/simple; bh=PrpYbI+Yu32nvYzsmQeiZ4mJlXIXFNbtRV0phgB+C6Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=snaRk67tskFFqKewOsME/1dWQI/w1G0M5rNB4X70aUlPQeEQa1EBoBthF2e1vCNfeSip5S+BO4g+At6jHPM7fwqw4n6iZBAvqNJp2hK9WE3zCoz8NannrYOXwrJe9kKf60T0OHz98cIin5fXxU7URerbUKLjUBIolw0z70sBbqQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CSwgqAmK; 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="CSwgqAmK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5A63C32782; Tue, 30 Jul 2024 07:51:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325869; bh=PrpYbI+Yu32nvYzsmQeiZ4mJlXIXFNbtRV0phgB+C6Y=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CSwgqAmK246BpKbXHGfh+Ij+CnVAxOc3p93dddtjYN/X3DQM/EVdfTR+qB1/Hbm3y XzMHwd5PAEbblkV3zHSBKyL72In/2+v+kZldgi0adE2B6o+x0cY41aeiIaRfuspGgD 6LIpIW9SNClIgjQHWiag7/h/55bTYbf3gqUeDsFc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42158: s390/pkey: Use kfree_sensitive() to fix Coccinelle warnings Date: Tue, 30 Jul 2024 09:48:16 +0200 Message-ID: <2024073035-CVE-2024-42158-3d50@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=1866; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PrpYbI+Yu32nvYzsmQeiZ4mJlXIXFNbtRV0phgB+C6Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZs34aFJxWPFx0JH2q5a3FTwlDLnfrZ/J/H2v6fTq4 8XBHFGiHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRWY8Y5tdZyW35qDldXJv3 fYLaEolHsS8Z5Bjmymn8m6pifZH/M/tZt5n3QhKTT6w1BAA= 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: Use kfree_sensitive() to fix Coccinelle warnings Replace memzero_explicit() and kfree() with kfree_sensitive() to fix warnings reported by Coccinelle: WARNING opportunity for kfree_sensitive/kvfree_sensitive (line 1506) WARNING opportunity for kfree_sensitive/kvfree_sensitive (line 1643) WARNING opportunity for kfree_sensitive/kvfree_sensitive (line 1770) The Linux kernel CVE team has assigned CVE-2024-42158 to this issue. Affected and fixed versions =========================== Fixed in 6.9.9 with commit 62151a0acde9 Fixed in 6.10 with commit 22e6824622e8 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-42158 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/62151a0acde90823bdfa991d598c85cf4b1d387d https://git.kernel.org/stable/c/22e6824622e8a8889df0f8fc4ed5aea0e702a694