Integer Overflow or Wraparound Affecting libMagickCore-7_Q16HDRI6 package, versions <7.0.7.34-3.90.1


Severity

Recommended
0.0
medium
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
1.19% (66th 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-SLES151-LIBMAGICKCORE7Q16HDRI6-2692533
  • published14 Apr 2022
  • disclosed18 Jan 2021

Introduced: 18 Jan 2021

CVE-2020-25676  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade SLES:15.1 libMagickCore-7_Q16HDRI6 to version 7.0.7.34-3.90.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libMagickCore-7_Q16HDRI6 package and not the libMagickCore-7_Q16HDRI6 package as distributed by SLES. See How to fix? for SLES:15.1 relevant fixed versions and status.

In CatromWeights(), MeshInterpolate(), InterpolatePixelChannel(), InterpolatePixelChannels(), and InterpolatePixelInfo(), which are all functions in /MagickCore/pixel.c, there were multiple unconstrained pixel offset calculations which were being used with the floor() function. These calculations produced undefined behavior in the form of out-of-range and integer overflows, as identified by UndefinedBehaviorSanitizer. These instances of undefined behavior could be triggered by an attacker who is able to supply a crafted input file to be processed by ImageMagick. These issues could impact application availability or potentially cause other problems related to undefined behavior. This flaw affects ImageMagick versions prior to 7.0.9-0.

CVSS Base Scores

version 3.1