CVE-2022-39377
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-39377 is a vulnerability discovered in the sysstat package affecting 32-bit systems. The issue was identified in the allocate_structures function in sa_common.c, where insufficient bounds checking before arithmetic multiplication leads to a buffer overflow condition. The vulnerability was discovered in September 2022 and publicly disclosed in November 2022, affecting sysstat versions 9.1.6 and later, with a fix released in version 12.7.1 (GitHub Advisory).

Technical details

The vulnerability stems from an arithmetic overflow in the allocate_structures function within sa_common.c. The function performs multiplication operations to determine buffer sizes without proper bounds checking, leading to a size_t overflow condition on 32-bit systems. This occurs specifically when displaying activity data files, where the calculation (size_t) act[i]->msize * (size_t) act[i]->nr_ini * (size_t) act[i]->nr2 can overflow, resulting in an incorrectly sized buffer allocation (GitHub Security Lab).

Impact

The vulnerability can potentially lead to Remote Code Execution (RCE) due to the buffer overflow condition. When exploited, the arithmetic overflow can result in an incorrectly sized buffer allocation, potentially allowing attackers to execute arbitrary code on affected systems (GitHub Advisory).

Exploitability

The vulnerability is specifically exploitable on 32-bit systems when processing activity data files. The issue can be triggered through maliciously crafted input that causes the arithmetic overflow in the allocate_structures function (Gentoo Security).

Mitigation and workarounds

The vulnerability has been patched in sysstat version 12.7.1. Users are advised to upgrade to this version or later. Various Linux distributions have also released security updates to address this vulnerability, including Red Hat Enterprise Linux (RHEL) 8 and 9, Fedora, and Debian (Red Hat Advisory, Debian Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Alpine

Fixed

edge

sysstat: 12.6.2-r0

Fixed

v3.21

sysstat: 12.6.2-r0

Fixed

v3.22

sysstat: 12.6.2-r0

Fixed

v3.23

sysstat: 12.6.2-r0

Fixed

SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-91782LOW1.9
  • NixOS logoNixOS
  • binutils
NoYesSep 15, 2026
CVE-2026-91781LOW1.9
  • NixOS logoNixOS
  • binutils
NoYesSep 15, 2026
CVE-2026-91780LOW1.9
  • NixOS logoNixOS
  • binutils
NoNoSep 15, 2026
CVE-2026-91779LOW1.9
  • NixOS logoNixOS
  • binutils
NoNoSep 15, 2026
CVE-2026-90831LOW1.9
  • NixOS logoNixOS
  • gcc-toolset-15-binutils-devel
NoYesSep 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management