CVE-2026-64314 PUBLISHED

crypto: chacha20poly1305 - validate poly1305 template argument

Assigner: Linux
Reserved: 19.07.2026 Published: 25.07.2026 Updated: 25.07.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from a298765e28adaea199f722142c10dae7e24dedf8 to 0016d3c21c6ab60a20be7f565cefb5999f3adeb6 (excl.)
  • affected from a298765e28adaea199f722142c10dae7e24dedf8 to e74df53b36cdc6b6b9e5488ec883d1d55624737f (excl.)
  • affected from a298765e28adaea199f722142c10dae7e24dedf8 to 265b861bece38318b8e0fc8fac0643d4ef906d31 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.16 is affected
  • unaffected from 0 to 6.16 (excl.)
  • unaffected from 6.18.39 to 6.18.* (incl.)
  • unaffected from 7.1.4 to 7.1.* (incl.)
  • unaffected from 7.2-rc1 to * (incl.)

References