FreeType Load_SBit_Png 16-bit dimension truncation heap overflow
An embedded-PNG loader narrows a 32-bit image width and height to 16 bits to size its bitmap buffer, but the untruncated 32-bit dimensions still drive the decode write, so a PNG larger than 0xFFFF overflows the heap.
- Product
- FreeType 2 (as bundled in Google Chrome, Android, and countless font-rendering stacks)
- Vendor
- The FreeType Project / Google (Chrome)
- Affected
- FreeType <= 2.10.3; Google Chrome < 86.0.4240.111
- Fixed in
- FreeType 2.10.4; Google Chrome 86.0.4240.111
- Weakness
- CWE-787
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- Published
- 2 Nov 2020
Classified as
References
Related CVEs
- CVE-2024-2961high 8.82024
glibc iconv ISO-2022-CN-EXT out-of-bounds write
Converting to a multibyte charset, one escape-sequence path skips its output-bounds check, writing up to 3 fixed bytes past the buffer.
- CVE-2023-5217high 8.82023
libvpx VP8 encoder heap overflow on thread/height reconfigure
A per-row worker array sized from the current frame height is only reallocated when threads exceed one, so a reconfigure that drops to a single thread while growing the frame leaves it undersized and the encoder writes past it.
- CVE-2023-4863high 8.82023
libwebp lossless Huffman table heap overflow (BLASTPASS)
A variable-length code table is written into a buffer sized only for its first level, so crafted long codes make the builder append second-level tables past the allocation: an out-of-bounds heap write reached by decoding one image.
- CVE-2022-3602high 7.52022
SpookySSL: OpenSSL X.509 punycode four-byte overflow
The punycode decoder allowed insertion when its output buffer was already full, so a crafted X.509 SmtpUTF8Mailbox domain processed during name-constraint checks could shift one attacker-controlled unsigned integer past the stack buffer.