PT-2022-12933 · Unknown+7 · Libjpeg-Turbo+7

CVE-2021-46822

·

Published

2021-04-26

·

Updated

2025-08-26

CVSS v3.1

5.5

Medium

VectorAV: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

ALSA-2023:1068
ALT-PU-2021-1716
ALT-PU-2022-1200
ALT-PU-2023-7096
ALT-PU-2024-6277
CVE-2021-46822
MGASA-2022-0353
OESA-2022-1745
RHSA-2023:1068
RHSA-2023_1068
RLSA-2023:1068
USN-5631-1

Affected Products

Alt Linux
Almalinux
Debian
Linuxmint
Red Hat
Rocky Linux
Ubuntu
Libjpeg-Turbo