Integer Overflow or Wraparound Affecting sam2p package, versions <0.49.2-3+deb8u3build0.14.04.1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
1.23% (68th 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-UBUNTU1404-SAM2P-273822
  • published22 Sept 2017
  • disclosed22 Sept 2017

Introduced: 22 Sep 2017

CVE-2017-14636  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade Ubuntu:14.04 sam2p to version 0.49.2-3+deb8u3build0.14.04.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream sam2p package and not the sam2p package as distributed by Ubuntu. See How to fix? for Ubuntu:14.04 relevant fixed versions and status.

Because of an integer overflow in sam2p 0.49.3, a loop executes 0xffffffff times, ending with an invalid read of size 1 in the Image::Indexed::sortPal function in image.cpp. However, this also causes memory corruption because of an attempted write to the invalid d[0xfffffffe] array element.