7.0high
sysstat Incorrect Buffer Size calculation on 32-bit systems results in RCE via buffer overflow
- Severity
- 7.0high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.91% (higher than 58% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
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
| Product or package | Versions | Reported by |
|---|---|---|
| sysstat sysstat | >= 9.1.16, < 12.7.1 | CVE List |
| sysstat_project sysstat | from 9.1.6 before 12.6.1 | NVD |
| debian debian_linux | 10.0 | NVD |
| fedoraproject fedora | 35, 36, 37 | NVD |
All scores
| GitHub_M | 7.0high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
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.
NVD (es)
sysstat es un conjunto de herramientas de rendimiento del System para el sistema operativo Linux. En sistemas de 32 bits, en las versiones 9.1.16 y posteriores, pero anteriores a la 12.7.1, allocate_structures contiene un desbordamiento size_t en sa_common.c. La función allocate_structures no comprueba suficientemente los límites antes de la multiplicación aritmética, lo que permite un desbordamiento en el tamaño asignado para el búfer que representa las actividades del sistema. Este problema puede provocar la ejecución remota de código (RCE). Este problema se solucionó en la versión 12.7.1.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-39377 changed 2025-11-03 | CVE Terms of Use |
| NVD | CVE-2022-39377 changed 2026-06-17 | Public domain |