ArchLinux: 202010-10: freetype2: arbitrary code execution
Summary
A heap buffer overflow has been found in freetype2 before 2.10.4. Malformed TTF files with PNG sbit glyphs can cause a heap buffer overflow in Load_SBit_Png as libpng uses the original 32-bit values, which are saved in png_struct. If the original width and/or height are greater than 65535, the allocated buffer won't be able to fit the bitmap.
Resolution
Upgrade to 2.10.4-1.
# pacman -Syu "freetype2>=2.10.4-1"
The problem has been fixed upstream in version 2.10.4.
References
http://git.savannah.nongnu.org/cgit/freetype/freetype2.git/commit/?id=a3bab162b2ae616074c8877a04556932998aeacd https://savannah.nongnu.org/bugs/?59308 https://security.archlinux.org/CVE-2020-15999
Workaround
None.