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 9ED9B56B6C for ; Fri, 17 May 2024 14:02: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=1715954525; cv=none; b=hOKMo+6MnPgn79Xndi3v7N27Aqgo1aaUVUIG5tTNPtww5azJJTlqBnQqlSvVBg8lSXFAQjI8Vdf5Et6U9x1kXqm17nQeC4LVb3YhkVMt6M8Zs9LGRaQHZYGrhc+HnN8Iy+Ztci9I0czOWprp73Il1aXt/QtGH3fX7BDy/Nubbvc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715954525; c=relaxed/simple; bh=6X+8n5S+Z54EZg6dCkCf743j7Gf/T5Nvn2oCR2RJp1k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JTybC3fmlcY5C3mJvXb8tZA9kR5GIm6LuvHbeXjGBYGRA93IgrvbWQQhbOuet0IriYa6MuMK5zmPD++lYE1IQsEzIhWbO6MNTO+j9/B6IE901mmuHfP00qpaUpaHWitTWtu4g6XRqqB2bs36/bhEnlINaTxbZsYmUBMc13hj5WE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Rudorgou; 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="Rudorgou" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F083C2BD10; Fri, 17 May 2024 14:02:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715954525; bh=6X+8n5S+Z54EZg6dCkCf743j7Gf/T5Nvn2oCR2RJp1k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Rudorgoua0BoDrO3JVeELk0CZ93SKuGon/eoLGGHtHrAQ/WOAIrr81vSqCvrtLUrB wDSh1dVD4W/KG1d5G3VFV+bERV61Wi4FwJs0q22a0pxO3ixTSsXy2SBPkP6qGaXxJC x6YX1o6ojIhVQMQhRWDPc2L9MSwqllFdpIHv6T/E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52669: crypto: s390/aes - Fix buffer overread in CTR mode Date: Fri, 17 May 2024 16:01:30 +0200 Message-ID: <2024051728-CVE-2023-52669-5a58@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=2586; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6X+8n5S+Z54EZg6dCkCf743j7Gf/T5Nvn2oCR2RJp1k=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnuyRbJd04kagrOVsss9aucmSifpOU8T/fCy7XsUf5GF /oUvjR0xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwET8oxnm5/y/c+BTk4+hbNTf 6onR84VdFJZtYpgfNHUrh+mGRsVo8X1OU/ZLdrzcb/MSAA== 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: s390/aes - Fix buffer overread in CTR mode When processing the last block, the s390 ctr code will always read a whole block, even if there isn't a whole block of data left. Fix this by using the actual length left and copy it into a buffer first for processing. The Linux kernel CVE team has assigned CVE-2023-52669 to this issue. Affected and fixed versions =========================== Issue introduced in 3.0 with commit 0200f3ecc196 and fixed in 5.10.210 with commit cd51e26a3b89 Issue introduced in 3.0 with commit 0200f3ecc196 and fixed in 5.15.149 with commit a7f580cdb42e Issue introduced in 3.0 with commit 0200f3ecc196 and fixed in 6.1.76 with commit dbc9a791a70e Issue introduced in 3.0 with commit 0200f3ecc196 and fixed in 6.6.15 with commit d68ac38895e8 Issue introduced in 3.0 with commit 0200f3ecc196 and fixed in 6.7.3 with commit e78f1a43e72d Issue introduced in 3.0 with commit 0200f3ecc196 and fixed in 6.8 with commit d07f951903fa 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-2023-52669 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/crypto/aes_s390.c arch/s390/crypto/paes_s390.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/cd51e26a3b89706beec64f2d8296cfb1c34e0c79 https://git.kernel.org/stable/c/a7f580cdb42ec3d53bbb7c4e4335a98423703285 https://git.kernel.org/stable/c/dbc9a791a70ea47be9f2acf251700fe254a2ab23 https://git.kernel.org/stable/c/d68ac38895e84446848b7647ab9458d54cacba3e https://git.kernel.org/stable/c/e78f1a43e72daf77705ad5b9946de66fc708b874 https://git.kernel.org/stable/c/d07f951903fa9922c375b8ab1ce81b18a0034e3b