sysstat Incorrect Buffer Size calculation on 32-bit systems results in RCE via buffer overflow
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 2 fixed, 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-120 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| sysstat | sysstat | 9.1.16 to before 12.7.1 | 12.7.1 | Patch available | CNA |
- sysstat Vendorsysstat Affected 9.1.16 to before 12.7.1 Fixed in 12.7.1 Patch available CNA
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:sysstat_project:sysstat:*:*:*:*:*:*:*:* | 9.1.6 to before 12.6.1 | Vulnerable | Sysstat Project |
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Debian |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* | 36 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* | 37 | Vulnerable | Fedoraproject |
- cpe:2.3:a:sysstat_project:sysstat:*:*:*:*:*:*:*:* Versions 9.1.6 to before 12.6.1 Vulnerable ·Sysstat Project
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* Versions 36 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* Versions 37 Vulnerable ·Fedoraproject
Remediation
- Fix · CNA sysstat (sysstat) Fixed in 12.7.1
Red Hat 2 advisories
- RHSA-2023:2800 Released 2023-05-16 · Red Hat rating Moderatesysstat security and bug fix update
- Red Hat Enterprise Linux AppStream (v. 8) sysstat-11.7.3-9.el8
- RHSA-2023:2234 Released 2023-05-09 · Red Hat rating Moderatesysstat security and bug fix update
- Red Hat Enterprise Linux AppStream (v. 9) sysstat-12.5.4-5.el9
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2023:2800 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2023:2234 |
Timeline
- 2026-10-02 Threatist record created from CVE-2022-39377
References
More sysstat vulnerabilities
- TI-2007-03736 The init script (sysstat.in) in sysstat 5.1.2 up to 7.1.6 creates /tmp/sysstat.run… CVSS 2.0MEDIUM 4.4
- TI-2004-00091 The isag utility, which processes sysstat data, allows local users to overwrite arbitrary… CVSS 2.0MEDIUM 4.6
- TI-2004-00090 The (1) post and (2) trigger scripts in sysstat 4.0.7 and earlier allow local users to… CVSS 2.0MEDIUM 4.6
Sources
- CVE-2022-39377 · CVE Program
- CVE-2022-39377 · NVD
- FIRST EPSS
- CVE-2022-39377 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences