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 264D62D5943 for ; Mon, 15 Sep 2025 12:37:19 +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=1757939840; cv=none; b=gs5LfAUjFNWM8blgkfgwN9+4ZpDjcmYfQNI/buNm1V3WgOra5EYIXCG1dcCgkpxW7edMbYR53a/HkWyCJ/AYcqFn/8g/eWFTPfmr3HUaRm2sOvao4iELRK9GqBe9U2dzyB1LwF6TKkBuZ9b+GnLs53++DiOjVbA9w5giC/A4Y1M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757939840; c=relaxed/simple; bh=W47pd8HB9foB6qlLXKmIzZF771idpvkkStJ5I6dEcck=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aifXGzaD14YEoht968r3uRZer6QxIXw5zOZXxPWaFXJ+vCsQ2GPslWIyb3Y+OLZrPDyNQBQMqfuDcs9dGp05w/MXBM4NdymPxV4cpdKG5gXXstxAlnrumpk9uy0OQF1Ob8x4Mrf+QCmVi3A9zcfp+4/sFsLqbeeim8uOxRgvOVk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kRqbsl/R; 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="kRqbsl/R" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46762C4CEF1; Mon, 15 Sep 2025 12:37:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757939839; bh=W47pd8HB9foB6qlLXKmIzZF771idpvkkStJ5I6dEcck=; h=From:To:Cc:Subject:Date:Reply-to:From; b=kRqbsl/RmFKLDXvfnWBDfKUCKG6izMMycA9YOeHt895FcWQgZJ+lEYD8GSZrlB0rS N9kmegnJ5XOs+dMRX+UuwQb3UjoOa9Z9Sx4isp54boWtc1vwOmkQ3W4Y9H2tsGZOcL S7uOkWH2vs2/Se+Tb6v6+UypFxud6kv9QIfDV5hs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39804: lib/crypto: arm64/poly1305: Fix register corruption in no-SIMD contexts Date: Mon, 15 Sep 2025 14:36:54 +0200 Message-ID: <2025091551-CVE-2025-39804-bf3b@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=2409; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UZpBWM00ReibcBFfxt7A1msBCNk2elCUPvY2L1l8Y70=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknOFLemfvm1+52XdP+8/dVgbAa7Wiul+VyqtrVu5cXt c2Ytl+pI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbyIYlhwZYpXz/xXPBg2NIz pZPtq9sCLrnLNgwLziQLmiprbFZIeOj4c1Vc6FeuIgkNAA== 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: arm64/poly1305: Fix register corruption in no-SIMD contexts Restore the SIMD usability check that was removed by commit a59e5468a921 ("crypto: arm64/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-39804 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit a59e5468a921937cb7317892779c67046ad9f5cc and fixed in 6.16.4 with commit ef74efa598b7bbc5c24509f7f56af2806f81c339 Issue introduced in 6.16 with commit a59e5468a921937cb7317892779c67046ad9f5cc and fixed in 6.17-rc1 with commit eec76ea5a7213c48529a46eed1b343e5cee3aaab 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-39804 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/arm64/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/ef74efa598b7bbc5c24509f7f56af2806f81c339 https://git.kernel.org/stable/c/eec76ea5a7213c48529a46eed1b343e5cee3aaab