Out-of-bounds Write Affecting turbojpeg-devel package, versions <0:2.0.90-6.el9_1


Severity

Recommended
0.0
medium
0
10

Based on AlmaLinux security rating.

Threat Intelligence

EPSS
0.08% (37th 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-ALMALINUX9-TURBOJPEGDEVEL-5619242
  • published28 May 2023
  • disclosed6 Mar 2023

Introduced: 6 Mar 2023

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

How to fix?

Upgrade AlmaLinux:9 turbojpeg-devel to version 0:2.0.90-6.el9_1 or higher.
This issue was patched in ALSA-2023:1068.

NVD Description

Note: Versions mentioned in the description apply only to the upstream turbojpeg-devel package and not the turbojpeg-devel package as distributed by AlmaLinux. See How to fix? for AlmaLinux:9 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