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 4074119149C for ; Tue, 30 Jul 2024 07:51:49 +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=1722325909; cv=none; b=NmTG5B/N8uKI8MitJDrdk9l11ymgMFPaQz2ZqU2KxQOhLvCby9/idrFgecGmdscMs1w4AyJyUNvV7pZ98ofBM/EZSpE01XVwbTkhIOckOegpK1HoJJNiq2m8J54WKh69yNVIQF2QbXsBGNS9QzxFuF9abscIbwuJtgEhiDEB5Z0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325909; c=relaxed/simple; bh=nj4gllEK9BZB+Itwp7bMi0Ed53eb9jZXJC3yY81oAQg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=g98BcT2BRNBO8z6XDZI1rsVrcox17hcsK3UQFp89Cl4is3UWYlTbStinrVwjRUqpn2XNReIrji7LA8L6y+lsgI7vUgh2jg1rMZAoewzoENTeKgaVvXxRzCwf1KTqFKyOX5kkPcGQVv457286F0g3QDOQ11OfSr1mdandVhCq4UY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RwUUqtU5; 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="RwUUqtU5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA4A3C32782; Tue, 30 Jul 2024 07:51:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325909; bh=nj4gllEK9BZB+Itwp7bMi0Ed53eb9jZXJC3yY81oAQg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RwUUqtU5bBOnw8FUw2i5t3SYmXN+cL/gYwzkUbV3WTQiHPuyQSrXZp2s4nX66rGko ER+UH2uux4E/cGqdgEllEQxdOHdlfmhGl3RBJyhWoHl1nmubzRqYuyfOFC1UsDO33I 0xb4hTyabJEkPGnfRtOglArR/Cm8iTK19laH3xD8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42229: crypto: aead,cipher - zeroize key buffer after use Date: Tue, 30 Jul 2024 09:48:27 +0200 Message-ID: <2024073039-CVE-2024-42229-8a13@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=2260; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nj4gllEK9BZB+Itwp7bMi0Ed53eb9jZXJC3yY81oAQg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZs124zr7+OHURJubAiJsd6tLzN88kz6zovGtWNPU0 3fZbk/06IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJmNgxLLgZv/VYVO7bC0vF p6msX3RjjUyY1mKG+dlzr/Ay1Tzanpz4/unXrwWS78R5mQA= 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: crypto: aead,cipher - zeroize key buffer after use I.G 9.7.B for FIPS 140-3 specifies that variables temporarily holding cryptographic information should be zeroized once they are no longer needed. Accomplish this by using kfree_sensitive for buffers that previously held the private key. The Linux kernel CVE team has assigned CVE-2024-42229 to this issue. Affected and fixed versions =========================== Fixed in 5.10.222 with commit 9db8c299a521 Fixed in 5.15.163 with commit 71dd42861537 Fixed in 6.1.98 with commit 28c8d274848f Fixed in 6.6.39 with commit b502d4a08875 Fixed in 6.9.9 with commit f58679996a83 Fixed in 6.10 with commit 23e4099bdc3c 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-42229 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: crypto/aead.c crypto/cipher.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/9db8c299a521813630fcb4154298cb60c37f3133 https://git.kernel.org/stable/c/71dd428615375e36523f4d4f7685ddd54113646d https://git.kernel.org/stable/c/28c8d274848feba552e95c5c2a7e3cfe8f15c534 https://git.kernel.org/stable/c/b502d4a08875ea2b4ea5d5b28dc7c991c8b90cfb https://git.kernel.org/stable/c/f58679996a831754a356974376f248aa0af2eb8e https://git.kernel.org/stable/c/23e4099bdc3c8381992f9eb975c79196d6755210