Buffer Overflow Affecting sysstat package, versions <0:10.1.5-18.amzn2.0.2


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.59% (79th 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-SYSSTAT-3310642
  • published4 Feb 2023
  • disclosed8 Nov 2022

Introduced: 8 Nov 2022

CVE-2022-39377  (opens in a new tab)
CWE-120  (opens in a new tab)
CWE-131  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 sysstat to version 0:10.1.5-18.amzn2.0.2 or higher.
This issue was patched in ALAS2-2023-1925.

NVD Description

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

sysstat is a set of system performance tools for the Linux operating system. On 32 bit systems, in versions 9.1.16 and newer but prior to 12.7.1, allocate_structures contains a size_t overflow in sa_common.c. The allocate_structures function insufficiently checks bounds before arithmetic multiplication, allowing for an overflow in the size allocated for the buffer representing system activities. This issue may lead to Remote Code Execution (RCE). This issue has been patched in version 12.7.1.

CVSS Scores

version 3.1