# CVE-2026-64314: crypto: chacha20poly1305 - validate poly1305 template argument

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 3% of CVEs (2026-11-30)
- Published: 2026-07-25T08:49:45.170Z
- Modified: 2026-10-24T13:10:00.147Z
- Weaknesses: CWE-476
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from a298765e28adaea199f722142c10dae7e24dedf8 before 0016d3c21c6ab60a20be7f565cefb5999f3adeb6; from a298765e28adaea199f722142c10dae7e24dedf8 before e74df53b36cdc6b6b9e5488ec883d1d55624737f; from a298765e28adaea199f722142c10dae7e24dedf8 before 265b861bece38318b8e0fc8fac0643d4ef906d31; 6.16 (not affected: before 6.16; from 6.18.39 up to 6.18.*; from 7.1.4 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 6.16 before 6.18.39; from 6.19 before 7.1.4

## References

- <https://git.kernel.org/stable/c/0016d3c21c6ab60a20be7f565cefb5999f3adeb6> (patch)
- <https://git.kernel.org/stable/c/e74df53b36cdc6b6b9e5488ec883d1d55624737f> (patch)
- <https://git.kernel.org/stable/c/265b861bece38318b8e0fc8fac0643d4ef906d31> (patch)

## Sources

- CVE List: [CVE-2026-64314](https://www.cve.org/CVERecord?id=CVE-2026-64314), CVE Terms of Use, modified 2026-08-17
- NVD: [CVE-2026-64314](https://nvd.nist.gov/vuln/detail/CVE-2026-64314), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-64314 · Whole record: https://cve.day/CVE-2026-64314.json · Rebuilt by cve.day 2026-11-25T22:59:30.064Z
