CVEfocus › CVE database › CVE-2021-46822

CVE-2021-46822

EPSS 1.1% (higher than 64% of CVEs)Published 2022-06-18Updated 2024-08-04Assigner: mitre

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.

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

15Fixed
16Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04libjpeg-turboNot affected
vulnerable_code_not_present
Ubuntu 20.04libjpeg-turboFixed2.0.3-0ubuntu1.20.04.3UBUNTU-CVE-2021-46822
Ubuntu 18.04libjpeg-turboNot affected
vulnerable_code_not_present
Debian 14libjpeg-turboFixed1:2.1.1-1DEBIAN-CVE-2021-46822
Debian 13libjpeg-turboFixed1:2.1.1-1DEBIAN-CVE-2021-46822
Debian 12libjpeg-turboFixed1:2.1.1-1DEBIAN-CVE-2021-46822
Red Hat Enterprise Linux 9libjpeg-turboFixed0:2.0.90-6.el9_1RHSA-2023:1068
Red Hat Enterprise Linux 9libjpeg-turbo-develFixed0:2.0.90-6.el9_1RHSA-2023:1068
Red Hat Enterprise Linux 9libjpeg-turbo-utilsFixed0:2.0.90-6.el9_1RHSA-2023:1068
Red Hat Enterprise Linux 9turbojpegFixed0:2.0.90-6.el9_1RHSA-2023:1068
Red Hat Enterprise Linux 9turbojpeg-develFixed0:2.0.90-6.el9_1RHSA-2023:1068
Red Hat Enterprise Linux 8libjpeg-turboNot affected
Red Hat Enterprise Linux 8libjpeg-turbo-develNot affected
Red Hat Enterprise Linux 8libjpeg-turbo-utilsNot affected
Red Hat Enterprise Linux 8turbojpegNot affected
Red Hat Enterprise Linux 8turbojpeg-develNot affected
Red Hat Enterprise Linux 7libjpeg-turboNot affected
Red Hat Enterprise Linux 7libjpeg-turbo-develNot affected
Red Hat Enterprise Linux 7libjpeg-turbo-staticNot affected
Red Hat Enterprise Linux 7libjpeg-turbo-utilsNot affected
Red Hat Enterprise Linux 7turbojpegNot affected
Red Hat Enterprise Linux 7turbojpeg-develNot affected
Red Hat Enterprise Linux 6libjpeg-turboNot affected
Red Hat Enterprise Linux 6libjpeg-turbo-develNot affected
Red Hat Enterprise Linux 6libjpeg-turbo-staticNot affected
AlmaLinux 9libjpeg-turboFixed2.0.90-6.el9_1ALSA-2023:1068
AlmaLinux 9libjpeg-turbo-develFixed2.0.90-6.el9_1ALSA-2023:1068
AlmaLinux 9libjpeg-turbo-utilsFixed2.0.90-6.el9_1ALSA-2023:1068
AlmaLinux 9turbojpegFixed2.0.90-6.el9_1ALSA-2023:1068
AlmaLinux 9turbojpeg-develFixed2.0.90-6.el9_1ALSA-2023:1068
Rocky Linux 9libjpeg-turboFixed0:2.0.90-6.el9_1RLSA-2023:1068

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.