CyberRota Analysis
AI-GeneratedThe vulnerability in the Linux kernel affects the chacha20poly1305 cryptographic implementation, where the function chachapoly_create() improperly handles a missing template argument, leading to potential dereferencing of an error pointer during string comparison. This flaw could result in application crashes or undefined behavior when malformed template instantiations occur. Organizations utilizing Linux systems that rely on this cryptographic function should prioritize patching to mitigate risks associated with this vulnerability.
Original NVD 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.