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 DA61A33F8DE for ; Wed, 22 Oct 2025 13:27:27 +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=1761139647; cv=none; b=vBSYbXCvg0MtZj1psL1W4+lnQsRkh3r9pqDQhTMhxJoaKj6TyrMTQ4UOXVjxUK8V8EeBTWV3H48nC0P00SPUJAGgDfqSGiyQx97bY6oC4nPmUwpbNOoWd00qYfWNEkARri4cniSL5gduBoOyBb0674nnAfBRAx8AyABGTrTuJVQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761139647; c=relaxed/simple; bh=QKAFNMyYp0ba5XIBgEGEPAvkF44yMX9Hnb63Qtseioo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IBkgHEcDj9yHibT4HaqSIPH4IgTIUY/pn9wz+YoVjWBAY7m4YSQHoWtVqlGzIsWtHtsnaPt7yb2I5OmXWkFONqzdHYMzxISOE5LKvZVsaZX+YbkhQhKTkm++0bJN2sPHUdAsqFOdLMmEwC4dJGPhLx3kN8oLHAYg3d5R4Cdl5pY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ujx7Fvzu; 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="ujx7Fvzu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FFFFC4CEE7; Wed, 22 Oct 2025 13:27:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761139647; bh=QKAFNMyYp0ba5XIBgEGEPAvkF44yMX9Hnb63Qtseioo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ujx7FvzuZVVU0C/DxYdeHlcG03yNcEro+rAsx3PD83L2zpuLZoN3mZs7uCycbvMW5 9D/g5znr3Bp5t0K4vW/T9NfU3h/DpZEiRJ/09RlZwmBzMTs9C1nxoc3IoSERXiNc4o /lkAnbfL4yUSllj4H4d5IBG053idilvQ6+Qe4sdg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53702: s390/crypto: use vector instructions only if available for ChaCha20 Date: Wed, 22 Oct 2025 15:24:41 +0200 Message-ID: <2025102211-CVE-2023-53702-a6b6@gregkh> X-Mailer: git-send-email 2.51.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=3977; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ho5Ndj4gud5vc6NV82nfjwiIIHdcj7FOd+++ib+BMlE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk/bv1WWKgXv+K81933Gy9N2W6ZnHohbF3d+gkxy1grC 47/KlwZ0RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATYZ/JsKA9YKveivdKov+e bmwU+rJ2akvpirUMc2Uvr35wSujenCdlW1jL163k/dgsuAAA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: s390/crypto: use vector instructions only if available for ChaCha20 Commit 349d03ffd5f6 ("crypto: s390 - add crypto library interface for ChaCha20") added a library interface to the s390 specific ChaCha20 implementation. However no check was added to verify if the required facilities are installed before branching into the assembler code. If compiled into the kernel, this will lead to the following crash, if vector instructions are not available: data exception: 0007 ilc:3 [#1] SMP Modules linked in: CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.3.0-rc7+ #11 Hardware name: IBM 3931 A01 704 (KVM/Linux) Krnl PSW : 0704e00180000000 000000001857277a (chacha20_vx+0x32/0x818) R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:3 CC:2 PM:0 RI:0 EA:3 Krnl GPRS: 0000037f0000000a ffffffffffffff60 000000008184b000 0000000019f5c8e6 0000000000000109 0000037fffb13c58 0000037fffb13c78 0000000019bb1780 0000037fffb13c58 0000000019f5c8e6 000000008184b000 0000000000000109 00000000802d8000 0000000000000109 0000000018571ebc 0000037fffb13718 Krnl Code: 000000001857276a: c07000b1f80b larl %r7,0000000019bb1780 0000000018572770: a708000a lhi %r0,10 #0000000018572774: e78950000c36 vlm %v24,%v25,0(%r5),0 >000000001857277a: e7a060000806 vl %v26,0(%r6),0 0000000018572780: e7bf70004c36 vlm %v27,%v31,0(%r7),4 0000000018572786: e70b00000456 vlr %v0,%v27 000000001857278c: e71800000456 vlr %v1,%v24 0000000018572792: e74b00000456 vlr %v4,%v27 Call Trace: [<000000001857277a>] chacha20_vx+0x32/0x818 Last Breaking-Event-Address: [<0000000018571eb6>] chacha20_crypt_s390.constprop.0+0x6e/0xd8 ---[ end trace 0000000000000000 ]--- Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b Fix this by adding a missing MACHINE_HAS_VX check. [agordeev@linux.ibm.com: remove duplicates in commit message] The Linux kernel CVE team has assigned CVE-2023-53702 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 349d03ffd5f62c298fd667ffa397c3fdc5c6194b and fixed in 6.1.30 with commit 25e8d30507aa2f251152df1af7809e85b5538f4a Issue introduced in 5.19 with commit 349d03ffd5f62c298fd667ffa397c3fdc5c6194b and fixed in 6.3.4 with commit debb7797bba0caffdbdadc3e7968bb2c414f50da Issue introduced in 5.19 with commit 349d03ffd5f62c298fd667ffa397c3fdc5c6194b and fixed in 6.4 with commit 8703dd6b238da0ec6c276e53836f8200983d3d9b 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-53702 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/chacha-glue.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/25e8d30507aa2f251152df1af7809e85b5538f4a https://git.kernel.org/stable/c/debb7797bba0caffdbdadc3e7968bb2c414f50da https://git.kernel.org/stable/c/8703dd6b238da0ec6c276e53836f8200983d3d9b