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 allocatestructures function in sacommon.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 allocatestructures function within sacommon.c. The function performs multiplication operations to determine buffer sizes without proper bounds checking, leading to a sizet overflow condition on 32-bit systems. This occurs specifically when displaying activity data files, where the calculation (sizet) act[i]->msize (sizet) act[i]->nrini (sizet) act[i]->nr2 can overflow, resulting in an incorrectly sized buffer allocation ([GitHub Security Lab](https://securitylab.github.com/advisories/GHSL-2022-074sysstat/)).

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).

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


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-12819HIGH8.1
  • NixOSNixOS
  • pgbouncer
NoYesDec 03, 2025
CVE-2025-20777MEDIUM6.7
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-65105MEDIUM5.3
  • NixOSNixOS
  • apptainer
NoYesDec 02, 2025
CVE-2025-20789MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-20788MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025

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