Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 2C1EB37A854 for ; Sat, 25 Jul 2026 08:53:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784969622; cv=none; b=BPYZNaBHfnyjfMLKU2/OaCjcK1MMDHcWwPo7b6fvr24WWN41RT+/FK1LlZxpToiStcfbOfqWo0BcrC7m7ZZGHIXAWG+p/txxmXClddAOHV7XCUDbfggm90ivM1o+XY/yQCgCnrltbYnzPdFCNOSShZCeRsUDbAqtisajSqYSslg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784969622; c=relaxed/simple; bh=0G4ZjZy1Upwe+rhBJJ4uQ4TWvIzN5qYha3hZcMTIGKM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fIVrTe22GRpsDjJgfEeWNnK34Vo+DXo9uKI0VNHPEvf2T2SbpIw0CLpBGNTNx5iZ3xLYKX2WA4hiqgrEqWpMcOMEdjP9GQoxCj5K4hbGS6Zvrp3sF1Rz8b4LPyCfwF1Npq/ingQxnnDk0fWUp7hGbH+XZ45n7bmRJ6w+/ztI88Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=McrA4Aml; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="McrA4Aml" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EE2D1F000E9; Sat, 25 Jul 2026 08:53:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784969621; bh=EeO3tkvHlMueLXO57fe9QEEGFlCVg7opINIfBjS5et0=; h=From:To:Cc:Subject:Date:Reply-To; b=McrA4AmlOivTREsOXml3i5kwWiePG4vU4ooNwKSZAeRhH78q8g1Y/VZxPUak9oTRl jnGrFBQHYTn0R0XIGtKUOOJmSt3nVTppRZrI++jOOMg7IYmeJbcEBL+2cyRqkcq6m8 0G9bZtF88J4w7sygLimxEI+Nmese033HRdvZ0k9w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64314: crypto: chacha20poly1305 - validate poly1305 template argument Date: Sat, 25 Jul 2026 10:48:51 +0200 Message-ID: <2026072509-CVE-2026-64314-89f3@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2575; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sJBszSQG2/UIXslAWHpISSCTdTsg31vWz7+mlLNE+WU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkpFV4bLkheupwgfXLLBV/T/M/Bd05a3hIWefN/yQOtz O8utwL9OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAisQsZ5qmdnjOhImybgGxQ hqeTzUnFLTuu1DEsuGVe8sP+0yyjX23T+Np/V+wLXb+dBwA= 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: crypto: chacha20poly1305 - validate poly1305 template argument chachapoly_create() still accepts the compatibility poly1305 parameter in the template name, but it assumes the second template argument is always present and immediately passes it to strcmp(). When the argument is missing, crypto_attr_alg_name() returns an error pointer. Check for that before comparing the name so malformed template instantiations fail with an error instead of dereferencing the error pointer in strcmp(). This matches the surrounding Crypto API template pattern where crypto_attr_alg_name() results are validated before string-specific use. The Linux kernel CVE team has assigned CVE-2026-64314 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit a298765e28adaea199f722142c10dae7e24dedf8 and fixed in 6.18.39 with commit 0016d3c21c6ab60a20be7f565cefb5999f3adeb6 Issue introduced in 6.16 with commit a298765e28adaea199f722142c10dae7e24dedf8 and fixed in 7.1.4 with commit e74df53b36cdc6b6b9e5488ec883d1d55624737f Issue introduced in 6.16 with commit a298765e28adaea199f722142c10dae7e24dedf8 and fixed in 7.2-rc1 with commit 265b861bece38318b8e0fc8fac0643d4ef906d31 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-2026-64314 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: crypto/chacha20poly1305.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/0016d3c21c6ab60a20be7f565cefb5999f3adeb6 https://git.kernel.org/stable/c/e74df53b36cdc6b6b9e5488ec883d1d55624737f https://git.kernel.org/stable/c/265b861bece38318b8e0fc8fac0643d4ef906d31