Skip to content

CVE-2021-46822 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....

MediumCVSS 5.5 EPSS 1.1%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

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.

Upgrade path

5 packages: 5 fixed.

PackageAffectedFixed inStatus
debian/libjpeg-turbo(Debian 12) < 1:2.1.1-1 1:2.1.1-1 Fixed
debian/libjpeg-turbo(Debian 13) < 1:2.1.1-1 1:2.1.1-1 Fixed
debian/libjpeg-turbo(Debian 14) < 1:2.1.1-1 1:2.1.1-1 Fixed
libjpeg-turbo >= 1.5.3, <= 2.0.90 after 2.0.90 Fixed
ubuntu/libjpeg-turbo(Ubuntu 20.04) < 2.0.3-0ubuntu1.20.04.3; = 2.0.3-0ubuntu1; = 2.0.3-0ubuntu1.20.04.1 2.0.3-0ubuntu1.20.04.3 Fixed

Affected products

ProductAffected versionsFixed in
debian/libjpeg-turbo(Debian:12) < 1:2.1.1-1 1:2.1.1-1
debian/libjpeg-turbo(Debian:13) < 1:2.1.1-1 1:2.1.1-1
debian/libjpeg-turbo(Debian:14) < 1:2.1.1-1 1:2.1.1-1
libjpeg-turbo >= 1.5.3, <= 2.0.90 No fix listed
ubuntu/libjpeg-turbo(Ubuntu:20.04) < 2.0.3-0ubuntu1.20.04.3 2.0.3-0ubuntu1.20.04.3
ubuntu/libjpeg-turbo(Ubuntu:20.04) = 2.0.3-0ubuntu1 No fix listed
ubuntu/libjpeg-turbo(Ubuntu:20.04) = 2.0.3-0ubuntu1.20.04.1 No fix listed

References