Skip to content
OpenAdvisories
Unscored CVE-2021-46822 EUVD-2021-33478GHSA-p468-hq86-gghc

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 a…

Published Jun 18, 2022 · Updated Aug 4, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libjpeg-turbo 1:2.1.1-1 —
Debian 13 libjpeg-turbo 1:2.1.1-1 —
Debian 12 libjpeg-turbo 1:2.1.1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libjpeg-turbo 2.0.3-0ubuntu1.20.04.3 USN-5631-1
Ubuntu 18.04 LTS libjpeg-turbo 1.5.2-0ubuntu5.18.04.6 USN-5631-1
ReleasePackageFixed inAdvisory
RHEL 9 turbojpeg +4 2.0.90-6.el9_1 RHSA-2023:1068

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 turbojpeg +4 2.0.90-6.el9_1 ALSA-2023:1068

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 libjpeg-turbo 2.0.90-6.el9_1 RLSA-2023:1068

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 turbojpeg +4 2.0.90-2.amzn2.0.2 ALAS2-2023-2214

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 turbojpeg +4 2.0.90-6.el9_1 ELSA-2023-1068

Advisories 7

References