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: CLOSED ERRATA
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: 2141208 2141209 2141211 2141212
Blocks: 2141210
TreeView+ depends on / blocked
 
Reported: 2022-11-09 06:41 UTC by TEJ RATHI
Modified: 2023-05-16 18:34 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: 2023-05-16 18:34:45 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:2234 0 None None None 2023-05-09 07:20:01 UTC
Red Hat Product Errata RHSA-2023:2800 0 None None None 2023-05-16 08:13:00 UTC

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]

Comment 4 errata-xmlrpc 2023-05-09 07:19:59 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:2234 https://access.redhat.com/errata/RHSA-2023:2234

Comment 5 errata-xmlrpc 2023-05-16 08:12:58 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:2800 https://access.redhat.com/errata/RHSA-2023:2800

Comment 6 Product Security DevOps Team 2023-05-16 18:34:43 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-39377


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