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.
Published: 2026-07-25
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises in the Linux kernel’s ChaCha20-Poly1305 implementation. The chachapoly_create() function accepts a compatibility poly1305 template argument but incorrectly assumes a second template argument is always present. When the argument is omitted, crypto_attr_alg_name() returns an error pointer; the code then passes this pointer to strcmp() without checking, resulting in a null pointer dereference that can trigger a kernel panic and a denial of service. The flaw does not provide an attacker with code execution or escalated privileges, but it can crash the kernel if a malformed template is instantiated, either locally or through a module that invokes the cryptographic API.

Affected Systems

The issue affects all Linux kernel images that do not include the patch applied in commit e74df53b … The vulnerability applies to any build of the Linux kernel that predates the commit resolving the issue. No specific vendor version list is provided; the affected product is the Linux kernel itself. Anyone running a kernel that has not incorporated this commit is potentially vulnerable.

Risk and Exploitability

The EPSS score is reported as less than 1 %, indicating a very low likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog. Exploitation would likely require local or privileged access to trigger the vulnerable code path, such as loading a malicious module or invoking the crypto API from a user-space program that can provide a malformed template. The absence of a CVSS score prevents a precise severity assessment, but the combination of a low EPSS, lack of public exploitation, and the need for privileged access suggests the overall risk is low to moderate. The flaw results in denial of service rather than code execution, which further limits its potential impact.

Generated by OpenCVE AI on August 3, 2026 at 19:18 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the patch from commit e74df53b, ensuring the system runs a version that incorporates the fix.
  • Modify custom kernel modules or cryptographic code to explicitly check that the second template argument is present before using strcmp, thereby preventing the null pointer dereference flaw described by CWE‑476.
  • Restrict module loading or execution of code that may invoke the vulnerable crypto API until the patch is in place, using kernel hardening features or load-module restrictions.
  • Monitor system logs for errors related to null pointer dereferences in the crypto API, and investigate any anomalies.

Generated by OpenCVE AI on August 3, 2026 at 19:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 00:15:00 +0000


Mon, 27 Jul 2026 06:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476

Sat, 25 Jul 2026 09:30:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-25T08:49:45.170Z

Reserved: 2026-07-19T15:36:31.779Z

Link: CVE-2026-64314

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-25T10:17:12.647

Modified: 2026-08-11T15:00:57.447

Link: CVE-2026-64314

cve-icon Redhat

Severity :

Publid Date: 2026-07-25T00:00:00Z

Links: CVE-2026-64314 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T19:30:04Z

Weaknesses