CVE-2021-46822
JSON

5.5medium

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…

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
1.08% (higher than 65% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
libjpeg-turbo libjpeg-turbofrom >1.5.3 up to 2.0.90NVD

All scores

NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

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.

NVD (es)

El lector PPM en libjpeg-turbo versiones hasta 2.0.90, maneja inapropiadamente el uso de tjLoadImage para cargar un archivo PPM binario de 16 bits en un búfer de escala de grises y cargar un archivo PGM binario de 16 bits en un búfer RGB. Esto está relacionado con un desbordamiento del búfer en la región heap de la memoria en la función get_word_rgb_row en rdppm.c

References

Sources

SourceRecordLicence
CVE ListCVE-2021-46822 changed 2024-08-04CVE Terms of Use
NVDCVE-2021-46822 changed 2026-06-17Public domain