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 ED5F62D5943 for ; Mon, 15 Sep 2025 12:37:12 +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=1757939833; cv=none; b=r4EVEkYxF1hAQWtTakuxTpc9juARy2GIkziQxuZWxr/mkY/j26up259SfT0hTxbWVG6Pcep95YN3/Fe3VlwMTLlAX+XDLkoK9PV0HMVxCdnZidJ1IbMGZSHN6euu+JERmGybL2KLDG1EnK+jGnj+tAzDeFB8OXY1139BCZXo85s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757939833; c=relaxed/simple; bh=L2N8dXoqSx26Xb4M2T+IA6//8BRJCxqH2AUuDg0lvBg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PJswkD4hubQbQj9kbYzd+FYZL1fZhtEHh3Bu0avk7Rkru4kytN4gjKXFEQo233dtIGB8WwFFANcpE0+h+eZdAzLy5sYji+fpzS3vTIr+mIzJvJS5Ocy7U+bqA1/39S3mg+LT2Px/geNUUuw68CuyUG3BkBdgtU0Ssfpjcnx1LLY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0+gkNKYl; 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="0+gkNKYl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4F7DC4CEF1; Mon, 15 Sep 2025 12:37:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757939832; bh=L2N8dXoqSx26Xb4M2T+IA6//8BRJCxqH2AUuDg0lvBg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0+gkNKYlyDLnzKfI6yaEw7gGpi6v+FY8I5FYYm5A00Fv2YO5aTnLQxMwID+V5NKXg JR6YT7FLmPDXUREbL2Oxt6hQllM+AwJy8gFyq01vaLyoWRBcYKqwRd91+1RKINSzCg GrJkwncDv+NvAl8u5+/pIUQcGxse42iYcmacnOJE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39802: lib/crypto: arm/poly1305: Fix register corruption in no-SIMD contexts Date: Mon, 15 Sep 2025 14:36:52 +0200 Message-ID: <2025091551-CVE-2025-39802-fba9@gregkh> X-Mailer: git-send-email 2.51.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=2403; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=X6n/djZPKr4ZBMNp/xptQfeGorUR005xrByiyXjFanE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknOJKLGUSYrktWON+e+1Tn1YuLFbEn7Gqz9ctaN8ZVN MoYJazviGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIk8qmKYw6UUElnr/JX/F8/3 xFl/ZTR+VmRwMyxolj904+fxNWvF7z52DPk4Q3t1ccInAA== 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: lib/crypto: arm/poly1305: Fix register corruption in no-SIMD contexts Restore the SIMD usability check that was removed by commit 773426f4771b ("crypto: arm/poly1305 - Add block-only interface"). This safety check is cheap and is well worth eliminating a footgun. While the Poly1305 functions should not be called when SIMD registers are unusable, if they are anyway, they should just do the right thing instead of corrupting random tasks' registers and/or computing incorrect MACs. Fixing this is also needed for poly1305_kunit to pass. Just use may_use_simd() instead of the original crypto_simd_usable(), since poly1305_kunit won't rely on crypto_simd_disabled_for_test. The Linux kernel CVE team has assigned CVE-2025-39802 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 773426f4771bdd82ac5c834bf4c1775315c73a46 and fixed in 6.16.4 with commit 87bdfba903be7084cb3ee04032b14a81181fe413 Issue introduced in 6.16 with commit 773426f4771bdd82ac5c834bf4c1775315c73a46 and fixed in 6.17-rc1 with commit 52c3e242f4d0043186b70d65460ba1767f27494a 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-2025-39802 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: lib/crypto/arm/poly1305-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/87bdfba903be7084cb3ee04032b14a81181fe413 https://git.kernel.org/stable/c/52c3e242f4d0043186b70d65460ba1767f27494a