CVE-2026-64314

crypto: chacha20poly1305 - validate poly1305 template argument

State
Published
Severity
Not scored
Published
Jul 25, 2026
Updated
Aug 17, 2026
Reserved
Jul 19, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • a298765e28adaea199f722142c10dae7e24dedf8 to before 0016d3c21c6ab60a20be7f565cefb5999f3adeb6Affected
  • a298765e28adaea199f722142c10dae7e24dedf8 to before e74df53b36cdc6b6b9e5488ec883d1d55624737fAffected
  • a298765e28adaea199f722142c10dae7e24dedf8 to before 265b861bece38318b8e0fc8fac0643d4ef906d31Affected
LinuxLinux
  • 6.16Affected
  • before 6.16Not affected
  • 6.18.39 through 6.18.*Not affected
  • 7.1.4 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.