Out-of-bounds Write Affecting libjpeg-turbo package, versions <2.0.3-0ubuntu1.20.04.3


Severity

Recommended
low

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.07% (21st 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-UBUNTU2004-LIBJPEGTURBO-2932365
  • published20 Jun 2022
  • disclosed18 Jun 2022

Introduced: 18 Jun 2022

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

How to fix?

Upgrade Ubuntu:20.04 libjpeg-turbo to version 2.0.3-0ubuntu1.20.04.3 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libjpeg-turbo package and not the libjpeg-turbo package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 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 Base Scores

version 3.1