CVE-2022-39377 sysstat Incorrect Buffer Size calculation on 32-bit systems results in RCE via buffer overflow
HighCVSS 7.8
EPSS 1.4%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- UbuntuDebian
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.
Upgrade path
16 packages: 13 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/sysstat(Alpine v3.21) | >= 9.1.6, < 12.6.2-r0 | 12.6.2-r0 | Fixed |
| alpine/sysstat(Alpine v3.22) | >= 9.1.6, < 12.6.2-r0 | 12.6.2-r0 | Fixed |
| alpine/sysstat(Alpine v3.23) | >= 9.1.6, < 12.6.2-r0 | 12.6.2-r0 | Fixed |
| alpine/sysstat(Alpine v3.24) | >= 9.1.6, < 12.6.2-r0 | 12.6.2-r0 | Fixed |
| debian/sysstat(Debian 12) | < 12.6.1-1 | 12.6.1-1 | Fixed |
| debian/sysstat(Debian 13) | < 12.6.1-1 | 12.6.1-1 | Fixed |
| debian/sysstat(Debian 14) | < 12.6.1-1 | 12.6.1-1 | Fixed |
| sysstat project sysstat | >= 9.1.6, < 12.6.1 | 12.6.1 | Fixed |
| ubuntu/sysstat(Ubuntu 18.04) | < 11.6.1-1ubuntu0.2; = 11.5.7-1ubuntu1; = 11.6.0-1ubuntu1; = 11.6.0-1ubuntu2 +2 more | 11.6.1-1ubuntu0.2 | Fixed |
| ubuntu/sysstat(Ubuntu 20.04) | < 12.2.0-2ubuntu0.2; = 12.0.6-1; = 12.1.7-1; = 12.2.0-1 +2 more | 12.2.0-2ubuntu0.2 | Fixed |
| ubuntu/sysstat(Ubuntu 22.04) | < 12.5.2-2ubuntu0.1; = 12.5.2-2build1; = 12.5.2-2build2 | 12.5.2-2ubuntu0.1 | Fixed |
| ubuntu/sysstat(Ubuntu Pro 14.04) | < 10.2.0-1ubuntu0.1~esm1; = 10.1.6-2; = 10.1.7-1; = 10.2.0-1 | 10.2.0-1ubuntu0.1~esm1 | Fixed |
| ubuntu/sysstat(Ubuntu Pro 16.04) | < 11.2.0-1ubuntu0.3+esm1; = 11.1.5-1; = 11.1.7-1; = 11.1.8-1 +4 more | 11.2.0-1ubuntu0.3+esm1 | Fixed |
| debian linux | = 10.0 | No fix listed | Versions listed |
| fedoraproject fedora | = 35; = 36; = 37 | No fix listed | Versions listed |
| sysstat | = >= 9.1.16, < 12.7.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| sysstat | = >= 9.1.16, < 12.7.1 | No fix listed |
| ubuntu/sysstat(Ubuntu:22.04) | < 12.5.2-2ubuntu0.1 | 12.5.2-2ubuntu0.1 |
| sysstat project sysstat | >= 9.1.6, < 12.6.1 | 12.6.1 |
| debian linux | = 10.0 | No fix listed |
| fedoraproject fedora | = 35 | No fix listed |
| fedoraproject fedora | = 36 | No fix listed |
| fedoraproject fedora | = 37 | No fix listed |
| debian/sysstat(Debian:12) | < 12.6.1-1 | 12.6.1-1 |
| debian/sysstat(Debian:14) | < 12.6.1-1 | 12.6.1-1 |
| debian/sysstat(Debian:13) | < 12.6.1-1 | 12.6.1-1 |
| ubuntu/sysstat(Ubuntu:Pro:14.04) | < 10.2.0-1ubuntu0.1~esm1 | 10.2.0-1ubuntu0.1~esm1 |
| ubuntu/sysstat(Ubuntu:Pro:14.04) | = 10.1.6-2 | No fix listed |
| ubuntu/sysstat(Ubuntu:Pro:14.04) | = 10.1.7-1 | No fix listed |
| ubuntu/sysstat(Ubuntu:Pro:14.04) | = 10.2.0-1 | No fix listed |
| ubuntu/sysstat(Ubuntu:Pro:16.04) | < 11.2.0-1ubuntu0.3+esm1 | 11.2.0-1ubuntu0.3+esm1 |
| ubuntu/sysstat(Ubuntu:Pro:16.04) | = 11.1.5-1 | No fix listed |
| ubuntu/sysstat(Ubuntu:Pro:16.04) | = 11.1.7-1 | No fix listed |
| ubuntu/sysstat(Ubuntu:Pro:16.04) | = 11.1.8-1 | No fix listed |
| ubuntu/sysstat(Ubuntu:Pro:16.04) | = 11.2.0-1 | No fix listed |
| ubuntu/sysstat(Ubuntu:Pro:16.04) | = 11.2.0-1ubuntu0.1 | No fix listed |
| ubuntu/sysstat(Ubuntu:Pro:16.04) | = 11.2.0-1ubuntu0.2 | No fix listed |
| ubuntu/sysstat(Ubuntu:Pro:16.04) | = 11.2.0-1ubuntu0.3 | No fix listed |
| ubuntu/sysstat(Ubuntu:18.04) | < 11.6.1-1ubuntu0.2 | 11.6.1-1ubuntu0.2 |
| ubuntu/sysstat(Ubuntu:18.04) | = 11.5.7-1ubuntu1 | No fix listed |
| ubuntu/sysstat(Ubuntu:18.04) | = 11.6.0-1ubuntu1 | No fix listed |
Show 15 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/sysstat(Ubuntu:18.04) | = 11.6.0-1ubuntu2 | No fix listed |
| ubuntu/sysstat(Ubuntu:18.04) | = 11.6.1-1 | No fix listed |
| ubuntu/sysstat(Ubuntu:18.04) | = 11.6.1-1ubuntu0.1 | No fix listed |
| ubuntu/sysstat(Ubuntu:20.04) | < 12.2.0-2ubuntu0.2 | 12.2.0-2ubuntu0.2 |
| ubuntu/sysstat(Ubuntu:20.04) | = 12.0.6-1 | No fix listed |
| ubuntu/sysstat(Ubuntu:20.04) | = 12.1.7-1 | No fix listed |
| ubuntu/sysstat(Ubuntu:20.04) | = 12.2.0-1 | No fix listed |
| ubuntu/sysstat(Ubuntu:20.04) | = 12.2.0-2 | No fix listed |
| ubuntu/sysstat(Ubuntu:20.04) | = 12.2.0-2ubuntu0.1 | No fix listed |
| ubuntu/sysstat(Ubuntu:22.04) | = 12.5.2-2build1 | No fix listed |
| ubuntu/sysstat(Ubuntu:22.04) | = 12.5.2-2build2 | No fix listed |
| alpine/sysstat(Alpine:v3.21) | >= 9.1.6, < 12.6.2-r0 | 12.6.2-r0 |
| alpine/sysstat(Alpine:v3.22) | >= 9.1.6, < 12.6.2-r0 | 12.6.2-r0 |
| alpine/sysstat(Alpine:v3.23) | >= 9.1.6, < 12.6.2-r0 | 12.6.2-r0 |
| alpine/sysstat(Alpine:v3.24) | >= 9.1.6, < 12.6.2-r0 | 12.6.2-r0 |
References
- Debian Security Tracker CVE-2022-39377 vendor-advisory
- github.com exploit issue-tracking third-party-advisory
- [debian-lts-announce] 20221113 [SECURITY] [DLA 3188-1] sysstat security update mailing-list third-party-advisory
- FEDORA-2022-dbe48a4bc7 vendor-advisory
- FEDORA-2022-5adda2d05f vendor-advisory
- FEDORA-2022-9f3af921a5 vendor-advisory
- GLSA-202211-07 third-party-advisory vendor-advisory
- lists.debian.org
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-5735-1 vendor-advisory
- USN-5748-1 vendor-advisory
- USN-6145-1 vendor-advisory
- www.cve.org issue-tracking
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking