ArchLinux: 202101-45: libgcrypt: arbitrary code execution
Summary
_gcry_md_block_write in cipher/hash-common.c in libgcrypt version 1.9.0 has a heap-based buffer overflow when the digest final function sets a large count value. Just decrypting some data can overflow a heap buffer with attacker controlled data, no verification or signature is validated before the vulnerability occurs. The issue is fixed in version 1.9.1.
Resolution
Upgrade to 1.9.1-1.
# pacman -Syu "libgcrypt>=1.9.1-1"
The problem has been fixed upstream in version 1.9.1.
References
https://lists.gnupg.org/pipermail/gnupg-announce/2021q1/000456.html https://dev.gnupg.org/T5275 https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commitdiff;h=512c0c75276949f13b6373b5c04f7065af750b08 https://security.archlinux.org/CVE-2021-3345
Workaround
None.