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 BAAE712CD91 for ; Wed, 17 Apr 2024 10:29:23 +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=1713349763; cv=none; b=YYRxYUJy9IXqyTqKtLpD78Jocxr4/TTtai1qcazrDfmkQeGjvGR7hB26Xndn2dlonVEuXNNzHZjqLQqMTuiy/dQ0I/7aQGr1Lfe+j3vZ+hNtFDCAn2Zgiqfzk7Ty5eOF2nA9pyqIpxwmoLFMcwvxxgEqPSsUfS+sTK6mwK3wJL8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713349763; c=relaxed/simple; bh=VtB+sARDWGSP0vfPFYWjxLZwkSYohjkZgshv5I4MU8o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WwVyVwSeulKgM7lkuS/qshEMJgtJzvGpfvQqTcztYfR/7pQ9NbQIm1G0RSOTwRJe/oww1cG4Z+w1P/Ib8R8Z8KW2J3TvfqwZDTFlHX5wVzASm2D+iM/T/z1xXF6RAKpXxBcsYpEgL9e/zpNTgg1kKq8/KJtzvcbRozikzCs91Kw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=t4PTticL; 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="t4PTticL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40E83C32783; Wed, 17 Apr 2024 10:29:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713349763; bh=VtB+sARDWGSP0vfPFYWjxLZwkSYohjkZgshv5I4MU8o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=t4PTticLTKAIfraHTTFvDpe1uCyaezHxHp4qxaa7YPFb4StrpJe+R8BOTaIzcPb2B 00ehkYlR7/L6tksMw3cxDBJtxvs1m8cd64kmPyDyr5+lbfg5LRkDZsm+LZ+pJOCY1N yVXbYScL+/RTaJWeQzpb91KRRhpadE1C/R3tlwLQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26877: crypto: xilinx - call finalize with bh disabled Date: Wed, 17 Apr 2024 12:28:52 +0200 Message-ID: <2024041739-CVE-2024-26877-72a3@gregkh> X-Mailer: git-send-email 2.44.0 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=4518; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VtB+sARDWGSP0vfPFYWjxLZwkSYohjkZgshv5I4MU8o=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnySyIE3/Y/nPx69b+YTPd3vv85K29F5J7c5pokcuqHu Ol6S7NnHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRZXIMC6axOdsc4bMvi+rY wxXwJvT2rbSbnAwLTt13aly/Y8Wf1un7GjYbxQdoKxdWAQA= 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: xilinx - call finalize with bh disabled When calling crypto_finalize_request, BH should be disabled to avoid triggering the following calltrace: ------------[ cut here ]------------ WARNING: CPU: 2 PID: 74 at crypto/crypto_engine.c:58 crypto_finalize_request+0xa0/0x118 Modules linked in: cryptodev(O) CPU: 2 PID: 74 Comm: firmware:zynqmp Tainted: G O 6.8.0-rc1-yocto-standard #323 Hardware name: ZynqMP ZCU102 Rev1.0 (DT) pstate: 40000005 (nZcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : crypto_finalize_request+0xa0/0x118 lr : crypto_finalize_request+0x104/0x118 sp : ffffffc085353ce0 x29: ffffffc085353ce0 x28: 0000000000000000 x27: ffffff8808ea8688 x26: ffffffc081715038 x25: 0000000000000000 x24: ffffff880100db00 x23: ffffff880100da80 x22: 0000000000000000 x21: 0000000000000000 x20: ffffff8805b14000 x19: ffffff880100da80 x18: 0000000000010450 x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000 x14: 0000000000000003 x13: 0000000000000000 x12: ffffff880100dad0 x11: 0000000000000000 x10: ffffffc0832dcd08 x9 : ffffffc0812416d8 x8 : 00000000000001f4 x7 : ffffffc0830d2830 x6 : 0000000000000001 x5 : ffffffc082091000 x4 : ffffffc082091658 x3 : 0000000000000000 x2 : ffffffc7f9653000 x1 : 0000000000000000 x0 : ffffff8802d20000 Call trace: crypto_finalize_request+0xa0/0x118 crypto_finalize_aead_request+0x18/0x30 zynqmp_handle_aes_req+0xcc/0x388 crypto_pump_work+0x168/0x2d8 kthread_worker_fn+0xfc/0x3a0 kthread+0x118/0x138 ret_from_fork+0x10/0x20 irq event stamp: 40 hardirqs last enabled at (39): [] _raw_spin_unlock_irqrestore+0x70/0xb0 hardirqs last disabled at (40): [] el1_dbg+0x28/0x90 softirqs last enabled at (36): [] kernel_neon_begin+0x8c/0xf0 softirqs last disabled at (34): [] kernel_neon_begin+0x60/0xf0 ---[ end trace 0000000000000000 ]--- The Linux kernel CVE team has assigned CVE-2024-26877 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit 4d96f7d48131 and fixed in 5.10.214 with commit 8a01335aedc5 Issue introduced in 5.7 with commit 4d96f7d48131 and fixed in 5.15.153 with commit 03e6d4e94843 Issue introduced in 5.7 with commit 4d96f7d48131 and fixed in 6.1.83 with commit a71f66bd5f7b Issue introduced in 5.7 with commit 4d96f7d48131 and fixed in 6.6.23 with commit 23bc89fdce71 Issue introduced in 5.7 with commit 4d96f7d48131 and fixed in 6.7.11 with commit 9db89b1fb855 Issue introduced in 5.7 with commit 4d96f7d48131 and fixed in 6.8.2 with commit dbf291d8ffff Issue introduced in 5.7 with commit 4d96f7d48131 and fixed in 6.9-rc1 with commit a853450bf4c7 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-26877 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/crypto/xilinx/zynqmp-aes-gcm.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/8a01335aedc50a66d04dd39203c89f4bc8042596 https://git.kernel.org/stable/c/03e6d4e948432a61b35783323b6ab2be071d2619 https://git.kernel.org/stable/c/a71f66bd5f7b9b35a8aaa49e29565eca66299399 https://git.kernel.org/stable/c/23bc89fdce71124cd2126fc919c7076e7cb489cf https://git.kernel.org/stable/c/9db89b1fb85557892e6681724b367287de5f9f20 https://git.kernel.org/stable/c/dbf291d8ffffb70f48286176a15c6c54f0bb0743 https://git.kernel.org/stable/c/a853450bf4c752e664abab0b2fad395b7ad7701c