Out-of-Bounds Affecting libjpeg-turbo-devel package, versions <0:2.0.90-2.amzn2.0.2


Severity

Recommended
0.0
medium
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.07% (35th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2-LIBJPEGTURBODEVEL-5847957
  • published22 Aug 2023
  • disclosed18 Jun 2022

Introduced: 18 Jun 2022

CVE-2021-46822  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 libjpeg-turbo-devel to version 0:2.0.90-2.amzn2.0.2 or higher.
This issue was patched in ALAS2-2023-2214.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libjpeg-turbo-devel package and not the libjpeg-turbo-devel package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

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.

CVSS Scores

version 3.1