Heap-based Buffer Overflow in libjpeg-turbo's PPM Reader

Heap-based Buffer Overflow in libjpeg-turbo's PPM Reader

CVE-2021-46822 · MEDIUM Severity

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

The PPM reader in libjpeg-turbo through 2.0.90 mishandles use of tjLoadImage for loading a 16-bit binary PPM file into a grayscale buffer and loading a 16-bit binary PGM file into an RGB buffer. This is related to a heap-based buffer overflow in the get_word_rgb_row function in rdppm.c.

Learn more about our Web Application Penetration Testing UK.