Bug 2141207 (CVE-2022-39377) - CVE-2022-39377 sysstat: arithmetic overflow in allocate_structures() on 32 bit systems
Summary: CVE-2022-39377 sysstat: arithmetic overflow in allocate_structures() on 32 bi...
Keywords:
Status: NEW
Alias: CVE-2022-39377
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2141211 2141212 2141208 2141209
Blocks: 2141210
TreeView+ depends on / blocked
 
Reported: 2022-11-09 06:41 UTC by TEJ RATHI
Modified: 2023-02-02 04:40 UTC (History)
1 user (show)

Fixed In Version: sysstat 12.7.1
Doc Type: If docs needed, set a value
Doc Text:
An arithmetic overflow issue was discovered in Sysstat on 32-bit systems. The allocate_structures() function in sa_common.c insufficiently checks bounds before arithmetic multiplication, allowing an overflow in the size allocated for the buffer representing system activities. The vulnerability can be triggered when displaying activity data files and may lead to memory corruption or possibly arbitrary code execution due to an incorrectly sized buffer.
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description TEJ RATHI 2022-11-09 06:41:50 UTC
Sysstat 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.

https://github.com/sysstat/sysstat/security/advisories/GHSA-q8r6-g56f-9w7x

Comment 1 TEJ RATHI 2022-11-09 06:50:48 UTC
Created sysstat tracking bugs for this issue:

Affects: fedora-35 [bug 2141208]
Affects: fedora-36 [bug 2141209]


Note You need to log in before you can comment on or make changes to this bug.