PT-2022-12933 · Unknown+7 · Libjpeg-Turbo+7
Published
2021-04-26
·
Updated
2025-08-26
·
CVE-2021-46822
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
libjpeg-turbo versions 2.0.90 and earlier
Description
The issue is related to a heap-based buffer overflow in the
get word rgb row function in rdppm.c, which occurs when using tjLoadImage to load a 16-bit binary PPM file into a grayscale buffer and a 16-bit binary PGM file into an RGB buffer.Recommendations
For libjpeg-turbo versions 2.0.90 and earlier, update to a version later than 2.0.90 to resolve the issue. As a temporary workaround, consider restricting the use of
tjLoadImage for loading 16-bit binary PPM and PGM files until a patch is available. Avoid using the get word rgb row function in rdppm.c with untrusted input until the issue is resolved.Fix
Memory Corruption
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Almalinux
Debian
Linuxmint
Red Hat
Rocky Linux
Ubuntu
Libjpeg-Turbo