CVE-2021-46822: Libjpeg-Turbo

Medium severity, CVSS 5.5. EPSS: 1.1% probability of exploitation activity in the next 30 days.

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

No fixed version is stated in NVD's or the CNA's structured data. Check the vendor's advisory among the references.

Affected products

Published 2022-06-18. Last modified 2026-06-17.