In the Linux kernel, the following vulnerability has been resolved: crypto: chacha20poly1305 - validate poly1305 template argument… (CVE-2026-64314)
A vulnerability in the Linux kernel's crypto subsystem related to the chacha20poly1305 algorithm was resolved. The issue involved improper validation of the poly1305 template argument, where a missing second template argument led to an error pointer being passed to strcmp(), causing potential invalid memory access. The fix ensures that the result of crypto_attr_alg_name() is checked before string comparison, preventing dereferencing of error pointers.
AI Analysis
Technical Summary
The Linux kernel's chacha20poly1305 crypto implementation did not properly validate the poly1305 template argument. Specifically, chachapoly_create() assumed the second template argument was always present and passed it directly to strcmp(). If the argument was missing, crypto_attr_alg_name() returned an error pointer, which was then dereferenced, leading to a potential crash or undefined behavior. The patch adds a check to validate the result of crypto_attr_alg_name() before using it in strcmp(), aligning with the Crypto API's template validation pattern.
Potential Impact
This vulnerability could cause the kernel to dereference an error pointer, potentially leading to kernel crashes or undefined behavior when malformed template instantiations occur. There is no indication of privilege escalation or remote code execution from the provided data.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to validate the poly1305 template argument properly. Users should update to the fixed kernel version once available. Patch status is not explicitly confirmed in the provided data; therefore, check the official Linux kernel advisories or vendor updates for the exact fixed versions and apply the official patch.
In the Linux kernel, the following vulnerability has been resolved: crypto: chacha20poly1305 - validate poly1305 template argument… (CVE-2026-64314)
Description
A vulnerability in the Linux kernel's crypto subsystem related to the chacha20poly1305 algorithm was resolved. The issue involved improper validation of the poly1305 template argument, where a missing second template argument led to an error pointer being passed to strcmp(), causing potential invalid memory access. The fix ensures that the result of crypto_attr_alg_name() is checked before string comparison, preventing dereferencing of error pointers.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's chacha20poly1305 crypto implementation did not properly validate the poly1305 template argument. Specifically, chachapoly_create() assumed the second template argument was always present and passed it directly to strcmp(). If the argument was missing, crypto_attr_alg_name() returned an error pointer, which was then dereferenced, leading to a potential crash or undefined behavior. The patch adds a check to validate the result of crypto_attr_alg_name() before using it in strcmp(), aligning with the Crypto API's template validation pattern.
Potential Impact
This vulnerability could cause the kernel to dereference an error pointer, potentially leading to kernel crashes or undefined behavior when malformed template instantiations occur. There is no indication of privilege escalation or remote code execution from the provided data.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to validate the poly1305 template argument properly. Users should update to the fixed kernel version once available. Patch status is not explicitly confirmed in the provided data; therefore, check the official Linux kernel advisories or vendor updates for the exact fixed versions and apply the official patch.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-8q9p-r3g4-95mr
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-64314"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a65420d9c2644c7f80859e1
Added to database: 07/25/2026, 23:09:01 UTC
Last enriched: 07/25/2026, 23:35:22 UTC
Last updated: 07/26/2026, 06:13:50 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.