Incorrect Calculation of Buffer Size Affecting sysstat package, versions <0:12.5.4-5.el9


Severity

Recommended
medium

Based on AlmaLinux security rating.

Threat Intelligence

EPSS
1.27% (70th 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-SYSSTAT-5623167
  • published28 May 2023
  • disclosed9 May 2023

Introduced: 9 May 2023

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

How to fix?

Upgrade AlmaLinux:9 sysstat to version 0:12.5.4-5.el9 or higher.
This issue was patched in ALSA-2023:2234.

NVD Description

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

version 3.1