Vulnerability · Published Nov 8, 2022 · Assigned by GitHub_M
CVE-2022-39377sysstat Incorrect Buffer Size calculation on 32-bit systems results in RCE via buffer overflow
High 7.0
In plain English
A high-severity buffer overflow in sysstat from sysstat. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 72% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | sysstat | 11.7.3-9.el8 | ALSA-2023:2800 |
| AlmaLinux:9 | sysstat | 12.5.4-5.el9 | ALSA-2023:2234 |
| Alpine:v3.21 | sysstat | 12.6.2-r0 | ALPINE-CVE-2022-39377 |
| Alpine:v3.22 | sysstat | 12.6.2-r0 | ALPINE-CVE-2022-39377 |
| Alpine:v3.23 | sysstat | 12.6.2-r0 | ALPINE-CVE-2022-39377 |
| Alpine:v3.24 | sysstat | 12.6.2-r0 | ALPINE-CVE-2022-39377 |
| Debian:12 | sysstat | 12.6.1-1 | DEBIAN-CVE-2022-39377 |
| Debian:13 | sysstat | 12.6.1-1 | DEBIAN-CVE-2022-39377 |
| Debian:14 | sysstat | 12.6.1-1 | DEBIAN-CVE-2022-39377 |
| Ubuntu:22.04:LTS | sysstat | 12.5.2-2ubuntu0.1 | USN-5748-1 |
| Ubuntu:22.04:LTS | sysstat | 12.5.2-2ubuntu0.2 | USN-6145-1 |
| Ubuntu:22.04:LTS | sysstat | 12.5.2-2ubuntu0.1 | UBUNTU-CVE-2022-39377 |
Affected products (as reported)
Weakness: CWE-131, CWE-120 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/sysstat/sysstat/security/advisories/GHSA-q8r6-g56f-9w7x
- [debian-lts-announce] 20221113 [SECURITY] [DLA 3188-1] sysstat security update mailing-list
- FEDORA-2022-dbe48a4bc7 vendor-advisory
- FEDORA-2022-5adda2d05f vendor-advisory
- FEDORA-2022-9f3af921a5 vendor-advisory
- GLSA-202211-07 vendor-advisory
- https://lists.debian.org/debian-lts-announce/2025/10/msg00017.html