CVE-2026-64314

crypto: chacha20poly1305 - validate poly1305 template argument

Published Jul 25, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability occurs in the Linux kernel’s ChaCha20-Poly1305 crypto implementation. The function chachapoly_create() accepts an optional second template argument, but if that argument is missing it still passes the resulting error pointer returned by crypto_attr_alg_name() into strcmp() without validation. This causes a null pointer dereference that can crash the kernel, resulting in a denial‑of‑service condition. The issue mirrors the usual Crypto API template pattern, where crypto_attr_alg_name() results should be validated before string usage.

Affected Systems

All Linux kernel images that have not been updated with the Poly1305 template argument validation fix. The fix applies to every distribution’s kernel before the patch; the vulnerability is not limited to a specific kernel version. Systems running the unsupported kernel code are affected.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity, and the EPSS score of less than 1% suggests a low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalogue. If a malformed Poly1305 template is processed by the kernel, the unvalidated error pointer can lead to a kernel crash and a denial‑of‑service impact. No specific information about required privileges or access is provided in the CVE data, so the risk depends on the ability of an attacker to cause the kernel to process such a template argument.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the running kernel to a revision that includes the Poly1305 template argument validation fix.
  • If upgrading immediately is not feasible, ensure that no kernel modules or userspace components instantiate a malformed Poly1305 template; modify such code to provide a valid second argument or handle errors properly.
  • Enable module signature enforcement or other kernel hardening features to prevent unauthorized modules from loading until the vulnerability is patched.

Generated by OpenCVE AI on September 3, 2026 at 21:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8726-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8727-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8760-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-2 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-3 Linux kernel (IBM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8800-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8760-2 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-4 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-3 Linux kernel (Oracle) vulnerabilities
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Weaknesses CWE-476
Type Values Removed Values Added
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.
Title crypto: chacha20poly1305 - validate poly1305 template argument
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 17, 2026, 4:53 AM
Reserved
Jul 19, 2026, 3:36 PM
Status
Analyzed
Published
Jul 25, 2026, 10:17 AM
Modified
Oct 24, 2026, 1:10 PM
Severity
Public date
Jul 25, 2026, 12:00 AM